; I/O Ports
PPort              EQU     80h         ; 10XX-XXXX
TraceCtrl          EQU    100h         ;100XX-XXXX
TR_DISABLE         EQU    0
TR_ENABLE          EQU    80h
TR_CLR_OV          EQU    40h
TR_NO_DLY          EQU    20h
TraceAddr          EQU    100h
TraceAddrL         EQU    100h
TraceAddrH         EQU    101h
TraceStatus        EQU    103h
BDMPort            EQU     00h         ; 00XX-XXXX
EPort              EQU     40h         ; 01XX-XXXX

if (_VERSION_ EQ 0) or (_VERSION_ EQ 2)
EP_BKPT            EQU     01h         ; write EP.0
EP_Target_VCC      EQU     08h         ; read  EP.3
EP_Active          EQU     04h         ; read  EP.2
EP_BDM_Busy        EQU     02h         ; read  EP.1
EP_BDM_Status      EQU     01h         ; read  EP.0
endif
if _VERSION_ EQ 1
EP_TrigEN          EQU     04h         ; write EP.2
EP_TEA             EQU     02h         ; write EP.1
EP_BKPT            EQU     01h         ; write EP.0
EP_BKPTsync        EQU     20h         ; read  EP.5
EP_TEAsync         EQu     10h         ; read  EP.4
EP_Target_VCC      EQU     08h         ; read  EP.3
EP_Active          EQU     04h         ; read  EP.2
EP_BDM_Busy        EQU     02h         ; read  EP.1
EP_BDM_Status      EQU     01h         ; read  EP.0
endif
