I'm new to PIC programming and found it's hard to find simple skeleton examples of how to program MCU's. I managed to piece this entire example (attached) together from the datasheet for the PIC18F1320. The code attached has a very simple example of how to get an interrupt working and some notes that might be helpful for someone starting out like me. It's built for a Junebug programmer. If any experts out there have some comments on how to improve it please do. Especially the ISR (interrupt service routine), where I tried to build an if/then style statement (if light is on turn off, if off turn on) using assembly, I think there's a better/shorter way than what I have, but can't think of it right now...
Good luck!
RN
Good luck!
RN