cd /news/hardware/uart-in-verilog-with-fractional-cloc… · home topics hardware article
[ARTICLE · art-11772] src=nand2mario.github.io ↗ pub= topic=hardware verified=true sentiment=· neutral

UART in Verilog with Fractional Clock Dividers

The article discusses a challenge with implementing UART communication in FPGAs when the system clock frequencies are not integer multiples of the desired baud rate, leading to imprecise timing and errors. The author presents a solution using fractional clock dividers to achieve accurate baud rates, specifically for a 1Mbps UART connection between FPGA cores and an MCU. This technique addresses the limitations of traditional integer dividers in mixed-frequency embedded systems.

read1 min views23 publishedFeb 25, 2025

Universal Asynchronous Receiver-Transmitter (UART) modules are basic components in embedded systems, enabling serial communication between devices. While there are many free implementations available online, a new challenge arose during my work on the independent software stack for the Tang Console: non-integer clock multiples. This issue surfaced when FPGA cores running on clocks of different frequencies need to communicate with an MCU via UART. Unlike SPI, where the master dictates the clock, UART demands both sides to adhere to a pre-agreed-upon baud rate (1Mbps in my case). Traditional integer clock dividers in this case yield imprecise baud rates and communication errors. In this post, I’ll explore a nice solution using a fractional clock divider technique.

── more in #hardware 4 stories · sorted by recency
── more on @tang console 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/uart-in-verilog-with…] indexed:0 read:1min 2025-02-25 ·