Quote Originally Posted by Bruce View Post
I have a brand spanking new PICkit 1 FLASH Starter Kit, which I have no use for whatsoever, that I will ship to the first person that answers this question.

Rules:

1. The winning person is willing to pay for whatever shipping they want it delivered by.
2. The winner allows me to post his/her name & answer here.

I.E. you pay for the shipping of your choice, and you get the new PICkit 1 FLASH Starter Kit for FREE. No strings attached.

This simple code example is for a PIC18F2431, and there are a few things missing, but, if you're good, or can read a data sheet, you can figure out & explain in detail what it's doing.

Explain, in detail, what this code example is doing, and you're the winner.

Code:
  
Main:
    WHILE !PIR1.1
    WEND
    PIR1.1 = 0
    PORTB.0 = PORTB.0 ^ 1
    GOTO Main
Yeah - I know - the kit is only $36.00 new, but I thought this would be a lot more fun than selling the darn thing on eBay....
Hi Bruce,
here is my try:
PIR1.1 . . . Timer2 interrupt flag bit

wait fo tmr2if to set
then clear it and toggle PortB.0
loop