SPI Slave code in SX/B
Bean
Posts: 8,129
Here is a SX/B program that implements SPI slave functions.
This lets you make SX devices that communicate using SHIFTIN and SHIFTOUT from a BS2 or other device.
The main advantage is that unlike SERIN and SEROUT, you do not need a resonator.
Enjoy,
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The first rule to being successful is "Learn from your mistakes",
The second rule is "Be willing to make mistakes"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
This lets you make SX devices that communicate using SHIFTIN and SHIFTOUT from a BS2 or other device.
The main advantage is that unlike SERIN and SEROUT, you do not need a resonator.
Enjoy,
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The first rule to being successful is "Learn from your mistakes",
The second rule is "Be willing to make mistakes"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
Comments
If the SX is running at a lower voltage, then I would use a 4.7K to prevent damage.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"The welfare of the people in particular has always been the alibi of tyrants." ~ Camus
www.iElectronicDesigns.com
·