Mar 22, 2013
12:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 22, 2013
12:04 AM
Hello
I am working on a project using the SPI001[1.0.12] app with Dave 3.1.6 on the Hexagon Kit.
How can i invert the Chip Select Output Pin? I don't find any thing in the app, source or header file.
regards
Max
I am working on a project using the SPI001[1.0.12] app with Dave 3.1.6 on the Hexagon Kit.
How can i invert the Chip Select Output Pin? I don't find any thing in the app, source or header file.
regards
Max
- Tags:
- IFX
1 Reply
Mar 22, 2013
11:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 22, 2013
11:31 AM
Hi Max_Rock,
You can invert the Chip Select Output by manually adjusting the PCR.SELINV bit like this:
SPI001_Handle0.USICRegs->PCR_SSCMode |= USIC_CH_PCR_SSCMode_SELINV_Pos;
SPI001_Handle0.USICRegs->PCR_SSCMode &= ~(USIC_CH_PCR_SSCMode_SELINV_Pos);
You can invert the Chip Select Output by manually adjusting the PCR.SELINV bit like this:
SPI001_Handle0.USICRegs->PCR_SSCMode |= USIC_CH_PCR_SSCMode_SELINV_Pos;
SPI001_Handle0.USICRegs->PCR_SSCMode &= ~(USIC_CH_PCR_SSCMode_SELINV_Pos);