Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi
Still i am facing prpblem.
below is my code for slave and master
//SLave Code
void init_SPI0_SLAVE(void)
{
// PCONP |= 0x00000400 ;
PINSEL1 |= 0x00001500;
IODIR0 &= ~(0x00000080) ; //CS configured as input
//MOSI
S0SPCCR = 16; //Set SPI clock to...
Please check below is my code, is there any mistake?
I made register config as per LPC2129
main()
{
init_SPI0() ;
putchar_spi0(0xaa) ;
putchar_spi0(0x11) ;
putchar_spi0(0x55) ;
}
void init_SPI0(void)
{
PINSEL1 |= 0x00005500;
IODIR0 |=0x000000D0 ;
S0SPCCR =...
Hi
Thanks for the reply and i have tested your code, but S0SPSR 7th bit is not setting after writing data to S0SPDR,
i have only master , and trying to send some data via SPI port , no clock and MOSI output is not pulse , i checked with oscilloscope..
for checking is it require slave...
iim7010a wiznet
Hi
i am using wiznet module in my 8051 controlle board, i want software for client TCP/IP c code , can any one send me that, i do not want Loop test code , already i test with loop test it working, with that code i am not in a position to send receive and send data to my pc...
wiznet junk data
Hi
I am using wiznet ethernet module IIM7010A in my 8051 board - using as a tcp/ip client and all initialization, pinging and connection with server is ok
but sending data and receiving the data is comming as YY###@@ like junk , i do not know what is the format of the data...
gmt to ist conversion
Hi
I am Using PIC controller in my project , Now i want to convert GPS time & date (GMT)to Indian standard time (IST) , can any one send me the C sample code
Bye
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.