Cypress CY7C67200 manual SPI Configuration Register 0xC0C8 R/W

Models: CY7C67200

1 78
Download 78 pages 5 Kb
Page 53
Image 53
SPI Configuration Register [0xC0C8] [R/W]

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 read-only bit that indicates if a host packet done interrupt occurs on Host 1. In device mode this read-only bit indicates if any of the endpoint interrupts occurs on Device 1. Firmware needs to determine which endpoint interrupt occurred.

1:Interrupt triggered

0:Interrupt did not trigger

SPI Registers

Reset1 Flag (Bit 1)

The Reset1 Flag bit is a read-only bit that indicates if a USB Reset interrupt occurs on either Host/Device 1.

1:Interrupt triggered

0:Interrupt did not trigger

Mailbox Out Flag (Bit 0)

The Mailbox Out Flag bit is a read-only bit that indicates if a message is ready in the outgoing mailbox. This interrupt clears when the external host reads from the HPI Mailbox register.

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 #: 38-08014 Rev. *G

Page 53 of 78

[+] Feedback

Page 53
Image 53
Cypress CY7C67200 manual SPI Configuration Register 0xC0C8 R/W