author: Tyson Liddell
tags: capturing-composite-video-with-a-microcontroller

Speeding up UART data transfer: Capturing a monochrome video animation

The baud rate of the UART on the TM4C123GH6PM was maxed out to 1500000 to send image data from the microcontroller to a laptop as quickly as possible. Any value higher than this caused a breakdown in communication due to broken frames that XMODEM/CRC could not recover from. I suspect that this is because the ICDI that connects the Tiva C to the laptop uses low-speed USB, which is limited to 1.5 Mbps. A Python script was added to continuously slurp the image data from the UART and render each PAL field to the screen in real time, resulting in the following scene from Guy Ritchie's Lock, Stock & Two Smoking Barrels.

first-animation

The result is crude, but it works! In fact, the image quality turned out better than I expected.

{% include github_commit.html repo='tysonliddell/bare-metal-tiva' sha='4597cdeeaae2310ed60729ee5be8e56058eb0406' %}

Where to from here

The initial goal of this project has been reached: obtain picture data from a composite video signal using a microcontroller. Here are some further areas to explore in the future: