| Electronic Components Datasheet Search |
|
HT46C24 Datasheet(PDF) 16 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46C24 Datasheet(HTML) 16 Page - Holtek Semiconductor Inc |
|
16 / 49 page ![]() HT46R24/HT46C24 Rev. 1.50 16 May 3, 2004 The bit0~bit2 of the TMR0C can be used to define the pre-scaling stages of the internal clock sources of timer/event counter. The definitions are as shown. The overflow signal of timer/event counter can be used to generate the PFD sig- nal. The timer prescaler is also used as the PWM counter. Label (TMR0C) Bits Function T0PSC0 T0PSC1 T0PSC2 0 1 2 Defines the prescaler stages, T0PSC2, T0PSC1, T0PSC0= 000: fINT=fSYS 001: fINT=fSYS/2 010: fINT=fSYS/4 011: fINT=fSYS/8 100: fINT=fSYS/16 101: fINT=fSYS/32 110: fINT=fSYS/64 111: fINT=fSYS/128 T0E 3 Defines the TMR active edge of timer/ event counter (0=active on low to high; 1=active on high to low) T0ON 4 Enable/disable timer counting (0=disabled; 1=enabled) ¾ 5 Unused bit, read as ²0² T0M0 T0M1 6 7 Defines the operating mode, T0M1, T0M0: 01=Event count mode (external clock) 10=Timer mode (internal clock) 11=Pulse width measurement mode 00=Unused TMR0C Register Label (TMR1C) Bits Function ¾ 0~2 Unused bit, read as ²0² T1E 3 Defines the TMR active edge of timer/ event counter (0=active on low to high; 1=active on high to low) T1ON 4 Enable/disable timer counting (0=disabled; 1=enabled) ¾ 5 Unused bit, read as ²0² T1M0 T1M1 6 7 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 Register Input/Output Ports There are 40 bidirectional input/output lines in the microcontroller, labeled as PA, PB, PC, PD and PF, which are mapped to the data memory of [12H], [14H], [16H], [18H] and [28H] respectively. All of these I/O ports can be used for input and output operations. For input operation, these ports are non-latching, that is, the in- puts must be ready at the T2 rising edge of instruction ²MOV A,[m]² (m=12H, 14H, 16H, [18H] or 28H). For out- put operation, all the data is latched and remains un- changed until the output latch is rewritten. Each I/O line has its own control register (PAC, PBC, PCC, PDC, PFC) 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 ²1². The input source also de- pends on the control register. If the control register bit is ²1², the input will read the pad state. If the control regis- ter 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 locations 13H, 15H, 17H, 19H and 29H. After a chip reset, these input/output lines remain at high levels or floating state (depends on pull-high options). 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 28H) instructions. |
|
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 |