>=20 > This remaind me of another problem. How would I implement a=20 > WDT with C? Isn't it a bit difficult maybe impossible or am I=20 > not thinking right? >=20 I'm not sure if I am answering the question you are asking, but here is an example from CCS C docs: main() { setup_wdt(WDT_2304MS); while (TRUE) { restart_wdt(); perform_activity(); } } This sets up the WDT to reset every 2.304 seconds, and you just call restart_wdt() to reset it whenever needed. Alex -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads