Blame | Last modification | View Log | Download | RSS feed
ifndef __spi2inc ; avoid multiple inclusion__spi2inc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File SPI2.INC *;* *;* Contains SFR and Bit Definitions for ST62xx more complex *;* Serial Peripheral Interface *;* *;****************************************************************************DIV sfr 0e1h ; SPI DividerSPINT bit 7,DIV ; Interrupt FlagSPDIV bfield DIV,3,4 ; Burst Mode Bit Clock Period SelectionCD bfield DIV,0,3 ; Base/Bit Clock Rate SelectionSPIDSR sfr 0e0h ; SPI Data/Shift RegisterMOD sfr 0e2h ; SPI Mode RegisterSPRUN bit 7,MOD ; SPI RunSPIE bit 6,MOD ; SPI Interrupt EnableCPHA bit 5,MOD ; Clock Phase SelectionSPCLK bit 4,MOD ; Base Clock SelectionSPIN bit 3,MOD ; Input SelectionSPSTRT bit 2,MOD ; Start SelectionEFILT bit 1,MOD ; Enable FiltersCPOL bit 0,MOD ; Clock PolarityMISCR sfr 0ddh ; Miscellaneous RegisterD0 bit 0,MISCR ; Selects the Sout Pin as the SPI Output Linerestoreendif ; __spi2inc