Giter Club home page Giter Club logo

uart_de0_nano's Introduction

UART on DE0-Nano

The goal of this project was to create a UART/serial black box that can be added to any project easily on the DE0-Nano. The only extra required hardware is a serial interface. I am using a CP2102 USB to UART bridge (http://www.silabs.com/Support%20Documents/TechnicalDocs/CP2102-9.pdf), but anything should work.

Getting started

The project contains a sample application called loopback_test, which just sends all data it receives.

To use this in your own project, you will require the files uart.v, uart_fifo_dual_port_ram.qip, and uart_fifo.v. To make your life easier, also include uart_system.v and use uart_system as if it were the black box serial system. All parameters can be specified on uart_system.v. See the top of uart_system.v for details on what each parameter means.

The loopback_test block diagram is here:

Loopback Test

Clocks

I found the most convenient clock speed to work with to be 144MHz, which is easily produceable from a PLL. The UART divider can then produce most standard UART speeds. I succesfully tested up to 576kHz, but higher speeds should be possible.

Features

Other features include:

  • 1 / 2 stop bits
  • None / Even / Odd parity
  • 5- / 6- / 7- / 8-Bit Data
  • TX/RX activity signals
  • RX and TX FIFOs (default to 1kB each)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.