Keywords: Enhanced Parallel Port (EPP), shift register output, CPLD, Verilog HDL
1 Introduction
As the number of ISA bus slots in desktop computers gradually decreases or even disappears, parallel ports are increasingly used for data transmission in microcomputer control systems. The Enhanced Parallel Port (EPP) is not only compatible with the traditional standard parallel port (SPP), but also has a transmission rate of 500k~2Mbyte/s (equivalent to the transmission rate of the ISA bus). In particular, EPP provides hardware handshake signals, which facilitates software and hardware design. Therefore, the application of EPP in industrial control is becoming more and more extensive.
Some dot matrix control devices such as thermal print heads and LED display drivers generally use shift registers to receive data due to the large number of control points. If a parallel I/O port is used to generate shift register output data and synchronization pulses, multiple I/O read and write cycles are usually required. Here we introduce a solution to use the EPP parallel port to expand the shift register output interface, which can complete the output of one byte in one I/O read and write cycle to achieve the effect of high-speed transmission.
2 Introduction to the EPP protocol
The EPP protocol is a bidirectional transmission parallel interface specified in IEEE1284, which maintains compatibility with the standard parallel port (SPP). Table 1 shows the pin definitions and functions of SPP and EPP.
The EPP register occupies 8 adjacent I/O address spaces. The base address +0 to +2 is the same as SPP, which are the data register, status register, and control register of SPP respectively. I/O operations on them will not generate EPP read and write cycles. Base address +3 is the EPP address port, and base address +4 is the EPP data port. I/O operations on them can generate EPP address or data read and write cycles.
3 Implementation of the shift register output interface
The EPP parallel port extended shift register output interface proposed in this paper mainly uses the Wait handshake signal. During the shift register shifting process, the Wait signal is kept low to prevent the EPP cycle from ending, so that the shift output is completed within one EPP cycle. In addition, a counter is used to control the shift register shifting to ensure that only 8 shift actions occur within one EPP cycle to prevent data errors.
The hardware circuit is implemented using Altera's complex programmable logic device (CPLD). Its structure is described in Verilog HDL language. Among them, nCs is the chip select signal, which is generated by address decoding (the description of address output and decoding is omitted), Clk is the external clock source, and DataOut and ClkOut are output data and output synchronization pulses respectively. To prevent the system from timeout, Clk should have a higher frequency, about 10 MHz. The Verilog HDL description of the interface is as follows:
4 Conclusion
Using EPP parallel port to expand the shift register output interface makes full use of EPP handshake signals. Therefore, there is no need to query the status of the shift register during software design. Only the base address + 4 port needs to be written to complete the output of one byte of the shift register, which simplifies software programming and achieves a high transmission rate (transmission rate can reach 8Mbit/s). Taking this as an example, multiple switch channel interfaces can also be expanded.
References
2 Song Wanjie et al. CPLD Technology and Its Applications. Xi'an: Xi'an University of Electronic Science and Technology Press,1999
3 J. Bhasker. Verilog HDL Hardware Description Language. Beijing: Machinery Industry Press,2000
Previous article:Design of Interface Circuit for Missile Test System Based on ISP
Next article:Using MAX551 to realize program-controlled spectrometer amplifier
- Popular Resources
- Popular amplifiers
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Beijing Embedded Software and Hardware Recruitment
- High frequency transformer, low frequency transformer, pulse transformer
- NBIoT and LoRa technology detailed explanation and competitive situation analysis
- Selling an ATRCB256RFR2-XPRO Wireless Evaluation Kit
- Book now to get a gift: Live broadcast on April 9, MIPI C-PHY? Understand it, learn it, and design it
- Industrial design makes motorcycles more technological and cooler
- TM4C123 DMA serial port receiving
- DSP+FPGA multi-video channel video surveillance system
- Please provide a download link for the package library containing the TO92S 3D model, thank you
- Design of sine signal generator based on DSP