Cypress CY7C67300 manual Uart Status Register 0xC0E2 R, Receive buffer full Receive buffer empty

Models: CY7C67300

1 99
Download 99 pages 31.04 Kb
Page 74
Image 74

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CY7C67300

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UART Status Register [0xC0E2] [R]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Table 122. UART Status Register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit #

15

14

13

 

 

12

 

 

11

 

10

 

9

 

8

 

 

Field

 

 

 

 

 

 

 

 

Reserved...

 

 

 

 

 

 

 

 

Read/Write

-

-

-

 

 

-

 

 

-

 

-

 

-

 

-

 

 

Default

0

0

0

 

 

0

 

 

0

 

0

 

0

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit #

7

6

5

 

 

4

 

3

2

1

0

 

 

Field

 

 

 

 

...Reserved

 

 

 

 

 

 

Receive Full

 

Transmit Full

 

Read/Write

-

-

-

 

 

-

 

-

-

 

R

 

R

 

 

Default

0

0

0

 

 

0

 

0

0

0

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Register Description

The UART Status register is a read only register that indicates the status of the UART buffer.

Receive Full (Bit 1)

The Receive Full bit indicates whether the receive buffer is full. It can be programmed to interrupt the CPU as interrupt #5 when the buffer is full. This can be done though the UART bit of the Interrupt Enable register (0xC00E). This bit is automatically cleared when data is read from the UART Data register.

1:Receive buffer full

0:Receive buffer empty

UART Data Register [0xC0E4] [R/W]

Table 123. UART Data Register

Transmit Full (Bit 0)

The Transmit Full bit indicates whether the transmit buffer is full. It can be programmed to interrupt the CPU as interrupt #4 when the buffer is empty. This can be done though the UART bit of the Interrupt Enable register (0xC00E). This bit is automatically set to ‘1’ after data is written by EZ-Host to the UART Data register (to be transmitted). This bit is automatically cleared to ‘0’ after the data is transmitted.

1:Transmit buffer full (transmit busy)

0:Transmit buffer is empty and ready for a new byte of data

Bit #

15

14

13

12

 

11

10

9

8

Field

 

 

 

 

Reserved

 

 

 

Read/Write

-

-

-

-

 

-

-

-

-

Default

0

0

0

0

 

0

0

0

0

 

 

 

 

 

 

 

 

 

 

Bit #

7

6

5

4

 

3

2

1

0

Field

 

 

 

 

Data

 

 

 

Read/Write

R/W

R/W

R/W

R/W

 

R/W

R/W

R/W

R/W

Default

0

0

0

0

 

0

0

0

0

 

 

 

 

 

 

 

 

 

 

Register Description

The UART Data register contains data to be transmitted or received from the UART port. Data written to this register starts a data transmission and also causes the UART Transmit Full Flag of the UART Status register to set. When data received on the UART port is read from this register, the UART Receive Full Flag of the UART Status register is cleared.

Data (Bits [7:0])

The Data field is where the UART data to be transmitted or received is located.

Reserved

Write all reserved bits with ’0’.

Document #: 38-08015 Rev. *J

Page 74 of 99

[+] Feedback

Page 74
Image 74
Cypress CY7C67300 Uart Status Register 0xC0E2 R, Receive buffer full Receive buffer empty, Uart Data Register 0xC0E4 R/W