> The assignment was as follows. >=20 > 1. The framework has to be maintained. > 2. The interrupt to be 1 mS @ 20 MHz Fosc. > 3. Counter to decrement every 100 mS in the interrupt. >=20 > In the main loop, a state machine was monitoring the counters and togglin= g > the LED. >=20 > So the on time was to be 200 mS (single register) and off time was to be > 30 seconds (double register). >=20 > This looks like an assignment where in all type of issues had to be addre= ssed ( > 20 MHz clock, 1 mS interrupt, counter decrement at 100 mS, on time 200 mS > and off time 30 seconds). This makes it look even more like a school assignment, and I am wondering w= hat electronic.consultant has missed in his course work that he can't do it= .. --=20 Scanned by iCritical. --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .