LenShustek
Member
I'm building a high-speed SPI "Sniffer" and was excited to see in the MK20DX256VLH7 reference manual
https://www.pjrc.com/teensy/K20P64M72SF1RM.pdf, section 3.9.3.1 on page 128, and elsewhere
that the chip has two SPI modules. That means I can read both MISO and MOSI data simultaneously, running both modules in slave mode.
Alas, it isn't true. I couldn't figure out how to configure external pins to get access to the second SPI module, so I posted on Freescale's forum.
https://community.freescale.com/message/520001
One of the Freescale engineers investigated, and eventually responded that the documentation is wrong and will be corrected; that microcontroller has only one SPI module.
I can actually access the second module's registers, though, so I suspect the problem is that there is no way to configure external pins to be clock and select lines for the second module. But that makes it useless
The Teensy 3.1 table actually shows only one SPI module, so somehow Paul knew better than to believe the Freescale documentation!
This is just an FYI for anyone who might want to use two SPI modules. No action is required or requested of PJRC.
I solved my problem by adding an external CMOS shift register to capture the MISO data while running the first SPI in slave mode to capture the MOSI data. So I'm happily sniffing away, trying to understand how Honeywell's RedLINK wireless network works.
-- Len
https://www.pjrc.com/teensy/K20P64M72SF1RM.pdf, section 3.9.3.1 on page 128, and elsewhere
that the chip has two SPI modules. That means I can read both MISO and MOSI data simultaneously, running both modules in slave mode.
Alas, it isn't true. I couldn't figure out how to configure external pins to get access to the second SPI module, so I posted on Freescale's forum.
https://community.freescale.com/message/520001
One of the Freescale engineers investigated, and eventually responded that the documentation is wrong and will be corrected; that microcontroller has only one SPI module.
I can actually access the second module's registers, though, so I suspect the problem is that there is no way to configure external pins to be clock and select lines for the second module. But that makes it useless
The Teensy 3.1 table actually shows only one SPI module, so somehow Paul knew better than to believe the Freescale documentation!
This is just an FYI for anyone who might want to use two SPI modules. No action is required or requested of PJRC.
I solved my problem by adding an external CMOS shift register to capture the MISO data while running the first SPI in slave mode to capture the MOSI data. So I'm happily sniffing away, trying to understand how Honeywell's RedLINK wireless network works.
-- Len