EZ SPI

Share this object
<

Overview

Content

This object enables Mode 0 SPI communications using P2 smart pins. This allows for high-speed SPI without needing PASM2 code. The object includes methods for shifting out, shifting in, and full-duplex shifting of output and input data. LSBFIRST and MSBFIRST bit order modes are supported.

A short program connects to the P2 flash memory to demonstrate shiftout() and shiftin() at 10MHz using Spin2 code.


Downloads  
Zip archive download

Leave a Reply