8SPI1 29
Copyright © 2018, www. bluetrum.com. All Rights Reserved
29
Register 8-4 SPI1BUF: SPI1 receive/send Data Register
SPI Data
Write this register will load the data to transmitter buffer.
Read this register will read the data from the receiver buffer..
Register 8-5 SPI1DMACNT: SPI1 DMA counter Register
SPIDMA byte counter
Write this register will kick start spi send/receive data
Total number of bytes received / send is SPI1DMACNT
Register 8-6 SPI1DMAADR: SPI1 DMA address Register
8.3 User Guide
SPI Normal 1bit-Mode Operation Flow:
1. Set 3-wire mdoe or 2-wire mode and select the pin map
2. Select RXSEL for Transmit or receive
3. Configure clock frequency
4. Select one of the four timing mode
5. Enable SPI module by setting SPIEN ‘1’