Use of Input/Output Ports in HT49 MCUs This article mainly introduces the use of input/output ports in the HT49 series and the precautions. Introduction: There are 8 bidirectional input/output ports (PA port, 8 bits) and 6 input ports (PB port) in the HT49C30-1/HT49R30A-1; there are 12 bidirectional input/output ports (PA port, 8 bits; PC port, 4 bits) and 8 input ports (PB port) in the HT49C50-1/HT49R50A-1; there are 16 bidirectional input/output ports (PA port, 8 bits; PC port, 8 bits) and 8 input ports (PB port) in the HT49C70-1/HT49R70A-1. PA, PB, and PC correspond to the addresses [12H], [14H], and [16H] in the RAM respectively. When masking, you can select the structure of the PA and PC ports (NMOS or CMOS), and whether the port has a pull-up resistor (see the user manual for details). If the PA and PC ports are NMOS, before reading data, you must write \"1\" to the relevant bit to turn off the field effect transistor NMOS and make it an input port. In other words, you must first execute the instruction SET [m].i to turn off the relevant NMOS, and then use MOVA, [m] to read stable data.
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore