Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/23/03 07:46
Read: times


 
#36979 - SPI
Hello everybody i am working on the project with isd4004 & AT89s8252 as a master on spi
but i cant get the code for communication to work,could someone please help me,

SPI initialised as follows
SPCR DATA 0D5H ;SPI CONTROL REGISTER
SPSR DATA 0AAH ;SPI STATUS REGISTER
SPIF EQU 10000000b ;INTERRUPT FLAG
SPDR DATA 86H ;SPI DATA REGISTER

CS EQU P1.4 ;SLAVE SELECT
MOSI EQU P1.5 ;SPI
MISO EQU P1.6 ;SPI
SCK EQU P1.7 ;SPI
setup:
mov spcr,#55h
setb cs
setb mosi
setb miso
setb sck
.
I am using 11.0592 crystal

Thanks in advance
Lerato

List of 10 messages in thread
TopicAuthorDate
SPI            01/01/70 00:00      
RE: SPI            01/01/70 00:00      
RE: SPI            01/01/70 00:00      
RE: SPI            01/01/70 00:00      
RE: SPI            01/01/70 00:00      
RE: SPI            01/01/70 00:00      
RE: SPI            01/01/70 00:00      
RE: SPI            01/01/70 00:00      
RE: SPI            01/01/70 00:00      
RE: SPI            01/01/70 00:00      

Back to Subject List