| Electronic Components Datasheet Search |
|
HT46C24 Datasheet(PDF) 17 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46C24 Datasheet(HTML) 17 Page - Holtek Semiconductor Inc |
|
17 / 49 page ![]() HT46R24/HT46C24 Rev. 1.50 17 May 3, 2004 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. Each line of port A has the capability of waking-up the device. Each I/O port has a pull-high option. Once the pull-high option is selected, the I/O port has a pull-high resistor, otherwise, there ¢s none. Take note that a non-pull-high I/O port operating in input mode will cause a floating state. The PA3 and PA5 are pin-shared with the PFD and INT pins respectively. If the PFD option is selected, the out- put signal in output mode of PA3 will be the PFD signal generated by timer/event counter overflow signal. The input mode always remain in its original functions. Once the PFD option is selected, the PFD output signal is con- trolled by PA3 data register only. Writing ²1² to PA3 data register will enable the PFD output function and writing 0 will force the PA3 to remain at ²0². The I/O functions of PA3 are shown below. I/O Mode I/P (Normal) O/P (Normal) I/P (PFD) O/P (PFD) PA3 Logical Input Logical Output Logical Input PFD (Timer on) Note: The PFD frequency is the timer/event counter overflow frequency divided by 2. The PB can also be used as A/D converter inputs. The A/D function will be described later. There is a PWM function shared with PD0/PD1/PD2/PD3. If the PWM function is enabled, the PWM0/PWM1/PWM2/PWM3 signal will appear on PD0/PD1/PD2/PD3 (if PD0/PD1/ PD2/PD3 is operating in output mode). The I/O func- tions of PD0/PD1/PD2/PD3 are as shown. I/O Mode I/P (Normal) O/P (Normal) I/P (PWM) O/P (PWM) PD0 PD1 PD2 PD3 Logical Input Logical Output Logical Input PWM0 PWM1 PWM2 PWM3 It is recommended that unused or not bonded out I/O lines should be set as output pins by software instruction to avoid consuming power under input floating state. PWM The microcontroller provides 4 channels (6+2)/(7+1) (depends on options) bits PWM output shared with PD0/PD1/PD2/PD3. The PWM channels have their data registers denoted as PWM0 (1AH), PWM1 (1BH), PWM2 (1CH) and PWM3 (1DH). The frequency source of the PWM counter comes from fSYS. The PWM regis- ters are four 8-bit registers. The waveforms of PWM out- puts are as shown. Once the PD0/PD1/PD2/PD3 are selected as the PWM outputs and the output function of PD0/PD1/PD2/PD3 are enabled (PDC.0/PDC.1/ PDC.2/PDC.3 = ²0²), writing ²1² to PD0/PD1/PD2/PD3 data register will enable the PWM output function and writing ²0² will force the PD0/PD1/PD2/PD3 to stay at ²0². A (6+2) bits mode PWM cycle is divided into four modu- lation cycles (modulation cycle 0~modulation cycle 3). Each modulation cycle has 64 PWM input clock period. In a (6+2) bit PWM function, the contents of the PWM register is divided into two groups. Group 1 of the PWM register is denoted by DC which is the value of PWM.7~PWM.2. V D D M U X M U X E N ( P F D o r P W M 0 ~ P W M 3 ) O P 0 ~ O P 7 I N T f o r P A 5 O n l y 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 D Q C K S D Q C K Q S 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 2 P A 3 / P F D P A 4 P A 5 / I N T P A 6 / S D A P A 7 / S C L P B 0 / A N 0 ~ P B 7 / A N 7 P C 0 ~ P C 7 P D 0 / P W M 0 P D 1 / P W M 1 P D 2 / P W M 2 P D 3 / P W M 3 P D 4 ~ P D 7 P F 0 ~ P F 7 Q [ P A 3 , P F D ] o r [ P D 0 , P W M 0 ] o r [ P D 1 , P W M 1 ] o r [ P D 2 , P W M 2 ] o r [ P D 3 , P W M 3 ] Input/Output Ports |
|
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 |