Any issue on the SPI module of the Aduc7020 chip?
I do encounter some spi issues with the ADUC7020.
I amtrying to use it as a slave with a clock of 250Khz and clock phase=1 and clock polarity=1.
I am using the polling of the SPISTA register.
DOEs anyone has ever had this kind of issue ?
My register SPICON is confugured with the value 0x150d
HEre is the code i am using:
ldr r1,=0xFFFF0A00 /* read SPISTA */
ldr r2,=0xFFFF0A04 /* SPIRX */
ldr r3,=0xFFFF0A08 /*SPITX*/
ldr r0,[r1] /*read SPISTA */
and r5,r0,#0x08 /* MASK with SPIRX register is full */
ldr r4,[r2] /*read SPIRX */
str r4,[r3] /* copy the received byte in SPITX */
ldr r0,[r1] /* Get theSPISTA register */
and r5,r0,#0x1 /* wait the SPITX register is empty */