CAL SPI AutoCS
Posted: Sat Jun 18, 2022 8:52 am
It might be my reading of this - in the cal_spi (AVR here) if AutoCS is set to 'yes' - the component should handle pulling CS 'active' on a Transaction.
If AutoCS is 'no' - then it is the user responsibility to pull CS low - transmit - then high.
However - if AutoCS is set to 'no' then Master_Enable_Cs and Master_Disable_CS do nothing - all code pre-processed out (apart from a superfluous string variable being created)
If AutoCS is 'yes' then Master_Enable/Disable_CS do Set_Port_Pin as expected - but the user needs to call them before and after Master_Transaction - as this doesn't toggle the CS pin.
Martin
If AutoCS is 'no' - then it is the user responsibility to pull CS low - transmit - then high.
However - if AutoCS is set to 'no' then Master_Enable_Cs and Master_Disable_CS do nothing - all code pre-processed out (apart from a superfluous string variable being created)
If AutoCS is 'yes' then Master_Enable/Disable_CS do Set_Port_Pin as expected - but the user needs to call them before and after Master_Transaction - as this doesn't toggle the CS pin.
Martin