1, design principle
(1) As shown in Figure 14.2, connect the 4&TImes; 4 matrix keyboard with the parallel port P3 of the MCU, and use the P3.0-P3.3 pins of the MCU as the input line to P3.4-P3.7 of the MCU. Each pin is used as an output line, and the serial number of each button "0-F" is displayed on the digital tube.
(2) The serial number of the corresponding button in the keyboard is shown in Figure 14.1.
2, the reference circuit
Figure 14.2 4 & TImes; 4 matrix keyboard recognition circuit schematic
3, circuit hardware description
(1) In the "Single-chip system" area, connect the P3.0-P3.7 port of the MCU to the M1-M4, N1- in the "4&TImes; 4 determinant keyboard" area via the 8-Dial DIP switch JP3. On the N4 port.
(2) In the "Single-chip system" area, connect the P0.0-P0.7 port of the MCU to any ah port in the "Static Digital Display Module" area; Requirement: P0.0 corresponds to a, P0. 1 corresponds to b, ..., P0.7 corresponds to h.
4, programming content
(1) 4 & TImes; 4 matrix keyboard recognition processing.
(2) Each button has its row and column values. The combination of row and column values ​​is the code that identifies the button. The row and column lines of the matrix communicate with the CPU through two parallel interfaces, respectively. One end of the keyboard (column line) is connected to VCC through a resistor, and the grounding is realized by the program output number "0". The task of the keyboard handler is to determine if there is a key press, to determine which key is pressed, what is the function of the key, and to eliminate the jitter of the key when it is closed or disconnected. Among the two parallel ports, one output scan code makes the button dynamically grounded line by line; the other parallel port inputs the button state, and the line scan value and the feedback signal form a key code to identify the button, and the key is detected by software to find the key. Features.
5, the program flow chart (as shown in Figure 14.3)
Digital currency transactions allow users to convert existing digital currencies into other digital currencies. The entire transaction does not involve any legal tender. Because of the relatively loose regulation, the mainstream digital currency trading platform also opened this function.Digital Asset Exchange (DAE) is a platform for matching transactions between digital currencies, digital currencies and legal currencies. It is the main place for encrypting the circulation and price determination of digital currency transactions.
Compared with traditional stock exchanges, digital asset trading platform not only matches transactions, but also plays the role of market maker and investment bank. The role of the market maker in the trading platform can increase the liquidity of the market, and the trading platform can earn the transaction price difference. The role of the investment bank of the trading platform is to provide services such as issuance and underwriting of digital currency, from which the trading platform collects money fees, or collects deposits in the form of community voting of the trading platform.
Currency Exchange,Digital Currency Exchange,Virtual Digital Currency Exchange,Display Currency Exchange
China youbi digital assets limited , https://www.ubcoinchina.com