- Disable the master transaction by asserting the master inhibit bit of SPICR
(60h), and reset the RX and TX FIFOs through SPICR. Example: write 0x1E6 to
SPICR.
Example: write 0x1E6 to SPICR
- Issue the write enable command by writing 0x06 into SPIDTR.
- Issue chip select by writing 0x00 to SPISSR(70h).
- Enable master transaction by deasserting the SPICR master inhibit bit.
- Deassert chip select by writing 0x01 to SPISSR.
- Disable master transaction by asserting the SPICR master inhibit bit.