25 Parallel Nibble to UART

25 : Parallel Nibble to UART

Select Project123456789ONSW2
  • Author: Andrew M
  • Description: Loads two half-bytes into registers, then sends over UART
  • GitHub repository
  • Clock: 1000 Hz

How it works

4 bits should be loaded into registers through the data pins twice - once for the LSB of a byte, once for the MSB of a byte (specified using the mode pins). Once ready, mode can be set to transmit to send the loaded byte over UART.

How to test

When mode[1,2]=01, data is clocked in as the least-significant 4-bits for a UART transmissions. When mode[1,2]=10, the same occurs for the most-significant 4-bits. When mode[1,2]=11, the complete data should get sent over UART.

External hardware

Arduino can be used for testing UART RX

IO

#InputOutput
0clockuart_tx
1reset
2data1
3data2
4data3
5data4
6mode1
7mode2