| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
HT46R321 bảng dữ liệu(PDF) 16 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R321 bảng dữ liệu(HTML) 16 Page - Holtek Semiconductor Inc |
|
16 / 45 page ![]() HT46R321 Rev. 1.00 16 August 3, 2007 In the case of a timer/event counter OFF condition, writ- ing data to the timer/event counter preload register will also reload that data to the timer/event counter. But if the 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 TMR is read, the clock is blocked to avoid errors, as this may results in a counting error. Blocking of the clock issue should be taken into account by the programmer. It is strongly recommended to load a desired value into the TMR register first, before turning on the related timer/event counter, for proper op- eration since the initial value of TMR is unknown. Due to the timer/event scheme, the programmer should pay special attention on the instruction to enable then dis- able the timer for the first time, whenever there is a need to use the timer/event function, to avoid unpredictable result. After this procedure, the timer/event function can be operated normally. The definitions are as shown. The overflow signal of timer/event 0/1 counter can be used to generate the PFD signal. The timer prescaler is also used as the PWM counter. Input/Output Ports There are 21 bidirectional input/output lines in the microcontroller, labeled as PA, PB and PD, which are mapped to the data memory of [12H], [14H] and [18H] respectively. All of these I/O ports can be used for input and output operations. For input operation, these ports are non-latching, that is, the inputs must be ready at the T2 rising edge of instruction ²MOV A,[m]² (m=12H, 14H or 18H). For output operation, all the data is latched and remains unchanged until the output latch is rewritten. Each I/O line has its own control register (PAC, PBC, PDC) to control the input/output configuration. With this V D D M U X M U X P F D E N ( P A 3 ) W a k e - u p o p t i o n T M R 0 f o r P D 5 O n l y I N T f o r P D 6 O n l y S y s t e m W a k e - u p ( P A o n l y ) R e a d D a t a R e g i s t e r P A 3 P F D ( P D 0 o r P W M ) D Q C K S C o n t r o l B i t P u l l - H i g h O p t i o n D a t a B u s W r i t e C o n t r o l R e g i s t e r C h i p R e s e t R e a d C o n t r o l R e g i s t e r W r i t e D a t a R e g i s t e r D a t a B i t P A 0 ~ P A 2 P A 3 / P F D P A 4 ~ P A 7 P B 0 / A N 0 ~ P B 5 / A N 5 P D 0 / P W M 0 P D 1 / P W M 1 P D 2 / P C K P D 3 , P D 4 P D 5 / T M R P D 6 / I N T Q D Q C K S Q T M R 1 f o r P A 4 O n l y Input/Output Ports T M 1 T M 0 T M R T E T M 1 T M 0 T O N P u l s e W i d t h M e a s u r e m e n t M o d e C o n t r o l 8 - B i t T i m e r / E v e n t C o u n t e r P r e l o a d R e g i s t e r 8 - B i t T i m e r / E v e n t C o u n t e r D a t a B u s R e l o a d O v e r f l o w t o I n t e r r u p t 1 / 2 P F D 8 - s t a g e P r e s c a l e r 8 - 1 M U X f S Y S f I N T P S C 2 ~ P S C 0 ( 6 + 2 ) C o m p a r e P W M T o P D 0 / P D 1 C i r c u i t Timer/Event Counter |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |