hi am unable to transfer data through SPI protocol with philips P89v51rd2 controller , please help me out | Microcontroller › 8051 › hi am unable to transfer data through SPI protocol with philips P89v51rd2 controller , please help me out This topic has 1 reply, 2 voices, and was last updated 12 years, 7 months ago by Anil K P. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts February 6, 2012 at 1:28 pm #1678 karthikParticipant #include<p89v51rd2.h>void main(){ unsigned char v; MISO=1; SPCTL=0x65; v=’k’; while(1) { SPDAT(v); while(SPCFG==0X80); SPCFG=0x80; }} February 7, 2012 at 10:13 am #7117 Anil K PParticipant hi * check data what you have sending (if loop back support) * check SPCFG (spi module is starting or not) and SPICR Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In