| Electronic Components Datasheet Search |
|
HT46RB50 Datasheet(PDF) 17 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46RB50 Datasheet(HTML) 17 Page - Holtek Semiconductor Inc |
|
17 / 53 page ![]() HT46RB50 Rev. 1.20 17 November 1, 2006 Input/Output Ports There are 38 bidirectional input/output lines in the microcontroller, labeled from PA to PE, which are mapped to the data memory of [12H], [14H], [16H], [18H] and [1A] respectively. All of these I/O ports can be used for input and output operations. For input opera- tion, these ports are non-latching, that is, the inputs must be ready at the T2 rising edge of instruction ²MOV A,[m] ² (m=12H, 14H, 16H, 18H or 1A). For output oper- ation, all the data is latched and remains unchanged un- til the output latch is rewritten. Each I/O line has its own control register (PAC, PBC, PCC, PDC, PEC) to control the input/output configura- tion. With this control register, CMOS output or Schmitt trigger input with or without pull-high resistor structures can be reconfigured dynamically under software control. To function as an input, the corresponding latch of the control register must write a ²1². The input source also depends on the control register. If the control register bit is ²1² the input will read the pad state. If the control reg- ister bit is ²0² the contents of the latches will move to the internal bus. The latter is possible in the ²Read-modify- write ² instruction. For output function, CMOS is the only configuration. These control registers are mapped to lo- cations 13H, 15H, 17H, 19H and 1BH. After a chip reset, these input/output lines remain at high levels or floating state (depending on the pull-high op- tions). Each bit of these input/output latches can be set or cleared by ²SET [m].i² and ²CLR [m].i² (m=12H, 14H, 16H, 18H or 1AH ) instructions. Some instructions first input data and then follow the output operations. For example, ²SET [m].i², ²CLR [m].i ², ²CPL [m]², ²CPLA [m]² read the entire port states into the CPU, execute the defined operations (bit-operation), and then write the results back to the latches or the accumulator. V D D M U X M U X I N T f o r P C 0 T M R 0 f o r P C 1 T M R 1 f o r P C 2 S y s t e m W a k e - u p ( P A o n l y ) R e a d D a t a R e g i s t e r C o n t r o l B i t P U D a t a B u s W r i t e C o n t r o l R e g i s t e r C h i p R e s e t R e a d C o n t r o l R e g i s t e r W r i t e D a t a R e g i s t e r D a t a B i t P A 0 ~ P A 7 P B 0 / A N 0 ~ P B 7 / A N 7 P C 0 / I N T P C 1 / T M R 0 P C 2 / T M R 1 P C 3 ~ P C 7 P D 0 / P W M 0 ~ P D 1 / P W M 1 P D 2 ~ P D 7 P E 0 / S C S P E 1 / C L K P E 2 / S D I P E 3 / S D O P E 4 ~ P E 5 M a s k O p t i o n M a s k O p t i o n P D 0 ~ P D 3 P W M 0 ~ P W M 3 D Q C K S Q D Q C K S Q Input/Output Ports Bit No. Label Function 0~2, 5 ¾ Unused bit, read as ²0² 3 T1E Defines the TMR active edge of the timer/ event counter (0=active on low to high; 1=active on high to low) 4 T1ON Enable/disable timer counting (0=disable; 1=enable) 6 7 T1M0 T1M1 Defines the operating mode, T1M1, T1M0: 01=Event count mode (external clock) 10=Timer mode (internal clock) 11=Pulse width measurement mode 00=Unused TMR1C (11H) Register |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |