| 数据搜索系统,热门电子元器件搜索 |
|
HT82B40A 数据表(PDF) 14 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT82B40A 数据表(HTML) 14 Page - Holtek Semiconductor Inc |
|
14 / 54 page ![]() HT82B40R/HT82B40A Rev. 1.70 14 November 5, 2014 ²SET [m].i² and ²CLR [m].i² instructions. The ability to change I/O pins from output to input and vice versa by manipulating specific bits of the I/O control registers dur- ing normal program operation is a useful feature of these devices. Bank Pointer - BP The Special Purpose Data Memory is divided into two Banks, Bank 0 and Bank 1. The USB control registers are located in Bank 1, while all other registers are lo- cated in Bank 1. The Bank Pointer selects which bank data is to be accessed from. If Bank 0 is to be accessed then BP must be set to a value of 00H, while if Bank 1 is to be accessed then BP must be set to a value of 01H. Input/Output Ports Holtek microcontrollers offer considerable flexibility on their I/O ports. With the input or output designation of ev- ery pin fully under user program control, pull-high op- tions for all ports and wake-up options on certain pins, the user is provided with an I/O structure to meet the needs of a wide range of application possibilities. Depending upon which package is chosen, the microcontroller provides up to 34 bidirectional input/out- put lines labeled with port names PA, PB, PC, PD and PE0~PE1. These I/O ports are mapped to the Data Memory with addresses as shown in the Special Purpose Data Mem- ory table. For input operation, these ports are non-latch- ing, which means the inputs must be ready at the T2 rising edge of instruction ²MOV A,[m]², where m de- notes the port address. For output operation, all the data is latched and remains unchanged until the output latch is rewritten. Pull-high Resistors Many product applications require pull-high resistors for their switch inputs usually requiring the use of an exter- nal resistor. To eliminate the need for these external re- sistors, I/O pins, when configured as an input have the capability of being connected to an internal pull-high re- sistor. The pull-high resistors are selectable via configu- ration options and are implemented using weak PMOS transistors. A pin or nibble option on the I/O ports can be selected to select pull-high Resistors. Port A CMOS/NMOS/PMOS Structure The pins on Port A can be setup via configuration option to be either CMOS, NMOS or PMOS types. Port B VDD/V33O Option Structure The power supply for the Port B pins can be setup via configuration option to be either VDD or V33O. Port Pin Wake-up If the HALT instruction is executed, the device will enter the Power Down Mode, where the system clock will stop resulting in power being conserved, a feature that is im- portant for battery and other low-power applications. Various methods exist to wake-up the microcontroller, one of which is to change the logic condition on one of the port pins from high to low. After a HALT instruction forces the microcontroller into entering the Power Down Mode, the processor will remain in a low-power state un- til the logic condition of the selected wake-up pin on the port pin changes from high to low. This function is espe- cially suitable for applications that can be woken up via external switches. Each pin on PA, PB, PC, PD and PE0~PE1 has the capability to wake-up the device on an external falling edge. Note that some pins can only be setup nibble wide whereas other can be bit selected to have a wake-up function. I/O Port Control Registers Each I/O port has its own control register PAC, PBC, PCC, PDC and PEC, to control the input/output configu- ration. With this control register, each CMOS output or in- put with or without pull-high resistor structures can be reconfigured dynamically under software control. Each of the I/O ports is directly mapped to a bit in its associated port control register. Note that several pins can be setup to have NMOS outputs using configuration options. For the I/O pin to function as an input, the corresponding bit of the control register must be written as a ²1². This will then allow the logic state of the input pin to be di- rectly read by instructions. When the corresponding bit of the control register is written as a ²0², the I/O pin will be setup as an output. If the pin is currently setup as an output, instructions can still be used to read the output register. However, it should be noted that the program will in fact only read the status of the output data latch and not the actual logic status of the output pin. B a n k P o i n t e r b 7 b 0 B P 0 B P 0 D a t a M e m o r y 0 B a n k 0 1 B a n k 1 N o t u s e d , m u s t b e r e s e t t o " 0 " Bank Pointer |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |