0% found this document useful (0 votes)
50 views9 pages

NIOS II Microprocessor Project Report

This document is a report on a mini project using a DE10 kit to control an LCD display and motor. It includes: 1) The project topic of building a system to blink text on an LCD and control a motor's PWM using switches. 2) Details on the hardware setup in Quartus including connecting a NIOS II processor, memory, GPIO pins for the LCD and motor driver, switches, and a timer. 3) Plans for the software processing using NIOS II to read the switches and control the LCD display and motor's duty cycle/frequency based on the switch states.

Uploaded by

Athen Okiff
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views9 pages

NIOS II Microprocessor Project Report

This document is a report on a mini project using a DE10 kit to control an LCD display and motor. It includes: 1) The project topic of building a system to blink text on an LCD and control a motor's PWM using switches. 2) Details on the hardware setup in Quartus including connecting a NIOS II processor, memory, GPIO pins for the LCD and motor driver, switches, and a timer. 3) Plans for the software processing using NIOS II to read the switches and control the LCD display and motor's duty cycle/frequency based on the switch states.

Uploaded by

Athen Okiff
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY DEPARTMENT OF

ELECTRICAL AND ELECTRONICS ENGINEERING


--------------------------

Microprocessor (LAB)
Mini project Report

Lecturer: Nguyễn Trung Hiếu

Class Group: TT02 – Group 01


Student: Trương Huy Thịnh – 185xxxx
Nguyễn Ngọc Khánh – 185xxxx
Đặng Đức Toàn – 1951022
Microprocessor (Lab) Report

Table of Contents
MINI PROJECT TOPIC & THEOREM 3
Topic of mini project 3
Topic analysis 3
HARDWARE PROCESSING 3
Create VDHL file using DE10 Standard V1.0.1 3
Open VHDL file by Quartus 18.1 and set up Platform Designer 4
SOLFWARE PROCESSING 9
Type chapter title (level 2) 5

2|Page
Microprocessor (Lab) Report

A. MINI PROJECT TOPIC & TOPIC ANALYSIS:


1. Topic of mini project:
Build a system using NIOS II in kit DE10 to connect a LCD 16 x 2
and H-bridge to control a motor. This system can do the following
tasks:
- When SW0 is ON, LCD blinks the sentence “Hello Word !!! ” in the
middle of row 1 with frequency Hz. (Using timer)
- When SW1 is ON, NIOS II controls the motor by sending PWM pulses to
the H-bridge. LCD displays the duty cycle and the frequency of PWM rules.
- When SW0 and SW1 is OFF, turn off the system.
Reference:
- Datasheet of LCD 16x2
- An instruction of LCD interference
- L298_H_bridge datasheet

[Link] analysis:
- Build Microprocessor using NIOS II in kit DE10.
- Switch (SW0 and SW1) is going to be used.
- For connection with LCD 16x2 and 2 ports for H bridge L298N, we use
GPIO of DE10 standard kit.
- A timer for blinking LCD with frequency Hz.

B. HARDWARE PROCESSING (VHDL):


1. Create VDHL file using DE10 Standard V1.0.1:
Choose option as follows:
- GIPO (default): need for connection with LCD 16x2 and 2 ports for H
bridge L298N.
- Switch: need switch to the cases like the topic (SWITCH 0 and 1).
- Clock.
- SDRAM: for NIOS II processing.

3|Page
Microprocessor (Lab) Report

Fig.1: DE10 Standard V1.0.1 set up

2. Open VHDL file by Quartus 18.1 and set up Platform Designer:


Open Platform Designer, we would need these blocks follow the order:
- System and SDRAM Clocks for DE-Series Boards (Fig.2)
- NIOS II Processor (Fig.3)
- On-chip Memory (RAM or ROM) Intel FPGA IP (Fig.4)
- SDRAM Controller Intel FPGA IP (Fig.5)
- JTAG UART Intel FPGA IP (Fig.6)
- PIO (Parallel I/O) Intel FPGA IP (x4) (Fig.7)
- System ID Peripheral Intel FPGA IP (Fig.8)
- Interval Timer Intel FPGA IP (Fig.9)

4|Page
Microprocessor (Lab) Report

Fig.2: System and SDRAM Clocks for DE-Series Boards


Fig.3.a: NIOS II Processor (Main)

Fig.3.b: NIOS II Processor (Vector)


5|Page
Microprocessor (Lab) Report

Fig.4: On-chip Memory (RAM or ROM) Intel FPGA IP

6|Page
Microprocessor (Lab) Report

Fig.5: SDRAM Controller Intel FPGA IP

Fig.6: JTAG UART Intel FPGA IP

7|Page
Microprocessor (Lab) Report

Fig.7: PIO (Parallel I/O) Intel FPGA IP (x4)

Fig.8: System ID Peripheral Intel FPGA IP


8|Page
Microprocessor (Lab) Report

