Blame | Last modification | View Log | Download | RSS feed
ifndef __spim2cinc__spim2cinc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File REGSPI2C.INC *;* *;* Contains SPI Bit & Register Definitions for Newer ATmegas *;* *;****************************************************************************SPCR port 0x2c ; SPI Control RegisterSPR0 avrbit SPCR,0 ; Clock SelectSPR1 avrbit SPCR,1CPHA avrbit SPCR,2 ; Clock phaseCPOL avrbit SPCR,3 ; Clock polarityMSTR avrbit SPCR,4 ; Master/Slave SelectionDORD avrbit SPCR,5 ; Bit OrderSPE avrbit SPCR,6 ; Enable SPISPIE avrbit SPCR,7 ; SPI Interrupt EnableSPSR port 0x2d ; SPI Status RegisterSPI2X avrbit SPSR,0 ; Double Speed ModeWCOL avrbit SPSR,6 ; Write CollisionSPIF avrbit SPSR,7 ; SPI Interrupt Occured?SPDR port 0x2e ; SPI Data Registerrestore ; re-enable listingendif ; __spim2cinc