I revamped the DT_INTS-18 code to work with the new K40 chips. Great, except it only works on K40 28/40 pin processors. I attempted to revamp the original (version 3.3) code to work with ALL PIC18F processors, including the new K40 varieties. Here's my challenge, my attempt at enabling multiple PIR/PIE/IPR locations was with #IF...#ENDIF clauses. Doesn't work. I tried IF/THEN...ENDIF, worked even worse. I took the time to do the tedious data entry work, but can't get the IF/THEN/ENDIF to work. Attached is the code. Some areas to pay attention:
- First condition is lines 61 >> 70, "If not a K40 device"
- Second condition is lines 519 >> 525, "If 28/40 pin K40 device"
- Third condition is lines 691 >> 694, "If 64 pin K40 device"
- Terminates at line 937 with #ENDIF
I'm doing this for the group, so any help would be appreciated. I learned how to configure the file for the processor I'm working on at any given time, I wanted to make it universal for everyone.
Mike
DT_INTS-18_3_4.pbp
- First condition is lines 61 >> 70, "If not a K40 device"
- Second condition is lines 519 >> 525, "If 28/40 pin K40 device"
- Third condition is lines 691 >> 694, "If 64 pin K40 device"
- Terminates at line 937 with #ENDIF
I'm doing this for the group, so any help would be appreciated. I learned how to configure the file for the processor I'm working on at any given time, I wanted to make it universal for everyone.
Mike
DT_INTS-18_3_4.pbp
Comment