;*****************************************************************************
;  AUTO_KR.INC - DEFINITION OF SYMBOLIC NAMES FOR THE I/O REGISTERS
;                OF THE 8XC196KR
;
;                These symbols correspond with the register names
;                as defined in the Automotive 8XC196KR User's Guide
;                and Data Sheet.
;
;                Copyright INTEL Corporation 1991
;*****************************************************************************

ZERO_REG        EQU     00H:WORD
WATCHDOG        EQU     0AH:BYTE
WSR             EQU     14H:BYTE
SP              EQU     18H:WORD

USFR            EQU     1FF6H:BYTE

P0PIN           EQU     1FDAH:BYTE

P1PIN           EQU     1FD6H:BYTE
P1REG           EQU     1FD4H:BYTE
P1IO            EQU     1FD2H:BYTE
P1SSEL          EQU     1FD0H:BYTE

P2PIN           EQU     1FCFH:BYTE
P2REG           EQU     1FCDH:BYTE
P2IO            EQU     1FCBH:BYTE
P2SSEL          EQU     1FC9H:BYTE

P3PIN           EQU     1FFEH:BYTE
P3REG           EQU     1FFCH:BYTE

P4PIN           EQU     1FFFH:BYTE
P4REG           EQU     1FFDH:BYTE

P5PIN           EQU     1FF7H:BYTE
P5REG           EQU     1FF5H:BYTE
P5IO            EQU     1FF3H:BYTE
P5SSEL          EQU     1FF1H:BYTE

P6PIN           EQU     1FD7H:BYTE
P6REG           EQU     1FD5H:BYTE
P6IO            EQU     1FD3H:BYTE
P6SSEL          EQU     1FD1H:BYTE

PTS_SELECT      EQU     04H:WORD
PTS_SRV         EQU     06H:WORD

INT_MASK        EQU     08H:BYTE
INT_PEND        EQU     09H:BYTE
INT_PEND1       EQU     12H:BYTE
INT_MASK1       EQU     13H:BYTE

EPAIPV          EQU     1FA8H:BYTE
EPA_PEND        EQU     1FA2H:WORD
EPA_PEND1       EQU     1FA6H:WORD  ; BUG... must write to pend1 as a word
EPA_MASK        EQU     1FA0H:WORD
EPA_MASK1       EQU     1FA4H:WORD  ; BUG... must write to mask1 as a word

EPA_TIME9       EQU     1F86H:WORD
EPA_CONTROL9    EQU     1F84H:BYTE
EPA_TIME8       EQU     1F82H:WORD
EPA_CONTROL8    EQU     1F80H:BYTE
EPA_TIME7       EQU     1F7EH:WORD
EPA_CONTROL7    EQU     1F7CH:BYTE
EPA_TIME6       EQU     1F7AH:WORD
EPA_CONTROL6    EQU     1F78H:BYTE
EPA_TIME5       EQU     1F76H:WORD
EPA_CONTROL5    EQU     1F74H:BYTE
EPA_TIME4       EQU     1F72H:WORD
EPA_CONTROL4    EQU     1F70H:BYTE
EPA_TIME3       EQU     1F6EH:WORD
EPA_CONTROL3    EQU     1F6CH:WORD
EPA_TIME2       EQU     1F6AH:WORD
EPA_CONTROL2    EQU     1F68H:BYTE
EPA_TIME1       EQU     1F66H:WORD
EPA_CONTROL1    EQU     1F64H:WORD
EPA_TIME0       EQU     1F62H:WORD
EPA_CONTROL0    EQU     1F60H:BYTE

COMP_TIME1      EQU     1F8EH:WORD
COMP_CONTROL1   EQU     1F8CH:BYTE
COMP_TIME0      EQU     1F8AH:WORD
COMP_CONTROL0   EQU     1F88H:BYTE

TIMER1          EQU     1F9AH:WORD
TIMER2          EQU     1F9EH:WORD
TIMER1_CONTROL  EQU     1F98H:BYTE
TIMER2_CONTROL  EQU     1F9CH:BYTE

AD_TIME         EQU     1FAFH:BYTE
AD_TEST         EQU     1FAEH:BYTE
AD_COMMAND      EQU     1FACH:WORD
AD_RESULT       EQU     1FAAH:WORD

SP_CONTROL      EQU     1FBBH:BYTE
SP_BAUD         EQU     1FBCH:WORD
SP_STATUS       EQU     1FB9H:BYTE
SBUF_TX         EQU     1FBAH:BYTE
SBUF_RX         EQU     1FB8H:BYTE

SSIO_BAUD       EQU     1FB4H:BYTE
SSIO_STCR1      EQU     1FB3H:BYTE
SSIO_STB1       EQU     1FB2H:BYTE
SSIO_STCR0      EQU     1FB1H:BYTE
SSIO_STB0       EQU     1FB0H:BYTE

SLPFUNREG       EQU     1FFBH:BYTE
SLPCMD          EQU     1FFAH:BYTE
SLPSTAT         EQU     1FF8H:BYTE
