CY7C67200
mode this read only bit indicates if any of the endpoint inter- rupts occurs on Device 2. Firmware needs to determine which endpoint interrupt occurred.
1:Interrupt triggered
0:Interrupt did not trigger
Done1 Flag (Bit 2)
In host mode the Done 1 Flag bit is a
1:Interrupt triggered
0:Interrupt did not trigger
SPI Registers
Reset1 Flag (Bit 1)
The Reset1 Flag bit is a
1:Interrupt triggered
0:Interrupt did not trigger
Mailbox Out Flag (Bit 0)
The Mailbox Out Flag bit is a
1:Interrupt triggered
0:Interrupt did not trigger
There are 12 registers dedicated to SPI operation. Each register is covered in this section and summarized in Table 33.
Table 33.SPI Registers
| Register Name |
|
| Address |
|
|
|
| R/W |
| ||||
SPI Configuration Register |
|
|
|
| 0xC0C8 |
|
|
|
| R/W |
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SPI Control Register |
|
|
|
| 0xC0CA |
|
|
|
| R/W |
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SPI Interrupt Enable Register |
|
|
|
| 0xC0CC |
|
|
|
| R/W |
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SPI Status Register |
|
|
|
| 0xC0CE |
|
|
|
| R |
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SPI Interrupt Clear Register |
|
|
|
| 0xC0D0 |
|
|
|
| W |
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SPI CRC Control Register |
|
|
|
| 0xC0D2 |
|
|
|
| R/W |
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SPI CRC Value |
|
|
|
| 0xC0D4 |
|
|
|
| R/W |
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SPI Data Register |
|
|
|
| 0xC0D6 |
|
|
|
| R/W |
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SPI Transmit Address Register |
|
|
|
| 0xC0D8 |
|
|
|
| R/W |
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SPI Transmit Count Register |
|
|
|
| 0xC0DA |
|
|
|
| R/W |
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SPI Receive Address Register |
|
|
|
| 0xC0DC |
|
|
|
| R/W |
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SPI Receive Count Register |
|
|
|
| 0xC0DE |
|
|
|
| R/W |
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SPI Configuration Register [0xC0C8] [R/W] |
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
| Figure 61. SPI Configuration Register |
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bit # | 15 |
| 14 |
| 13 | 12 | 11 | 10 |
|
| 9 |
| 8 |
|
Field | 3Wire |
| Phase |
| SCK Polarity |
| Scale Select |
|
| Reserved |
| |||
Enable |
| Select |
| Select |
|
|
|
|
|
|
|
|
| |
Read/Write | R/W |
| R/W |
| R/W | R/W | R/W | R/W |
| R/W |
| - |
| |
Default | 1 |
| 0 |
| 0 | 0 | 0 | 0 |
|
| 0 |
| 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bit # | 7 |
| 6 |
| 5 | 4 | 3 | 2 |
|
| 1 |
| 0 |
|
Field | Master |
| Master |
| SS |
|
| SS Delay Select |
|
|
|
| ||
Active Enable |
| Enable |
| Enable |
|
|
|
|
|
|
|
|
| |
Read/Write | R |
| R/W |
| R/W | R/W | R/W | R/W |
| R/W |
| R/W |
| |
Default | 0 |
| 0 |
| 0 | 1 | 1 | 1 |
|
| 1 |
| 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Register Description
The SPI Configuration register controls the SPI port. Fields apply to both master and slave mode unless otherwise noted.
Document #: | Page 53 of 78 |
[+] Feedback