The Godfather talking
You can run, but you can't hide.
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 19, 2024, 10:57:35 10:57


Login with username, password and session length


Pages: [1]
Print
Author Topic: bizarre problem with atmega8 + ds1307  (Read 3979 times)
0 Members and 1 Guest are viewing this topic.
deveshsamaiya
Newbie
*
Offline Offline

Posts: 28

Thank You
-Given: 15
-Receive: 13


« on: August 21, 2012, 06:51:59 18:51 »

Friends, i am facing this bizarre problem with my circuit. I have made a simple circuit connections to interface DS1307 time keeper chip with  Mega8 its working fine when i am providing power from USB, but it is not giving expected results when i power it up using a smps wall socket power adapter. Any one having any idea what could be the reason?
Logged

embedded@iit
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4647

Thank You
-Given: 826
-Receive: 4207


There is no evidence that I muted SoNsIvRi


« Reply #1 on: August 21, 2012, 08:15:38 20:15 »

wall wart have a usb plug?
ic in debug mode?
home built pcb, if so show how power in, connects to ic.
Logged

Note: I stoped Muteing bad members OK I now put thier account in sleep mode
Codeman
Junior Member
**
Offline Offline

Posts: 70

Thank You
-Given: 31
-Receive: 20


« Reply #2 on: August 22, 2012, 12:56:26 00:56 »

check the ripple of the wall adapter with a scope. Are you using 100nf decoupling caps?
Logged
medik
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 75
-Receive: 4


« Reply #3 on: August 22, 2012, 04:02:09 04:02 »

the problem is from the smps power supply. you need to use  capacitors say 16v 100uf and 0.1uf at the MCU VDD and VSS pins. you may put 25v 1000uf at the voltage regulator/smps end. I had such encounter sometime ago and the capacitors worked.
Logged
sakbal
Newbie
*
Offline Offline

Posts: 9

Thank You
-Given: 369
-Receive: 35


« Reply #4 on: August 25, 2012, 09:23:14 21:23 »

Did you decouple the 5V supply to the DS1307 with a 100nF cap. (As close as possible to the DS1307)?
SMPS wall power adapters, especially the cheap ones, are renown for their high ripple noise.
 
Logged
solutions
Hero Member
*****
Offline Offline

Posts: 1823

Thank You
-Given: 655
-Receive: 900



« Reply #5 on: August 26, 2012, 12:08:21 00:08 »

Without a schematic, and wall wart specs, all of the above posts are rules of thumb, but may be useless.

You could, for instance, have a ground loop if the adapter is not isolated. It could also be pulling too much current from the adapter while the USB is a lower impedance source. It could also...well, you get my (and Pickit2's) point by now.

Keeping a circuit secret that doesn't work is pointless. You can black out your other stuff or just use the Windows7 Snipping Tool to grab the relevant stuff to post here as a pic.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC