Electronic Components Datasheet Search |
|
BL22P14 Datasheet(PDF) 15 Page - SHANGHAI BELLING CO., LTD. |
|
BL22P14 Datasheet(HTML) 15 Page - SHANGHAI BELLING CO., LTD. |
15 / 33 page 上海贝岭股份 上海贝岭股份 上海贝岭股份 上海贝岭股份有限公司 有限公司 有限公司 有限公司 Shanghai Belling Co., Ltd. BM22P14 BM22P14 BM22P14 BM22P14 用户手册 用户手册 用户手册 用户手册 BL22P14 USER MANUAL TEL:86-21-64850700 WEB: www.belling.com.cn Page 14 of 33 at PA3 by option. 5.10 Timer – TIMER1 TIMER1 is a 16bit count-up counter. The counter clock source may come from Fsys or RTC time-out signal or external source or overflow from TIMER0. Using external clock input from TMR1 (PB3) allows the user to count external events, measure time internals or pulse widths or generate an accurate time base. There are two data register- T1DH and T1DL. Before use, data must be written to T1DH and T1DL. TIMER1 will count from $0000 to this data and generate an interrupt. Then counter restart from $0000. TIMER1 has three operate mode: Timer mode The timer clock comes from internal selected clock source. Event mode To count external signal from TMR1, may count up when the signal is from low to high or high to low. Pulse width measure mode To measure pulse width from TMR1. When TE is “1”, TIMER0 will start counting after TMR1 receives a transient from low to high(from high to low when TE is “0”) until TMR1 returns to the original level and resets the TON. (Note: TON is the enable of TIMER1, and only automatic reset at pulse width measure mode. If other two modes, resetting TON must be finished by program.) In other words, only one cycle measurement can be made until TON is set. Then data reading from T1DH and T1DL is the value of pulse width. In the case of counter overflows, the counter is reload from the counter preload register and issues an interrupt request as other two modes. And the value of pulse width must add the time of generating the interrupt. It has three registers: T1DH、T1DL、T1C。 T1DH ($08): Timer 1 data register (High byte) .7-.0 T1DH[7:0] T1DL ($09): Timer 1 data register (Low byte) .7-.0 T1DL[7:0] The data registers of Timer1 are writable and readable. When writing it, this data is the overflow data and TIMER1 will count from $0000 to this data driven by internal or external signal. When reading, it is the real-time counting data. If writing to the data registers, new overflow data will be effective in next counting cycle. When TON is “0”, writing to the data registers will clear the counting data, and count from $00 after TON is set. But if do not writing to the data registers when TON is “0”, it will count from previous data which TIMER1 stop at. One point must be note: there are two data registers, so it can not read or write |
Similar Part No. - BL22P14 |
|
Similar Description - BL22P14 |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.COM |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Datasheet Upload | Contact us | Privacy Policy | Link Exchange | Manufacturer List 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 |