Fig.9: Interval Timer Intel FPGA IP

C. SOLFWARE PROCESSING (NIOS – II):

9|Page

Common questions

Powered by AI

The hardware components required include the DE10 standard kit, LCD 16x2, H-bridge L298N, GPIO, switches (SW0 and SW1), system and SDRAM clocks for DE-Series boards, NIOS II Processor, on-chip memory (RAM or ROM) Intel FPGA IP, SDRAM controller Intel FPGA IP, JTAG UART Intel FPGA IP, PIO (Parallel I/O) Intel FPGA IP (x4), System ID Peripheral Intel FPGA IP, and Interval Timer Intel FPGA IP. These components interact in the following ways: the DE10 standard kit serves as the base for all hardware connections. GPIO is used to interface with the LCD and H-bridge, while the switches are utilized to control the system's operational state. The SDRAM and on-chip memory provide storage, while the NIOS II processor executes tasks. The clocks synchronize operations, and the UART allows for communication. Each component has a specific role that together ensures the system can display messages on the LCD and control a motor via PWM through the H-bridge L298N .

The inclusion of the JTAG UART IP block is significant because it facilitates communication between the computer and the NIOS II processor system. This component provides a debugging interface, allowing developers to send and receive data to the processor for testing and development purposes without needing additional serial communication hardware. It simplifies the process of monitoring and controlling the processor operations during development and debugging stages .

GPIO, or General Purpose Input/Output, plays a crucial role in establishing connections between the DE10 standard kit and peripheral devices like the LCD 16x2 and H-bridge L298N. In this project, GPIO is used for sending control signals to the LCD and the H-bridge. It allows for flexible interfacing and is critical for controlling the motor operation via PWM signals and displaying information on the LCD, ensuring communication between the main processor and these external devices .

The integration of the interval timer IP block allows the project system to perform timed operations, which is crucial for tasks such as blinking the LCD display at a specified frequency when SW0 is ON. It provides a way to measure time intervals and generates interrupts based on the configured timing, enabling precise time-based control within the system .

The DE10 standard V1.0.1 kit provides a versatile platform for developing a microprocessor system due to its extensive support for FPGA development, integrating peripherals like GPIO for motor control through the H-bridge. The kit's compatibility with VHDL and the Quartus environment allows for flexible design integration and testing, supporting complex configurations like NIOS II processor systems. Its ability to interface with various components, including LCDs and motors, makes it particularly suitable for executing projects requiring simultaneous device control and real-time processing .

Potential debugging strategies could involve using the JTAG UART IP block for real-time communication and feedback during system execution, allowing developers to dynamically monitor variable states and system performance. Utilizing Quartus's SignalTap logic analyzer could provide insight into signal integrity and timing issues within the hardware setup. Additionally, iteratively testing each component, such as verifying PWM signal outputs and LCD display operations through isolated tests before full system integration, could help identify errors early. Debugging can also leverage simulation tools within Quartus to model and test system responses to switch activations and inputs without immediate hardware execution .

SDRAM complements on-chip memory by providing additional storage capacity required for more extensive data and program storage, which is crucial for running complex applications on the NIOS II processor. On-chip memory offers quick access and is used for tasks requiring fast processing speed. However, its limitation in size means SDRAM is needed for larger data sets or when additional memory space is required without impacting the performance. It's particularly beneficial in applications like motor control, where real-time data processing and operational efficiency are critical .

The project utilizes switches SW0 and SW1 to control the behavior of the system by placing it in different operational states. When SW0 is ON, the system makes the LCD display blink the phrase 'Hello Word !!!' at a specified frequency using a timer, which demonstrates the timer's functionality in sync with the user command. When SW1 is ON, the NIOS II processor generates PWM signals controlling the H-bridge to run the motor, and the LCD displays the PWM duty cycle and frequency. If both switches are OFF, the system turns off, ceasing all operations. This switch-controlled behavior allows users to selectively activate different system functionalities .

Challenges in implementing the NIOS II processor might include compatibility issues with other IP blocks, such as correctly configuring the on-chip memory, SDRAM controller, and ensuring correct data path with GPIO and JTAG UART. Ensuring synchronized operation of all components and precise timing using the interval timer may also present difficulties. Additionally, correctly configuring Platform Designer to create an efficient system could pose challenges, particularly in setting the correct parameters and connections for each block in Quartus to avoid conflicts and errors during synthesis and implementation .

The PIO (Parallel I/O) Intel FPGA IP blocks within the system are configured to interface digital signals efficiently. In this project, four PIO blocks are used, likely dedicated to handling various tasks such as controlling the GPIO pins used for LCD interfacing and motor control, reading input from switches SW0 and SW1, and managing other control signals. Each PIO block must be accurately configured in the platform designer to ensure proper data width, directionality (input or output), and correct connections to the respective GPIO pins on the DE10 board .

You might also like