I am trying to get a slave working.
I have 2 mbed devices one configured as Master and other slave. I am using DIP 5 6 7 8 for my SPI.
When I use the mbed class SPISlave this works great in polling mode (interrupt do not work... thats a different problem).
Now I used a driver uploaded by someone which is the same driver given by NXP. I configured the same port with that its not working. I see on the scope that all the spi signals drop to half in peak to peak some are biased up by 1.7 V. These signals are fine if I use SPISlave.
I dumped the all the registers they are exactly same here is the dump
With SPISlave
PCONP - 0x052887DE
PCLK0 - 0x001C0040
PCLK1 - 0x00010000
SPCR - 0x00000000
SPSR - 0x00000000
SPCCR - 0x00000000
PINSEL0 - 0x005AA050
PINMOD0 - 0x00AAA0A0
Int REg = 0x00000000
With my driver
0x052887DE -PCONP
0x000C0000 -PCLK0
0x00000000 -PCLK1
0x00000000 -SPCR
0x00000000 -SPSR
0x00000000 -SPCCR
0x005AA000 -PINSEL0
0x000AA000 -PINMOD0
I do not see whats the difference. All the configurations are same.
Have anyone seen this problem or know why please let me know.
Regards,
Shankar
I am trying to get a slave working.
I have 2 mbed devices one configured as Master and other slave. I am using DIP 5 6 7 8 for my SPI.
When I use the mbed class SPISlave this works great in polling mode (interrupt do not work... thats a different problem).
Now I used a driver uploaded by someone which is the same driver given by NXP. I configured the same port with that its not working. I see on the scope that all the spi signals drop to half in peak to peak some are biased up by 1.7 V. These signals are fine if I use SPISlave.
I dumped the all the registers they are exactly same here is the dump
With SPISlave
PCONP - 0x052887DE PCLK0 - 0x001C0040 PCLK1 - 0x00010000 SPCR - 0x00000000 SPSR - 0x00000000 SPCCR - 0x00000000 PINSEL0 - 0x005AA050 PINMOD0 - 0x00AAA0A0 Int REg = 0x00000000
With my driver
0x052887DE -PCONP 0x000C0000 -PCLK0 0x00000000 -PCLK1 0x00000000 -SPCR 0x00000000 -SPSR 0x00000000 -SPCCR 0x005AA000 -PINSEL0 0x000AA000 -PINMOD0
I do not see whats the difference. All the configurations are same.
Have anyone seen this problem or know why please let me know.
Regards, Shankar