- This topic has 1 reply, 2 voices, and was last updated 13 years, 4 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › hi am unable to transfer data through SPI protocol with philips P89v51rd2 controller , please help me out
#include<p89v51rd2.h>
void main()
{
unsigned char v;
MISO=1;
SPCTL=0x65;
v=’k’;
while(1)
{
SPDAT(v);
while(SPCFG==0X80);
SPCFG=0x80;
}
}
hi
* check data what you have sending (if loop back support)
* check SPCFG (spi module is starting or not) and SPICR