參數(shù)資料
型號(hào): HT82J97E
廠商: Holtek Semiconductor Inc.
英文描述: USB Joystick Encoder 8-Bit OTP MCU
中文描述: USB搖桿編碼器8位微控制器檢察官辦公室
文件頁數(shù): 21/46頁
文件大小: 314K
代理商: HT82J97E
HT82J97E
Rev. 1.30
21
May 10, 2004
To Configure PWM Block
The HT82J97E has two PWM outputs (PWM1 and
PWM2), which are shared with PC2, PC3 and can be
easily enabled or disabled by the PWM1_EN or
PWM2_EN bit of PORT_PC (16H) respectively.
Also there is a one 8-bit PWMBR (PWM Base Period
Register, 18H) which defines both PWM output wave-
form cycle period.
PWM cycle period = 256 1/f
SYS
(PWMBR+1), or
256 4/f
SYS
(PWMBR+1)
where 1/f
SYS
or 4/f
SYS
is defined by PWM_S bit of the
PORT_PC (16H)
For example if PWMBR = 17, 4/f
SYS
(T1) is selected and
f
SYS
= 6MHz.
So both output waveform cycle period is 256 4/6
(17+1) = about 3072 s (0.325kHz)
Now user can easily define the corresponding PWM
duty by configuring the PWM1DR (for PWM1) or
PWM2DR (for PWM2) duty registers
PWM1 duty (high pulse) = (PWM1DR+1)/256 100%
PWM1 high pulse period = PWM1 duty PWM cycle pe-
riod
PWM1Lowpulseperiod=PWMcycleperiod-highpulse
period
PWM2 duty (high pulse) = (PWM2DR+1)/256 100%
PWM2 high pulse period = PWM2 duty PWM cycle pe-
riod
PWM2Lowpulseperiod=PWMcycleperiod-highpulse
period
For example PWMBR=17, PWM1DR=63, 4/f
SYS
(T1) is
selected and f
SYS
=6MHz
PWM cycle period = 256 4/6 (17+1) = about 3072 s
(0.325kHz)
PWM1 duty = (63+1)/256 = 25%
PWM1 high pulse period = 25% 3072 s = 768 s
PWM1 low pulse period = 3072 s -768 s = 2304 s
+
( 2
$ (
, !
+
(
, (
"
I/O Port Special Registers Definition
Port-A (12H)
PA
Register
Bits
Labels
Read/Write
Option
Functions
PA
(12H)
0
PA0
R/W
I/O (R/W) has pull-low and pull-high ROM code option.
Has falling edge wake-up ROM code option.
1
PA1
R/W
I/O (R/W) has pull-low and pull-high option.
Has falling edge wake-up option.
2
PA2
R/W
I/O (R/W) has pull-low and pull-high option.
Has falling edge and rising edge wake-up option.
3
PA3
R/W
I/O (R/W) has pull-low and pull-high option.
Has falling edge and rising edge wake-up option.
4
PA4
R/W
I/O (R/W) has pull-high option.
Has falling edge wake-up option.
5
PA5
R/W
I/O (R/W) has pull-high option.
Has falling edge wake-up option.
6
PA6
R/W
I/O (R/W) has pull-high option.
Has falling edge wake-up option.
7
PA7
R/W
I/O (R/W) has pull-high option.
Has falling edge wake-up option, pin-shared with timer in-
put pin.
Port-A Control (13H)
This port configure the input or output mode of Port-A
PAC
相關(guān)PDF資料
PDF描述
HT82J97E-20SOP-A USB Joystick Encoder 8-Bit OTP MCU
HT82J97E-28SOP-A USB Joystick Encoder 8-Bit OTP MCU
HT82K28 Win98 Keyboard Encoder
HT82K28A Win98 Keyboard Encoder
HT82K628A Windows 2000 Keyboard Encoder(Windows 2000操作系統(tǒng)鍵盤編碼器)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
HT82J97E_08 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:USB Joystick Encoder 8-Bit MCU
HT82J97E-20SOP-A 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:USB Joystick Encoder 8-Bit OTP MCU
HT82J97E-28SOP-A 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:USB Joystick Encoder 8-Bit OTP MCU
HT82K19 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Peripheral IC
HT82K28 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:Win98 Keyboard Encoder