Figure 1 HC164 peripheral circuit diagram
The microprocessor output port with RC low-pass filter controls the serial-to-parallel converter HC164. For data input to the serial-to-parallel converter, each bit must consist of a 1-0-1 transition, and the length of the low-level state of this transition data is variable. If the low-level state exceeds the time constant of the low-pass filter, a zero is shifted into the register; if the low-level state is short, a 1 is shifted into the register. In this way, the clock signal and the data signal are combined into one signal. The low-pass filter can separate the clock signal and the data signal (Figure 2).
Figure 2 The clock signal and the data signal are combined into one signal
Table 1 whip program output function
As shown in Table 1, a simple "whip" program implements 8-bit output function. Assuming a low-pass filter time constant of 3μs, the instruction time should be 1μs or less when using a 4MHz or higher frequency crystal. The program uses bit operations on the My_Bit output of the My_Port port. The
circuit in Figure 1 can control some low-speed devices, such as relays or LCDs, but when the circuit is used for light-emitting diodes, the HC164 will produce annoying flickering when performing write operations. To solve this problem, the circuit in Figure 3 uses another serial input and parallel output register 4096. This chip has a filtered input function, allowing all outputs that have not reached a temporary level to be updated simultaneously. Two monostable circuits provide data and filtered signals. This circuit can be used to control parallel devices, such as a display module based on HD44780.
Figure 3 Peripheral circuit diagram of serial input/parallel output chip 4096
Previous article:Detailed explanation of circuit design of wireless test terminal system for articles
Next article:SoC Power Optimization Design in Processor Memory Subsystem
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- What is the difference between low inertia and high inertia of servo motors?
- How high can the transmission power of 5G mobile phones be?
- ESP32 uses littlefs v2 as the default file system
- Op amp power supply
- FPGA Advanced Timing Synthesis Tutorial.pdf
- [GD32L233C-START Review] 6. Fingerprint Management System (2) - Added brightness adjustment
- [Sipeed LicheeRV 86 Panel Review] 15. lvgl calendar control and weather display
- Can RTthread be ported to nrf51822?
- A bug solution for CH548/CH549 ADC routine
- [Project source code] BMP2mif file software, convenient for using ROM to store image data and display
- I want to control the on and off of NMOS through a 3.3V microcontroller