| Electronic Components Datasheet Search |
|
HT85F2230 Datasheet(PDF) 118 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT85F2230 Datasheet(HTML) 118 Page - Holtek Semiconductor Inc |
|
118 / 147 page ![]() Rev. 1.10 118 of 147 ���� �1� �01� A/D Flash 8051 Core Low Pin Count MCU HT85F2230/HT85F2240 Capture Modes Timer 2 has two capture modes, the Capture on Edge Mode, known as Capture Mode 0, and the Capture on Write Mode, known as Capture Mode 1. The required mode is selected using the COCAHn and COCALn bits in the CCEN register. The accompanying diagram illustrates the basic operational blocks. CCn CRCH/CCHn CRCL/CCLn TH� TL� I�FR bit COCAHn COCALn 11 01 Write to CCLn(CRCL) Capt�re Mode 1 Capt�re Mode 0 Note: 1. n=0~1 �. CC1 capt�re inp�t b� rising edge �. CC0 capt�re inp�t b� rising or fa��ing edge se�ection b� the I�FR bit 4. Write to CCLn is for CC1 and Write to CRCL is for CC0 Capture Modes Block Diagram Capture On Edge Mode To select this mode, bits COCAHn and COCALn in the CCEN register, should be set to “01” respectively. In this mode, Modules 1 will capture the Timer 2 counter on the rising edge of an external signal applied on the CC1 pin. Module 0 will capture the Timer 2 counter contents on a rising or falling edge applied on the CC0 pin. The rising or falling edge trigger is controlled by the I3FR bit in the T2CON register. In this mode, when the CCUn interrupt is enabled and a trigger edge is detected on CCn input pin, the CCUnF interrupt flag will be set high to generate an interrupt. Capture On Write Mode To select this mode, bits COCAHn and COCALn in the CCEN register, should be set to “11” respectively. In this mode a Timer 2 Capture is generated by any write operation into the capture register low byte. Note that the capture action occurs right after the write operation and the value written to capture register is irrelevant for this function. The Timer 2 contents will be latched into the appropriate capture registers. In this mode, no interrupt request will be generated. |
|
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 |