Skip to content

Commit

Permalink
update baudrate equation description
Browse files Browse the repository at this point in the history
  • Loading branch information
NouranAbdelaziz committed Jan 22, 2025
1 parent c54d207 commit bb759c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion EF_UART.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ registers:
offset: 8
bit_access: no
write_port: prescaler
description: The Prescaler register; used to determine the baud rate. $baud_rate = clock_freq/((PR+1)*16)$.
description: The Prescaler register; used to determine the baud rate. $baud_rate = clock_freq/((PR+1)*SC)$. SC (the number of samples per bit/baud) is a module parameter with a default value of 8.
- name: CTRL
size: 5
mode: w
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The following table is the result for implementing the EF_UART IP with different
|---|---|---|---|---|
|RXDATA|0000|0x00000000|r|RX Data register; the interface to the Receive FIFO.|
|TXDATA|0004|0x00000000|w|TX Data register; ; the interface to the Receive FIFO.|
|PR|0008|0x00000000|w|The Prescaler register; used to determine the baud rate. $baud_rate = clock_freq/((PR+1)*16)$.|
|PR|0008|0x00000000|w|The Prescaler register; used to determine the baud rate. $baud_rate = clock_freq/((PR+1)*SC)$. SC (the number of samples per bit/baud) is a module parameter with a default value of 8.|
|CTRL|000c|0x00000000|w|UART Control Register|
|CFG|0010|0x00003F08|w|UART Configuration Register|
|MATCH|001c|0x00000000|w|Match Register|
Expand Down Expand Up @@ -106,7 +106,7 @@ TX Data register; ; the interface to the Receive FIFO.

### PR Register [Offset: 0x8, mode: w]

The Prescaler register; used to determine the baud rate. $baud_rate = clock_freq/((PR+1)*16)$.
The Prescaler register; used to determine the baud rate. $baud_rate = clock_freq/((PR+1)*SC)$. SC (the number of samples per bit/baud) is a module parameter with a default value of 8.
<img src="https://svg.wavedrom.com/{reg:[{name:'PR', bits:16},{bits: 16}], config: {lanes: 2, hflip: true}} "/>

### CTRL Register [Offset: 0xc, mode: w]
Expand Down

0 comments on commit bb759c3

Please sign in to comment.