Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 19, 2024, 09:12:09 21:12


Login with username, password and session length


Pages: [1]
Print
Author Topic: watchdog issue on AVR  (Read 3505 times)
0 Members and 1 Guest are viewing this topic.
sphinx
Hero Member
*****
Online Online

Posts: 913

Thank You
-Given: 606
-Receive: 265



« on: October 26, 2009, 07:58:18 19:58 »

hey all

i made a program in assembler trying to figure out what i am doing wrong since watchdog wont work
i just made a very simple program to set a led on portb1 and then when watchdog cuts in it should
clear the same port and go to sleep.

i tried it with both oshonsoft and proteus and its not working

is there anyone that can help out on this

best regards

p.s. i dont have any hardware to test sadly
Logged

laws of physics are not laws at all, just assumptions and formulas that work as long as we don't figure something new that wrecks the calculations. the infinite onion try to peel that one
jestanoff
Junior Member
**
Offline Offline

Posts: 46

Thank You
-Given: 25
-Receive: 18



WWW
« Reply #1 on: October 27, 2009, 08:56:19 20:56 »

Hi,
Try with code which I edited. I have not tested it, but I guess it will work. Atmel Watchdog is setting very strange, but once setup works flawlessly. In my projects I used it only to reset MCU, not for interrupt. If you replace the bit WDTIE with WDE will get my working code. Good approach for work is to have hardware to test.
Regards
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