C

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

C

919 Views
salmabay
Contributor II

Hi,

I am having problem to read and write to CLRC663 registers using SPI interface.

for example I need to write the value 0x98 to the T0control register (0Fh), I am sending the following data (address shifted with the LSB=0) (address, value)= (0x1E, 0x98)

pastedImage_1.png

and I tried to read it back by sending on MOSI (address shifted with the LSB=1), (addresss, 0x00)=(0x1F, 0x00), and I got every time defferent value which is not equal to (0x98): 

pastedImage_2.png

What do you think is the problem ? 

Please assist

Thank you

0 Kudos
2 Replies

818 Views
nicolastoulouse
Contributor II

Hi jimmychan, are you sure NSS need to be set to high between address and value? 

https://community.nxp.com/message/1135171?commentID=1135171#comment-1135171

0 Kudos

818 Views
jimmychan
NXP TechSupport
NXP TechSupport

please try to set NSS to high after sent the address. then set NSS to low again when send the value. 

0 Kudos