mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-05-02 22:25:00 -04:00
fpga: Introduce CTS signals for UART
Add incoming and outgoing CTS (Clear To Send) signals for the FPGA to let the CH552 and FPGA signal each other that it is OK to send UART data. The CTS signals indicate "OK to send" if high. If an incoming CTS signal goes low, the receiver of that signal should immediatly stop sending UART data.
This commit is contained in:
parent
f3706dcfcc
commit
ab4ef5fdf9
7 changed files with 54 additions and 5 deletions
|
@ -20,6 +20,9 @@ module application_fpga (
|
|||
output wire interface_rx,
|
||||
input wire interface_tx,
|
||||
|
||||
input wire interface_ch552_cts, // CH552 clear to send, 1 = OK, 0 = NOK
|
||||
output wire interface_fpga_cts, // FPGA clear to send, 1 = OK, 0 = NOK
|
||||
|
||||
output wire spi_ss,
|
||||
output wire spi_sck,
|
||||
output wire spi_mosi,
|
||||
|
@ -293,6 +296,9 @@ module application_fpga (
|
|||
.rxd(interface_tx),
|
||||
.txd(interface_rx),
|
||||
|
||||
.ch552_cts(interface_ch552_cts),
|
||||
.fpga_cts(interface_fpga_cts),
|
||||
|
||||
.cs(uart_cs),
|
||||
.we(uart_we),
|
||||
.address(uart_address),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue