i am interfacing two 8051 microcontroller using spi,data recieve from hyperterminal is written to spi write which will read on another slave 8051 microcontroller side by spi read and shown in hyperterminal m tried so many times but the correct data is nt displayed in hyperterminal,
i dnt understand where is mistakes,
Please suggest,
status for master pin and slave:
cs,mosi,miso,sclk and also spcfg,spctl
for circiut diagarm m just simply interfacing the cs to cs,MOSI to MOSI,MISO to MISO and SCK to SCK pin,
For code i have attached code,please check and do the needful
Waiting for reply.
- - - Updated - - -
And also please suggest me if i want to interface sd card with p89v51rd2,wat is the hardware interface bz for sd card requires 3.3 v supply but p89v51rd2 has minimum 4.5 v supply is required please suggest.
m just checked but still it is nt working,watever hardware interfacing m done it is correct please check the code again, right nw m modifying some code master communicate with slave but slave not communicating with master please check and reply