Design of Signal Generator Based on FPGA and 51 Single Chip Microcomputer

Publisher:梦想启航Latest update time:2021-05-07 Source: eefocusKeywords:FPGA Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Signal generator, also known as waveform generator, is a commonly used signal source and one of the important instruments widely used in the fields of electronic circuits, communications, control and teaching experiments. In order to reduce the cost of traditional function signal generators and improve the low-frequency stability of signal generators. The author combines FPGA and 51 single-chip microcomputer to generate 0.596 Hz frequency accuracy function signal. The author designed to control the function signal type and related parameters through the 51 single-chip microcomputer. Users can set the required waveform, waveform amplitude, waveform frequency, and square wave duty cycle and phase through buttons. The design scheme in this paper not only has good economic prospects, but also can serve as a reference direction for deepening the reform of contemporary higher education.


1 System Design


1.1 System Hardware Design


The hardware in this paper includes EP2C8Q20818N chip, C8051F0201 microcontroller, DAC0800 chip, and T6963 LCD. In this paper, FPGA (EP2C8Q20818N) is mainly used to bridge control LCD, 4×4 keyboard and DAC0800 (C8051 microcontroller and DAC0800 have a reference voltage signal), and the system hardware design block diagram is shown in Figure 2. In this paper, the function signal is mainly generated by FPGA (EP2C8Q20818N); C8051 microcontroller is used to analyze and process user information, provide reference voltage to DAC0800, and control FPGA (EP2C8Q20818N) to generate the function signal required by the user.


1.1.1 EP2C8Q20818N Introduction


EP2C8Q20818N is an embedded FPGA (field programmable gate array) chip launched by ALTERA. It has 182 pins. Its characteristics are listed below, as shown in Figure 1.


1.1.2 C8051F0201 Introduction


The C8051F0201 (hereinafter referred to as the 51 microcontroller) device is a fully integrated mixed-signal system-level MCU chip with 32 digital I/O pins. This 51 microcontroller has a high-speed, pipelined 8051-compatible CIP-51 core (up to 25 MIPS). Full-speed, non-intrusive in-system debug interface (on-chip). 12-bit, 100 ksps 8-channel ADC with PGA and analog multiplexer. 8-bit 500 ksps ADC with PGA and 8-channel analog multiplexer Two 12-bit DACs with programmable data update mode. 64 K bytes of FLASH memory that can be programmed in the system. 4 352 (4 096+256) bytes of on-chip RAM, external data memory interface that can address 64 k bytes of address space. Hardware-implemented SPI, Sm Bus/I2C and two UART serial interfaces, 5 general-purpose 16-bit timers. Programmable counter/timer array with 5 capture/compare modules. With an on-chip watchdog timer, VDD monitor, and temperature sensor, each MCU can operate with a voltage of 2.7 to 3.6 V over the industrial temperature range (-45 to +85°C). The port I/O, /RST, and JTAG pins all tolerate 5 V input signal voltages.

1.2 C8051 MCU Software Design


The C8051 microcontroller software mainly includes key processing function, signal generator control function, initialization function, LCD display function, D/A function and main function. The main program flow chart of the software design is shown in Figure 3, and the detailed functions of the sub-functions are shown in Table 1.

1.3 FPGA (EP2C8Q20818N) software design


This article mainly uses Verilog HDL language design. It mainly includes chip selection module, clock drive module, keyboard scanning module, outgoing signal module, LCD module, DAC0800 module and indicator light module. The detailed functions are shown in Table 2.

1.4 FPGA core program code, DAC0800 module program

2 Test Results

3 Conclusion


In this article, FPGA and 51 single-chip microcomputer are combined to make a signal generator. This can not only train students to use single-chip microcomputers and FPGAs, but also allow students to learn how to use FPGA and single-chip microcomputers for joint communication. In this design, the accuracy of function signals can be upgraded to meet the function signal requirements of different occasions. This article advocates a learning method that combines single-chip microcomputers and FPGAs, which can provide a reference direction for modern education reform.

Keywords:FPGA Reference address:Design of Signal Generator Based on FPGA and 51 Single Chip Microcomputer

Previous article:Design of telephone remote control system module circuit based on single chip microcomputer
Next article:8051 MCU Tutorial Lesson 9: Data Transfer Instructions

Recommended ReadingLatest update time:2024-11-16 13:40

Tech giants buying companies is like going to the store to buy groceries.
After seven months, Intel's new CEO Bob Swan finally took office and came to China to be interviewed by domestic media. In the interview, he talked about Intel's three major transformational technologies: AI, 5G and autonomous driving. Regarding the layout of these three sectors, Intel chose the fastest way: acquisiti
[Embedded]
Tech giants buying companies is like going to the store to buy groceries.
Design and implementation of SOC based on FPGA
  In order to reduce the area cost in the printed circuit board (PCB) design, a field programmable gate array (FPGA) device with Flash structure is introduced, and then a design method of building a system on chip (SOC) circuit based on advanced reduced instruction set machine (ARM) by using this device is introduced.
[Microcontroller]
Design and implementation of SOC based on FPGA
Design of graphic display system for full attitude indicator based on DSP and FPGA
With the rapid development of modern avionics technology and the improvement of aircraft performance, the parameters displayed by the airborne graphic display system are increasing, and at the same time, high requirements are placed on the quality of the picture display from the perspective of ergonomics. To ensure th
[Embedded]
Design of graphic display system for full attitude indicator based on DSP and FPGA
Design of Fieldbus Multi-channel Real-time Temperature Acquisition System Based on SOPC
introduction Temperature is a physical quantity that characterizes the degree of hotness or coldness of an object. It is one of the most common and basic parameters in industrial production. Temperature monitoring is often required during the production process. Traditional temperature acquisition systems usually use
[Test Measurement]
Design of Fieldbus Multi-channel Real-time Temperature Acquisition System Based on SOPC
Design of Control of Peripheral Chips for Digital Storage Oscilloscope Based on FPGA
As an important tool of testing technology, digital storage oscilloscope is widely used in various fields and gradually replaces traditional analog oscilloscope. Its sampling data is the basis of waveform calculation and analysis, which directly affects the accuracy of the entire digital storage oscilloscope. From this
[Test Measurement]
Design of Control of Peripheral Chips for Digital Storage Oscilloscope Based on FPGA
Domestic FPGA enters Japan, Gowin Semiconductor officially signs contract with Marubun Co., Ltd.
Guangdong Gowin Semiconductor Technology Co., Ltd. (hereinafter referred to as "Gowin Semiconductor"), the world's fastest growing programmable logic manufacturer, announced that it has signed a contract with Japan's Marubun Co., Ltd. (hereinafter referred to as "Marubun") as its Japanese distributor to further expand
[Embedded]
Domestic FPGA enters Japan, Gowin Semiconductor officially signs contract with Marubun Co., Ltd.
Xilinx FPGA DIY Series (2): Digital Storage Sweeper
  1. Design Summary   The frequency characteristic tester is an instrument used to measure the transmission characteristics and impedance characteristics of the circuit, referred to as a sweeper. The sweep signal source is the main functional component of the sweeper, which is used to generate a sinusoidal sweep signa
[Test Measurement]
Xilinx FPGA DIY Series (2): Digital Storage Sweeper
Differences and characteristics of ARM, DSP and FPGA
ARM (Advanced RISC Machines) is a well-known company in the microprocessor industry. It has designed a large number of high-performance, low-cost, low-energy RISC processors, related technologies and software. The ARM architecture is the first RISC microprocessor designed for the low-budget market. It is basically t
[Analog Electronics]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号