Dec 11, 2020
03:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 11, 2020
03:12 AM
Is there a way to set the level of the MOSI (=MTSR)-pin outside the active CS (=SLSO) phase ?
I would like to MOSI-pin to always have Lo, when the CS becomes inactive. Currently MOSI retains its last level until the next transmission.
Peter
I would like to MOSI-pin to always have Lo, when the CS becomes inactive. Currently MOSI retains its last level until the next transmission.
Peter
- Tags:
- IFX
4 Replies
Dec 11, 2020
03:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 11, 2020
03:32 AM
Can you try using the IfxPort_setPinLow() function? It would definitely override the pin's state, not sure if it would switch back to QSPI control after. Worth a try.
Dec 11, 2020
03:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 11, 2020
03:38 AM
Thank you qcoret.
I was hoping that there is an automatic way to achieve this, just by config of the QSPI - such possibility f.e. exists on the S32K family.
I was hoping that there is an automatic way to achieve this, just by config of the QSPI - such possibility f.e. exists on the S32K family.
Dec 11, 2020
05:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 11, 2020
05:50 AM
Unfortunately there is not a setting to force the MOSI low after a transfer as it holds the value of the last bit sent (I agree this would be a nice feature). For this behavior I think you could perform a GLOBALCON.RESETS = (7 on TC2xx and 1 on TC3x devices) to flush the FIFO's (and State Machine). Then the QSPI MISO should be at a low level.
Dec 15, 2020
03:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 15, 2020
03:01 AM
Had an idea. It's a bit far-fetched but it could work "automatically".
QSPI can generate an interrupt on phase transition using GLOBALCON1.PT1 or PT2. If you generate the interrupt at EOF, then when you service your interrupt, you can set the pin level to the desired level. It will be "automatic" as in it'll happen every time you send a frame.
QSPI can generate an interrupt on phase transition using GLOBALCON1.PT1 or PT2. If you generate the interrupt at EOF, then when you service your interrupt, you can set the pin level to the desired level. It will be "automatic" as in it'll happen every time you send a frame.