![]() Org 4 is where the program goes when interrupt is detected. NOTE: Tabbed once across to remove from column 1 org is the origin - PIC start up begins from here. See respective data sheet for additional information on configuration word. The labels following the directive are located in the respective. "Copy Protect" and "Watch Dog Timer" has been turned off, "Internal RC Oscilator" enabled. '_CONFIG' directive is used to embed configuration data within. _CONFIG _CONFIG2, _IESO_OFF & _FCMEN_OFF _CONFIG _CONFIG1, _CP_OFF & _WDT_OFF & _LVP_OFF & _INTRC_IO & _MCLR_OFF #include processor specific variable definitionsĮRRORLEVEL 0, -302 suppress bank selection messages List p=16F88 list directive to define processor Refer to the respective PIC data sheet for additional * Uses interrupt on overflow for 16bit Timer1 * Think it might be something to do with the T1CON Reg set up. essentially, the program should turn an LED on, wait until Timer1 overflow interrupt occurs, then turn it off. So it's occurred to me that my program is killing my PICs! It's basically started happening when I started playing around with the Timer1 function. ![]() I then loaded it with a different program. It's not the programmer (at least I think not).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |