QmtechCycloneIVBoardDemos

GitHub code size in bytes GitHub issues GitHub Release Date GitHub release (latest by date)

1. Project description

A set of additional non-official demo projects for QmTech Cyclone IV Core Board (EP4CE15F23C8).

2. Demos

2.1 Echo+1 RS232 Demo

For testing RS232 QuickRS232 module was designed project SerialPortEcho. This project receive bytes from serial port (COM) that is configured in following mode - 115200 bit/s, 1 stop bit, even parity, no flow control. This project do following: receive byte, add + 1 and send it back.

RS232 Timing diagrams

You could use our application Zerial to work with RS232:

Application 4 RS232

2.1.1 Demo project on board pinout

Additionally RS232-to-TTL converter must be attached to power supply line and ground, that also could be taken from U8:

2.2 Cmd Decode+Encode RS232 Demo

Usually we don’t work with separate bytes, we are interacting with device by commands, device is answering on received command, therefore we wrapped bytes in Command/Answer via frames.

In this demo Frame have a following format of a Frame : SOF | Space | Payload Len | Payload |EOF , where:

In this demo (SerialPortWithCmdProcessor folder/project) we are having following 2 commands:

  1. Set 4-byte register - 0xFF 0xFF 0x00 0x07 0x01 0x02 0x10 0x20 0x30 0x40 0xEE 0xEE which means SET (cmd code 0x01, 0 byte of payload) Register 0x02 (index of registers 0-7, 1 byte of payload) to value 0x10203040.
  2. Get 4-byte register - (cmd code 0x02), i.e. reading of register of index 0x03 : 0xFF 0xFF 0x00 0x02 0x02 0x03 0xEE 0xEE

Interaction by commands in Zerial

2.2.1 Testbenches diagrams demonstrating how it works:

Example of how decoder works, we haven’t yet encoder (maybe will be in future)

Frame parser/decoder

Example of interacting with device by Commands/Answers

Interaction by commands

2.2.2 Demo project on board pinout

Additionally RS232-to-TTL converter must be attached to power supply line and ground, that also could be taken from U8:

2.3 DRAM Explorer + RS232 Demo

is under development….

Give us a STAR for motivating us to do this (100 stars min to prioritize this work)