??? 04/22/05 13:28 Read: times |
#92153 - The watchdog, take 3 Responding to: ???'s previous message |
All this watchdog stuff is an unnecessary excersize since the toggle bit I asked Thomas to isert and check proved that no resets happened. Yes, you did. And no, they didn't. I will, however ask Thomas to try it again when he is rested since I was/am convinced this to be the most likely cause. Then I'll give you the answer right away - that's what I used all morning to find. I wrote the assembly-routine to disable the watchdog on reset and implemented it in the project. The watchdog has now been disabled for good using timed access as described on pages 36 and 37 of the DS89c420 datasheet ( http://pdfserv.maxim-ic.com/en/ds/DS89C420.pdf ). The assembly looks like this: mov TA,#0xAA mov TA,#0x55 anl WDCON,#0xFDThe timer0-interrupt occurs approx. every 48th millisecond, the main-while(1) runs for approx. 8 microseconds before relooping and the watchdog-pin is only toggled once at startup. Strangely enough though, I still don't get any output on the second-, minute-, and hour-pins in real-world. I'm wondering whether this would work better if I rewrote it in assembly? /Thomas |