Electronic Components Datasheet Search
  English  ▼

X  

HT68F20 Datasheet(PDF) 102 Page - Holtek Semiconductor Inc

Part # HT68F20
Description  Enhanced I/O Flash Type MCU 8-Bit MCU with EEPROM
PDF  210 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT68F20 Datasheet(HTML) 102 Page - Holtek Semiconductor Inc

Back Button HT68F20 Datasheet HTML 98Page - Holtek Semiconductor Inc HT68F20 Datasheet HTML 99Page - Holtek Semiconductor Inc HT68F20 Datasheet HTML 100Page - Holtek Semiconductor Inc HT68F20 Datasheet HTML 101Page - Holtek Semiconductor Inc HT68F20 Datasheet HTML 102Page - Holtek Semiconductor Inc HT68F20 Datasheet HTML 103Page - Holtek Semiconductor Inc HT68F20 Datasheet HTML 104Page - Holtek Semiconductor Inc HT68F20 Datasheet HTML 105Page - Holtek Semiconductor Inc HT68F20 Datasheet HTML 106Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 102 / 210 page
background image
HT68F20/HT68F30/HT68F40/HT68F50/HT68F60
Rev.1.00
102
November 3, 2009
Timer/Counter Mode
To select this mode, bits TnM1 and TnM0 in the TMnC1
register should be set to 11 respectively. The
Timer/Counter Mode operates in an identical way to the
Compare Match Output Mode generating the same in-
terrupt flags. The exception is that in the Timer/Counter
Mode the TM output pin is not used. Therefore the
above description and Timing Diagrams for the Com-
pare Match Output Mode can be used to understand its
function. As the TM output pin is not used in this mode,
the pin can be used as a normal I/O pin or other
pin-shared function.
PWM Output Mode
To select this mode, bits TnM1 and TnM0 in the TMnC1
register should be set to 10 respectively and also the
TnIO1 and TnIO0 bits should be set to 10 respectively.
The PWM function within the TM is useful for applica-
tions which require functions such as motor control,
heating control, illumination control etc. By providing a
signal of fixed frequency but of varying duty cycle on the
TM output pin, a square wave AC waveform can be gen-
erated with varying equivalent DC RMS values.
As both the period and duty cycle of the PWM waveform
can be controlled, the choice of generated waveform is
extremely flexible. In the PWM mode, the TnCCLR bit
has no effect as the PWM period. Both of the CCRA and
CCRP registers are used to generate the PWM wave-
form, one register is used to clear the internal counter
and thus control the PWM waveform frequency, while
the other one is used to control the duty cycle. Which
register is used to control either frequency or duty cycle
is determined using the TnDPX bit in the TMnC1 regis-
ter. The PWM waveform frequency and duty cycle can
therefore be controlled by the values in the CCRA and
CCRP registers.
An interrupt flag, one for each of the CCRA and CCRP,
will be generated when a compare match occurs from
either Comparator A or Comparator P. The TnOC bit in
the TMnC1 register is used to select the required polar-
ity of the PWM waveform while the two TnIO1 and
TnIO0 bits are used to enable the PWM output or to
force the TM output pin to a fixed high or low level. The
TnPOL bit is used to reverse the polarity of the PWM
output waveform.
CCRP
CCRA
Counter
Value
Counter Cleared
by CCRP
CCRA Int.
Flag TnAF
CCRP Int.
Flag TnPF
PWM Output
TM Pin
TnOC = 1
TnON bit
PWM Duty Cycle
set by CCRA
PWM Period
set by CCRP
TnIO1, TnI O0 = 10 PWM Out put
TnIO 1, TnIO0 = 00
Output Inactive
TnIO1, TnIO 0 = 10
Interrupts
still generat ed
Here TnIO1, TnI O0 = 00
Out put Forced to Inactive
level but PWM function
keeps running internally
TnIIO1, TnIO0 = 10
Resume PWM O utput
Counter Stop
if TnO N bit low
Count er reset
when TnON
ret urns high
PWM resumes operat ion
Output remains at same level
Time
TnPOL bit
O utput Inverts
When TnPOL = 1
TM Pin
TnOC = 0
TnPAU bit
Resume
Pause
TnDPX = 0; TnM1, TnM0 = 10
PWM Mode
- TnDPX = 0
Note:
1. Here TnDPX=0- Counter cleared by CCRP
2. Counter Clear sets PWM Period
3. Internal PWM function continues even when TnIO1, TnIO0 = 00 or 01
4. TnCCLR bit has no influence on PWM operation



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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