PSoC - The Electronic Duct Tape
Literally, within seconds I had my first SPI project up and working.
- Just plop a SPI Master onto the Schematic Diagram.
- Hook up the input and output pins (internally).
- Reconfigure the input pin to use a resistive pull up.
- Hook up a source clock. I chose 1kHz.
- Hook up the SPI Master's reset line to Digital Logic '0'.
- Map the input and output pins.
- Insert a SPIM_Start() function into the initialisation code area.
- Insert a SPIM_WriteTxData(0x55) into the main program body.
- Insert a CyDelay(250) just after it.
- Build and Debug.
- Press F5 to launch and... voila! Working first go!
It actually took me longer to scribe this down than to make it.
