UART

From Fpga4u

Jump to: navigation, search

We will now add a serial port on the fpga

  1. Insert the UART with SOPC Builder: Communication -> UART (RS232)

  2. UartSopc.jpg


  3. Assign the pins

  4. UartSopcPin.jpg


  5. Generate. In Quartus, reload the diagram; your block has changed and two more ports are available. Connect the additional input and output (if you assigned the pins with SOPC Builder give them the same names, cf. next figure)

  6. Uartblock.jpg


  7. Compile and program the board
  8. Open your Nios II IDE project and go to the System Library. There you can choose the inputs and outputs of the board; select UART wherever you want

  9. Uartnios.jpg


  10. Connect the serial port of the board and run your program
Next: Parallel input (8 bits, LEDS)
Personal tools