Category: SPI
Non interrupt SPI
Simple Example WORD rx_data; SpiChnOpen(2, (SPI_CON_MSTEN | SPI_CON_MODE8 | SPI_CKE_ON), 10); //20MHz fpb / 10 = 2MHz. Clock idles low, SDO changes on falling edge of clock DAC_CS(0); SpiChnPutC(2, (int)(0xff)); rx_data = SpiChnGetC(2); DAC_CS(1);