Professional Documents
Culture Documents
1
EEEE2046 – Practical Engineering Design Solutions and Project Development
implementation you will not use the ESD Suppressors / TVS Diodes and therefore
only a 120 ohm resistor will be placed between wires A and B at both ends.
3. Display board
The core of the remote display board is centred around the CPLD chip Xilinx XC2C64A [2]. This chip
will receive the serial data, decode it and provide the necessary logic to the seven segment led
displays [3]. There are several aspects to the CPLD design:
- What does the interface between the CPLD and the seven segment displays going to look
like? Do you need additional drivers? Xilinx have produced a helpful application note
providing details on LED interfacing [4].
- The Xilinx XC2C64A chip does not include an oscillator and so an external oscillator will be
required. A common crystal oscillator for UARTs is 1.8432MHz. In this project we will be
using a through hole 5v or 3.3V HCMOS QANTEK crystal oscillator [5]. Please do not solder
this directly to the Veroboard and use the socket provided. The Xilinx XC2C64A require
logical levels of 3v and therefore a vcc of 3.3v should be used in your design.
2
EEEE2046 – Practical Engineering Design Solutions and Project Development
1 - Not connected
7 – GND
8 – Output
14 – Vcc
4. Power supplies
The CPLD chip Xilinx XC2C64A has the following recommended operation conditions:
Symbol Description Minimum Maximum
VCC Supply voltage relative to ground 1.7V 1.9V
VCCIO Supply voltage for output drivers and JTAG 3.0V 3.6V
Table 1: Xilinx XC2C64A recommended operation conditions.
To improve switching speeds and power consumption, modern digital circuits have a variety of power
supplies. The specifications state, the board will only be supplied with a nominal 5V supply and so
an appropriate LDO regulator for required DC supply needs to be designed. To avoid delays, all
designs must use the Maxim Integrated Low Dropout (LDO) regulator MAX882 [6]. Placing a higher
voltage than expected on a IC power pin can damage the IC, the power supplies should be isolated
and tested from the rest of the remote display board circuit before they are connected.
3
EEEE2046 – Practical Engineering Design Solutions and Project Development
4
EEEE2046 – Practical Engineering Design Solutions and Project Development
This task involves configuring the STM32-NUCLEO-L476RG to output the calculated velocity via
UART/USART to be displayed on the 2 seven segment LED display. The calculated speed must still
be displayed on the LCD display.
Since only a single twisted pair is used for the communication between the STM32-NUCLEO-
L476RG and the remote display, the communication channel must operate in half-duplex mode. The
data direction of the Texas Instruments SN65HVD1780P chip can be controlled by the DE pin. This
can be set on the STM32-NUCLEO-L476RG IOC.
The baud rate of the serial line between the STM32-NUCLEO-L476RG and the remote display board
shall be 57600 Baud, no parity and one stop bit. The data shall be transmitted using 8 bits. The
speed shall be encoded as two 4-bit binary coded decimal numbers.
Suggested approach:
• Configure the UART for the above mentioned settings using the STM32Cube IDE IOC.
• Use an oscilloscope to monitor the output of the Tx pin. What are you expecting to see?
• As we are only sending data and not receiving, make sure you set the DE pin correctly.
Following the work undertaken in task 9a, you are required to develop a daughter board as described
in session 2.1 and build the display RS485 receiver.
Suggested approach:
• Read the Texas Instruments SN65HVD1780P datasheet [1].
• On the example application provided in the datasheet a circuit with transient protection is
presented. As we are not adding a transient protection in our system, the ESD
Suppressors / TVS Diodes are not required and only a 120 ohm resistor will be placed
between wires A and B at both ends.
• Build the display board receiver in one corner of the veroboard (Figure 4).
Task 10: Power supplies
The aim of this task is to build the required power supplies for the display board.
Suggested approach:
• Build the two power supplies in one corner of the veroboard (see Figure 4).
• All necessary information on how to set the power supply is available on the MAX882
data sheet [6].
5
EEEE2046 – Practical Engineering Design Solutions and Project Development
RS485
receiver
Oscillator
CPLD
carrier PCB
7 seg LED
display Power
supplies
Figure 4: Display board suggested layout – connections between the CPLD and 7 segment LED have been
covered to avoid using the same connections.
This is a straightforward task. Make sure you connect the output of the oscillator into the right Xilinx
carrier PCB pin.
6
EEEE2046 – Practical Engineering Design Solutions and Project Development
The aim of this task is to develop the physical interface between the two 7 segment LED displays
and the CPLD. Please read the application note developed by Xilinx [4] on how to Drive LEDs
with Xilinx CPLDs.
Suggested approach:
The aim of this task is to divide the external 1.8432MHz clock (CLKEXT) and output an internal clock
(CLKINT) which is suitable to detect a 57600 baud serial signal. Before you design this block you
will need to decide the frequency of the internal clock.
Suggested approach:
7
EEEE2046 – Practical Engineering Design Solutions and Project Development
The measured speed data is sent from the STM32-NUCLEO-L476RG as two 4-bit BCD digits
combined into one byte. To display these on the LEDs, the appropriate decoders need to be
designed.
Suggested approach:
• construct the truth table listing the 7 display input signals, decimal number and
corresponding 4 digit binary numbers;
• find the Boolean expressions of each output functions;
• Construct the Karnough’s map for each output term and then simplify them to obtain a
logic combination of inputs for each output;
• Draw a combinational logic circuit for each output signal.
• Make your schematic based on your logic circuit or write a VHDL using combinational
logic.
Remember to record all of your results and keep notes of the tests that you carry out.
References
[1] T. Instruments, “SN65HVD178x datasheet,” [Online].
Available: http://www.ti.com/lit/ds/symlink/sn65hvd1781.pdf. [Accessed 20 1 2019].
[2] Xilinx, “XC2C64A CoolRunner-II CPLD datasheet,” [Online].
Available: https://www.xilinx.com/support/documentation/data_sheets/ds311.pdf.
[Accessed 20 1 2019].
[3] Kingbright, “Kingbright - SA56-11SURKWA single digit numeric display,” [Online].
Available: www.kingbrightusa.com/images/catalog/SPEC/SA56-11SURKWA.pdf.
[Accessed 20 1 2019].
[4] Xilinx, “Driving LEDs with Xilinx CPLDs - XAPP805 (v1.0) April 8, 2005,” [Online].
Available: https://www.xilinx.com/support/documentation/application_notes/xapp805.pdf.
[Accessed 20 1 2019].
[5] Quantek, “QX14 Series - 14 pin Dual-in-Line HCMOS Clock Oscillator,” [Online].
Available: https://www.qantek.com/tl_files/products/oscillators/QX14.pdf.
[Accessed 20 1 2019].
[6] Maxim, “Maxim - Max882 5v-3.3v or adjustable 200mA linear regulator,” [Online].
Available: https://datasheets.maximintegrated.com/en/ds/MAX882-MAX884.pdf.
[Accessed 20 1 2019].