| Electronic Components Datasheet Search |
|
HT68F20 Datasheet(PDF) 105 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT68F20 Datasheet(HTML) 105 Page - Holtek Semiconductor Inc |
|
105 / 210 page ![]() HT68F20/HT68F30/HT68F40/HT68F50/HT68F60 Rev.1.00 105 November 3, 2009 However a compare match from Comparator A will also automatically clear the TnON bit and thus generate the Single Pulse output trailing edge. In this way the CCRA value can be used to control the pulse width. A compare match from Comparator A will also generate a TM inter- rupt. The counter can only be reset back to zero when the TnON bit changes from low to high when the counter restarts. In the Single Pulse Mode CCRP is not used. The TnCCLR and TnDPX bits are not used in this Mode. Capture Input Mode To select this mode bits TnM1 and TnM0 in the TMnC1 register should be set to 01 respectively. This mode en- ables external signals to capture and store the present value of the internal counter and can therefore be used for applications such as pulse width measurements. The external signal is supplied on the TPn_0 or TPn_1 pin, whose active edge can be either a rising edge, a falling edge or both rising and falling edges; the active edge transition type is selected using the TnIO1 and TnIO0 bits in the TMnC1 register. The counter is started when the TnON bit changes from low to high which is ini- tiated using the application program. When the required edge transition appears on the TPn_0 or TPn_1 pin the present value in the counter will be latched into the CCRA registers and a TM interrupt generated. Irrespective of what events occur on the TPn_0 or TPn_1 pin the counter will continue to free run until the TnON bit changes from high to low. When a CCRP compare match occurs the counter will reset back to zero; in this way the CCRP value can be used to control the maximum counter value. When a CCRP compare match occurs from Comparator P, a TM inter- rupt will also be generated. Counting the number of overflow interrupt signals from the CCRP can be a use- ful method in measuring long pulse widths. The TnIO1 and TnIO0 bits can select the active trigger edge on the TPn_0 or TPn_1 pin to be a rising edge, falling edge or both edge types. If the TnIO1 and TnIO0 bits are both set high, then no capture operation will take place irre- spective of what happens on the TPn_0 or TPn_1 pin, however it must be noted that the counter will continue to run. As the TPn_0 or TPn_1 pin is pin shared with other func- tions, care must be taken if the TM is in the Input Cap- ture Mode. This is because if the pin is setup as an output, then any transitions on this pin may cause an in- put capture operation to be executed. The TnCCLR and TnDPX bits are not used in this Mode. CCRP Counter Value Counter overflow CCRP Int. Flag TnPF CCRA Int. Flag TnAF TnON bit Pause Counter Reset TnPAU bit Resume Stop Time YY XX CCRA Value XX TM Capture Pin YY TnIO1, TnIO0 Value 00 - Rising edge 01 - Falling edge 11 - Disable Capture Active edge Active edge XX 10 - Both edges Active edges YY TnM1, TnM0 = 01 Capture Input Mode Note: 1. TnM1, TnM0 = 01 and active edge set by TnIO1 and TnIO0 bits 2. TM Capture input pin active edge transfers counter value to CCRA 3. TnCCLR bit not used 4. No output function - TnOC and TnPOL bits not used 5. CCRP sets counter maximum value |
|
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 |