Driving method of photoelectric isolation parallel-in-serial-out circuit
A technology of circuit drive and photoelectric isolation, which is applied in the field of electronic communication, can solve problems such as software drive difficulties, and achieve the effects of ensuring delivery, real-time control, and polling time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] In order to increase the switching value input capability of the CPU, an expansion circuit for parallel input and serial output is designed, so that only 3 GPIO ports of the CPU can be used to realize the input of 16 switching values. Such as figure 1 , using 2 pieces of 74HC165 parallel in serial expansion IC, using cascade connection to realize 16 digital input. SH / LD, CLK are the control signals of 74HC165, QH and SER are cascaded and serial input signals. Considering that the system needs to improve the anti-interference problem, the working power of 74HC165 comes from independent COMM+ and COMM- (+5V), so the SH / LD, CLK and QH connected to the CPU must use optocoupler to transmit signals, which gives the software driver of 74HC165 It brings certain difficulties, and the 74HC165 must be driven by an interrupt state machine to ensure the real-time control of the interface circuit.
[0031] see figure 2 , figure 2 It is the truth table of 74HC165, and the above ...
Embodiment 2
[0039] The invention discloses a method for driving a photoelectric isolation parallel-in-serial-out circuit, the method comprising:
[0040] Adopting at least one parallel-in-serial-out expansion IC chip, using a cascade connection method, to realize the input of N switching values; using an interrupt state machine to drive the IC chip;
[0041] The current state value of the IC chip is stored in the variable FSM, and in the initial state of the IC chip, the initial value of the FSM is 0;
[0042] Respond to a timer interrupt every set time length, in the interrupt, each state processes the operations required to be completed in this state and enters the next state in sequence, a total of 2*N states;
[0043] When entering the last state, store N switching value data in an N-bit variable Shift_R, each of which corresponds to an external switching value input, and then change the state variable FSM to the value corresponding to the initial state.
[0044] see image 3 , in t...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com