PDA

View Full Version : Serin & Watchdog Concept



Megahertz
- 20th September 2010, 10:10
Hi, this bothers me a lot so I wanted to ask here the relation between Serin and Watchdog timer.
If I am using the command:

Serin PortA.3,N2400,["BB"]

What is more advisable, to leave the watchdog timer OFF or ON. I know PICBASIC Pro by default adds CLRWDT into the code at appropriate places automatically as you compile it.

But what could be the side effects of leaving the WDT ON and also using the Serin Command above in the same code?

Megahertz
- 25th October 2010, 15:06
Anyone there?

Darrel Taylor
- 25th October 2010, 15:43
There is no problem using SERIN with the WDT ON or OFF.

SERIN/SEROUT automatically keeps the WDT cleared if ON.

Megahertz
- 26th October 2010, 17:50
There is no problem using SERIN with the WDT ON or OFF.

SERIN/SEROUT automatically keeps the WDT cleared if ON.

Thanks a lot Darrel