Blame | Last modification | View Log | Download | RSS feed
ifndef __st7spiinc ; avoid multiple inclusion__st7spiinc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File SPI.INC *;* *;* contains SFR and Bit Definitions for ST72xxx SPI *;* *;****************************************************************************SPIDR label $0021 ; Data I/O RegisterSPICR label $0022 ; Control RegisterSPIE bit SPICR,7 ; Serial peripheral interrupt enableSPE bit SPICR,6 ; Serial peripheral output enableSPR2 bit SPICR,5 ; Divider EnableMSTR bit SPICR,4 ; MasterCPOL bit SPICR,3 ; Clock polarityCPHA bit SPICR,2 ; Clock phaseSPR1 bit SPICR,1 ; Serial peripheral rateSPR0 bit SPICR,0SPISR label $0023 ; Status RegisterSPIF bit SPISR,7 ; Serial Peripheral data transfer flagWCOL bit SPISR,6 ; Write Collision statusMODF bit SPISR,4 ; Mode Fault flagrestoreendif ; __st7spiinc