Blame | Last modification | View Log | Download | RSS feed
ifndef __st7sciinc ; avoid multiple inclusion__st7sciinc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File SCI.INC *;* *;* contains SFR and Bit Definitions for ST7 SCI *;* *;****************************************************************************__defsci macro Base,ERPROffsSCISR label Base+$01 ; SCI Status RegisterTDRE bit SCISR,7 ; Transmit Data register EmptyTC bit SCISR,6 ; Transmission CompleteRDRF bit SCISR,5 ; Received Data Ready FlagIDLE bit SCISR,4 ; Idle Line DetectOR bit SCISR,3 ; Overrun ErrorNF bit SCISR,2 ; Noise FlagFE bit SCISR,1 ; Framing ErrorSCIDR label Base+$01 ; SCI Data RegisterSCIBRR label Base+$02 ; SCI Baud Rate RegisterSCP bfield SCIBRR,6,2 ; First SCI Prescaler [1:0]SCT bfield SCIBRR,3,3 ; SCI Transmitter Rate Divisor [2:0]SCR bfield SCIBRR,0,3 ; SCI Receiver Rate Divisor [2:0]SCICR1 label Base+$03 ; SCI Control Register 1R8 bit SCICR1,7 ; Receive Data Bit 8T8 bit SCICR1,6 ; Transmit Data Bit 8M bit SCICR1,4 ; Word LengthWAKE bit SCICR1,3 ; Wake-Up MethodSCICR2 label Base+$04 ; SCI Control Register 2TIE bit SCICR2,7 ; Transmitter Interrupt EnableTCIE bit SCICR2,6 ; Transmission Complete Interrupt EnableRIE bit SCICR2,5 ; Receiver Interrupt EnableILIE bit SCICR2,4 ; Idle line interrupt EnableTE bit SCICR2,3 ; Transmitter EnableRE bit SCICR2,2 ; Receiver EnableRWU bit SCICR2,1 ; Receiver Wake-UpSBK bit SCICR2,0 ; Send BreakSCIERPR label Base+ERPROffs ; SCI Extended Receive Prescaler RegisterSCIETPR label Base+$07 ; SCI Extended Transmit Prescaler Registerendmrestoreendif ; __st7sciinc