| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
UPD17P136ACT bảng dữ liệu(PDF) 137 Page - NEC |
|
|
|||||||||||||||||||||||||||||
UPD17P136ACT bảng dữ liệu(HTML) 137 Page - NEC |
|
137 / 292 page ![]() CHAPTER 13 PERIPHERAL HARDWARE 118 13.1.6 Setting of Interval Time The time interval at which the comparator outputs the coincidence signal is determined by the value set to the modulo register. The set value N of the modulo register is calculated from interval time T [sec] as follows: T = N + 1 = (N + 1) × TCP fCP N = T × fCP – 1 or N = T – 1 (where, N = 1 to 255) TCP fCP : Frequency of count pulse [Hz] TCP : Cycle of count pulse [sec] (1/fCP = resolution) • Example of calculating count value from interval time and program • Example of setting 7 ms to timer 1 as interval time (system clock: fX = 8 MHz) Suppose one wanted to set the interval timer to 7 ms. It is impossible to set an interval time of exactly 7 ms from an 8-MHz system clock. To set an interval time closest to 7 ms, therefore, calculate the count value by selecting a count pulse (fX/256, resolution: 32 µs) at which the resolution is maximum. Example of calculation T = 7 ms, Resolution = 32 µs N= T – 1 (Resolution) = 7 × 10–3 – 1 32 × 10–6 = 217.75 = 218 (= DAH) The value of the modulo register at which the interval time is closest to 7 ms is DAH, and the interval time at that time is 7.008 ms. Program example MOV DBF0, #0AH ; Stores DAH to DBF by using reserved words “DBF0” and “DBF1” MOV DBF1, #0DH ; Storage PUT TMM, DBF ; Transfers contents of DBF by using reserved word “TMM” INITFLG TM1EN, TM1RES, TM1CK1, NOT TM1CK0 ; Sets TM1EN and TM1RES, sets count pulse of timer 1 to “fX/256”, and starts ; counting, by using embedded macroinstruction “INITFLG” . . |
|
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 |