參數(shù)資料
型號: HT82J30R
廠商: Holtek Semiconductor Inc.
英文描述: 16 Channel A/D MCU with SPI Interface
中文描述: 16通道A / D轉(zhuǎn)換,SPI接口單片機
文件頁數(shù): 14/47頁
文件大?。?/td> 312K
代理商: HT82J30R
HT82J30R/HT82J30A
Rev. 1.00
14
December 20, 2006
Register
Reset
(Power-on)
WDT Time-out
(Normal Operation)
RES Reset
(Normal Operation)
RES Reset
(HALT)
WDT Time-out
(HALT)*
PFC
---- -111
---- -111
---- -111
---- -111
--- -uuu
INTC1
-000 0000
-000 0000
-000 0000
-000 0000
-uuu uuuu
PWM
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
uuuu uuuu
ADR
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
uuuu uuuu
ADCR
0100 0000
0100 0000
0100 0000
0100 0000
uuuu uuuu
ACSR
1--- --00
1--- --00
1--- --00
1--- --00
u--- --uu
SBCR_A
0110 0000
0110 0000
0110 0000
0110 0000
uuuu uuuu
SBDR_A
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
uuuu uuuu
SBCR_B
0110 0000
0110 0000
0110 0000
0110 0000
uuuu uuuu
SBDR_B
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
uuuu uuuu
Note:
* stands for warm reset
u stands for unchanged
x stands for unknown
Timer/Event Counter
A timer/event counter (TMR) is implemented in the
microcontroller. The timer/event counter contains an
8-bit programmable count-up counter whose clock may
come from an external source or the system clock.
Using an external clock input allows the user to count
external events, measure time internals or pulse widths,
or generate an accurate time base. While using the in-
ternalclockallowstheusertogenerateanaccuratetime
base.
The timer/event counter can generate PFD signal by us-
ing an external or internal clock. The PFD frequency is
determined by the equation f
INT
/[2 (256-N)].
There are 2 registers related to the timer/event counter;
TMR and TMRC. Two physical registers are mapped to
the TMR location; writing to TMR places the start value
into the timer/event counter preload register. Reading
TMR retrieves the contents of the timer/event counter.
The TMRC register is a timer/event counter control reg-
ister, which defines some options.
The TM0, TM1 bits define the operating mode. The
event count mode is used to count external events,
which means the clock source comes from the external
TMR pin. The timer mode functions as a normal timer
with the clock source coming from the f
INT
clock. The
pulse width measurement mode can be used to measure a
high or low level duration of the external TMR pin. The
counting is based on f
INT
.
In the event count or timer mode, once the timer/event
counter starts counting, it will count from the current con-
tentsinthetimer/eventcountertoFFH.Onceanoverflow
occurs, the counter is reloaded from the timer/event
counter preload register and generates an interrupt re-
quest flag (TF; bit 5 of INTC) at the same time.
In the pulse width measurement mode with the TON
and TE bits equal to one, once the TMR pin has re-
ceived a transient from low to high (or high to low if the
TE bit is 0 ) it will start counting until the TMR pin re-
turns to its original level and resets the TON bit. The
measured result will remain in the timer/event counter
even if the activated transient occurs again. In other
words, only a one cycle measurement can be imple-
mented. Until the TON bit is again set, the cycle mea-
surement will not function even if it receives further
transient pulses. Note that, in this operating mode, the
timer/event counter starts counting not according to the
logic level but according to the transient edges. In the
case of a counter overflow, the counter is reloaded from
the timer/event counter preload register and issues an
interrupt request just like the other two modes. To en-
able the counting operation, the timer ON bit (TON; bit 4
of TMRC) should be set to 1. In the pulse width mea-
surement mode, the TON bit will be cleared automati-
cally after the measurement cycle is completed. But in
the other two modes the TON bit can only be reset by in-
structions. The overflow of the timer/event counter is
one of the wake-up sources. No matter what the opera-
tion mode is, writing a 0 to ETI can disable the interrupt
service.
In the case of a timer/event counter OFF condition, writ-
ing data to the timer/event counter preload register will
alsoreloadthatdatatothetimer/eventcounter.Butifthe
timer/event counter is turned on, data written to it will
only be kept in the timer/event counter preload register.
The timer/event counter will still operate until an over-
flow occurs. When the timer/event counter is read, the
clock will be blocked to avoid errors. As clock blocking
may results in a counting error, this must be taken into
consideration by the programmer.
相關(guān)PDF資料
PDF描述
HT82J927A USB Gamepad
HT82J97E USB Joystick Encoder 8-Bit OTP MCU
HT82J97E-20SOP-A USB Joystick Encoder 8-Bit OTP MCU
HT82J97E-28SOP-A USB Joystick Encoder 8-Bit OTP MCU
HT82K28 Win98 Keyboard Encoder
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
HT82J927A 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:USB Gamepad
HT82J97A_08 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:USB Joystick Encoder 8-Bit MCU
HT82J97E 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:USB Joystick Encoder 8-Bit OTP MCU
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