SPI example code for DEVKIT-S12ZVC

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPI example code for DEVKIT-S12ZVC

1,218 Views
aaronlee
Contributor V

Hi,

 

The DEVKIT-S12ZVC_LAB5SPI.zip(in DEVKIT-S12ZVC-LAB.zip and DEVKIT-S12ZVC-QSP.zip) can not work.

The code create at 2016-07-18 10:05

 

 

I modify "Version: Driver 01.14" to "Rev.A"

  1. Modify ProcessorExpert.pe -> Components -> Init_LED:BitsIO -> PP4, PP5, PP6
  2. Add "#define Slave 1"
  3. Modify "#define LED_RED/GREEN/BLUE" from "PP2/3/4" to "PP4/5/6"

 

"Rev.B"

  1. Change device from SPI1(PS4:7) to SPI0(PS0:3)
  2. Change data width from 16-bit to 8-bit

 

I provide the code as attachments. It can work fine.

 

Aaron

2017-05-18

Original Attachment has been moved to: DevKit-S12ZVC_SPI_Lab5_RevA.rar

Original Attachment has been moved to: DevKit-S12ZVC_SPI_Lab5_RevB.rar

0 Replies