poorchava
Advanced Member level 1
- Joined
- May 21, 2009
- Messages
- 429
- Helped
- 71
- Reputation
- 142
- Reaction score
- 71
- Trophy points
- 1,318
- Location
- Wrocław, Poland
- Activity points
- 4,780
I'm programming a controller board which has dsPIC33FJ128MC804. This MCU has 2 SPI modules. I need to communicate with 3 devices: Display (write only), serial flash (write/read) and Sensor Analog Frontend LMP90099 from NSc (write/read).
Frontend needs communication all the time, but flash and display only once in a while. First i thought that i will use second spi module for flash and bit-bang the display driver. On the second thought it might be possible to use one SPI port for communication with both display and flash, only switching Peripheral Pin Select Registers.
Did anyone do something like that? Are there any pitfalls or things u need to watch out for? PPS seems to be documented quite poorly at Microchip documents (including FRMs)
Frontend needs communication all the time, but flash and display only once in a while. First i thought that i will use second spi module for flash and bit-bang the display driver. On the second thought it might be possible to use one SPI port for communication with both display and flash, only switching Peripheral Pin Select Registers.
Did anyone do something like that? Are there any pitfalls or things u need to watch out for? PPS seems to be documented quite poorly at Microchip documents (including FRMs)