home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / SIMTEL / HITECH-C / MOTOROLA.EXE / 68HC05E0.H < prev    next >
Text File  |  1993-04-21  |  2KB  |  48 lines

  1. /*
  2.  *    Ports and interrupts for the 68HC05E0 processor
  3.  */
  4.  
  5. /*    Port Data registers */
  6.  
  7. volatile static unsigned char    PADR @ 0x00;
  8. volatile static unsigned char    PBDR @ 0x01;
  9. volatile static unsigned char    PCDR @ 0x02;
  10. volatile static unsigned char    PDDR @ 0x03;
  11. volatile static unsigned char    PEDR @ 0x04;
  12.  
  13. /*    Port Data Direction registers */
  14.  
  15. static unsigned char        PADDR @ 0x05;
  16. static unsigned char        PBDDR @ 0x06;
  17. static unsigned char        PCDDR @ 0x07;
  18. static unsigned char        PDDDR @ 0x08;
  19. static unsigned char        PEDDR @ 0x09;
  20.  
  21. /*    Timer control registers */
  22.  
  23. static unsigned char        TAPR @ 0x0A;    /* timer A prescaler register */
  24. static unsigned char        TBSR @ 0x0B;    /* timer B scaler register */
  25. static unsigned char        TCR  @ 0x0C;    /* timer control register */
  26.  
  27.  
  28. volatile static unsigned char    ICR  @ 0x0E;    /* interrupt control register */
  29. volatile static unsigned char    SIDR @ 0x0F;    /* serial interface data register */
  30. static unsigned char        PEMR @ 0x10;    /* Port E Mode register */
  31. static unsigned char        SISR @ 0x11;    /* Serial Interface S register */
  32. static unsigned char        PDMR @ 0x12;    /* Port E Mode register */
  33.  
  34. static unsigned char        WAER @ 0x13;    /* Wake up enable register */
  35. static unsigned char        WAPR @ 0x14;    /* Wake up phase register */
  36.  
  37. volatile static unsigned char    RTICTR @ 0x18;    /* RTI control register */
  38. volatile static unsigned char    RTICNR @ 0x19;    /* RTI count register */
  39.  
  40. /*
  41.  *    Interrupt vectors
  42.  */
  43.  
  44. #define    INTX_VEC    0xFFFA    /* real time, external and wake up interrupt */
  45. #define    TIMERA_VEC    0xFFF8    /* timer a interrupt */
  46. #define    TIMERB_VEC    0xFFF6    /* timer b interrupt */
  47. #define    SERIAL_VEC    0xFFF4    /* serial interface interrupt */
  48.