Announcement

Collapse
No announcement yet.

New DT_Ints for Enhanced 16F series processors

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • New DT_Ints for Enhanced 16F series processors

    I sure wish there were a version of DT_Ints?? or similar for the new Enhanced 16F series processors. It looks like MicroChip changed all of the interrupt register bit locations for processors like the 16F18326 which is an upgrade from the 16F1825. I also noticed that there is no longer any Self Programming Capability with these. (not boot loader capable)
    Dave Purola,
    N8NTA
    EN82fn

  • #2
    If you open DT_INTS, you will see all of your INT PIE/PIR SFR locations. Here is an example where I added Angular Timer INT to the basic DT_INTS routine:

    ; --- *** Added Angular Timer Definitions for PIC16F16xx *** -------------------
    ASM
    #define AT1_INT PIR5,AT1IF, PIE5,AT1IE ;Angular Timer
    #define PHS_INT AT1IR0,PHSIF, AT1IE0,PHSIE ;AT Phase
    #define MISS_INT AT1IR0,MISSIF, AT1IE0,MISSIE ;AT Missing Pulse
    #define PER_INT AT1IR0,PERIF, AT1IE0,PERIE ;AT Period
    #define CC3_INT AT1IR1,CC3IF, AT1IE1,CC3IE ;AT CC3
    #define CC2_INT AT1IR1,CC2IF, AT1IE1,CC2IE ;AT CC2
    #define CC1_INT AT1IR1,CC1IF, AT1IE1,CC1IE ;AT CC1
    ENDASM

    You can change PIE locations, add new ones, or modify any way needed.

    Comment


    • #3
      Mike, I realize I can make changes to the original DT_Ints but looking at the way Microchip rearranged all of the interrupt bit locations it looks to me to be almost a total rewrite. I just thought maybe someone out there has already done something.
      Dave Purola,
      N8NTA
      EN82fn

      Comment

      Working...
      X