Blame | Last modification | View Log | Download | RSS feed
ifndef __s12z_sent_inc__s12z_sent_inc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File S12ZSENT.INC *;* *;* Contains Bit & Register Definitions for S12Z SENTTX *;* *;****************************************************************************STTICKRATE equ $09A0 ; SENT Transmitter Tick Rate Register (16 bit);PRE s12zfld STTICKRATE,14:0 ; SENTTX Tick Rate BitsSTPPULSE equ $09A2 ; SENT Transmitter Pause-Pulse Register (16 bit)PPEN s12zbit.w STPPULSE,15 ; SENTTX Pause Pulse EnablePPFIXED s12zbit.w STPPULSE,14 ; SENTTX Fixed Length Pause PulsePPCOUNT s12zfld.w STPPULSE,11:0 ; SENTTX Pause Pulse Count TicksSTCONFIG equ $09A4 ; SENT Transmitter Configuration Register (16 bit)TXINIT s12zbit.w STCONFIG,15 ; SENTTX Initialization EnableTXEN s12zbit.w STCONFIG,14 ; SENTTX Pin EnableDNIBBLECOUNT s12zfld.w STCONFIG,3:8 ; SENTTX Data Nibble CountOPTEDGE s12zbit.w STCONFIG,4 ; SENTTX Optimized Rising Edge PositionSINGLE s12zbit.w STCONFIG,3 ; SENTTX Single Shot OperationCRCSCN s12zbit.w STCONFIG,2 ; SENTTX CRC includes Status- and Communication NibbleCRCLEG s12zbit.w STCONFIG,1 ; SENTTX CRC Legacy Algorithm EnableCRCBYP s12zbit.w STCONFIG,0 ; SENTTX Automatic CRC generation bypassSTINTEN equ $09A6 ; SENT Transmitter Interrupt Enable RegisterPPREIE s12zbit STINTEN,4 ; SENTTX Pause Pulse Rising-Edge Interrupt EnableTUIE s12zbit STINTEN,3 ; SENTTX Transmitter Under-run Interrupt EnableCSIE s12zbit STINTEN,2 ; SENTTX Calibration Pulse Start Interrupt EnableTCIE s12zbit STINTEN,1 ; SENTTX Transmission Complete Interrupt EnableTBEIE s12zbit STINTEN,0 ; SENTTX Transmit-Buffer Empty Interrupt EnableSTINTFLG equ $09A7 ; SENT Transmitter Interrupt Flag RegisterPPRE s12zbit STINTFLG,4 ; SENTTX Pause Pulse Rising-Edge FlagTU s12zbit STINTFLG,3 ; SENTTX Transmitter Under-run FlagCS s12zbit STINTFLG,2 ; SENTTX Calibration Pulse Start FlagTC s12zbit STINTFLG,1 ; SENTTX Transmission Complete FlagTBE s12zbit STINTFLG,0 ; SENTTX Transmit-Buffer Empty FlagSTTXBUF equ $09A8 ; SENT Transmit Buffer (32 bit)STATCONF s12zfld STTXBUF,4:28 ; SENTTX Status and Configuration NibbleCRC s12zfld STTXBUF,4:24 ; SENTTX CRC NibbleDATA0 s12zfld STTXBUF,4:20 ; SENTTX Data Nibble 0DATA1 s12zfld STTXBUF,4:16 ; SENTTX Data Nibble 1DATA2 s12zfld STTXBUF,4:12 ; SENTTX Data Nibble 2DATA3 s12zfld STTXBUF,4:8 ; SENTTX Data Nibble 3DATA4 s12zfld STTXBUF,4:4 ; SENTTX Data Nibble 4DATA5 s12zfld STTXBUF,4:0 ; SENTTX Data Nibble 5restore ; re-enable listingendif ; __s12z_sent_inc