LPC2387 interfacing with SC16IS762

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC2387 interfacing with SC16IS762

790 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sumit.kajave on Mon Sep 14 07:31:22 MST 2015
I am interfacing LPC2387 with SC16IS762(which is SPI to UART converter).
1) My problem is when I read 2 or more register it gives same value as 1st one. I think LPC or converter IC buffer is not clear.
2) when I read first time I get alwas 0xff in my buffer
SSP configure as 8 bit data, CPOL=0,CPHA=0,clock=0x20,SCR=0x07 (I use SSP1)
below is my code
SSP read

while(!(SSP1SR & SSPSR_TNF));
   SSP1DR=(unsigned char)adr;

while ( SSP1SR & SSPSR_BSY );
SSP1DR=0xFF;
while ( !(SSP1SR & SSPSR_RNE) );
ssp_return_data=(unsigned char)SSP1DR;

SSP write

while(!(SSP1SR & SSPSR_TNF));
     SSP1DR=*buf;
    while ( SSP1SR & SSPSR_BSY );
   while ( (SSP1SR & (SSPSR_BSY|SSPSR_RNE)) != SSPSR_RNE );

Please help me I am struct here for more than 2 days




Labels (1)
Tags (1)
0 Kudos
Reply
2 Replies

578 Views
diegoadrian
NXP Employee
NXP Employee

I apologize for the late answer.

But, do you are still having a problem with this?

Best Regards,

Diego.

0 Kudos
Reply

578 Views
tilaklakshmana
Contributor II

I see a similar problem with the SPI slave (SC16IS762) while using a different master (MSP430). I seem to get 0xFF on chip enable for SC16IS762. Very strange. Am I missing something?

Kindly do let me know if you managed to solve this problem.

Thanks,

Tilak

0 Kudos
Reply