SPI

Forum for problems or queries regarding Flowcode Comms Components. Eg LIN, I2C, SPI, RS232, CAN, IrDA etc

Moderators: Benj, Mods

Post Reply
dvwagner
Flowcode V4 User
Posts: 8
Joined: Tue Mar 04, 2008 11:24 pm
Contact:

SPI

Post by dvwagner »

Can someone explain the component properties for the SPI and there use? NVM, DAC?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: SPI

Post by Benj »

Hello

If you go into the SPI properties then there is a help button which should take you directly to the SPI help file.

Otherwise the help file can be found in the main Flowcode V3 folder named SPI.hlp.

jadiflow
Flowcode v5 User
Posts: 273
Joined: Thu Apr 17, 2008 9:59 am
Has thanked: 19 times
Been thanked: 16 times
Contact:

Re: SPI

Post by jadiflow »

Ben,

I will use the SPI for a non-flowcode component. What I wonder is whether the DAC and NVM enable bits are in any way assumed at one of the ports, and cause a possible conflict? Obviously I don't use those, I will use a dedicated output pin to enable/disable my device. Can I just ignore those DAC/NVM enable bits?

Jan Didden

Sean
Valued Contributor
Valued Contributor
Posts: 548
Joined: Tue Jun 26, 2007 11:23 am
Has thanked: 6 times
Been thanked: 44 times
Contact:

Re: SPI

Post by Sean »

The selected SPI component DAC and NVM enable lines are configured as outputs and set high when the SPI component is initialised.

If, after initialisation, you only use the 'SPI_Get_Char' and 'SPI_Send_Char' functions, the DAC and NVM/FRAM enable lines will not be used by the SPI component and can be re-allocated to other functions.

jadiflow
Flowcode v5 User
Posts: 273
Joined: Thu Apr 17, 2008 9:59 am
Has thanked: 19 times
Been thanked: 16 times
Contact:

Re: SPI

Post by jadiflow »

Thank you!

Jan Didden

Post Reply