| 数据搜索系统,热门电子元器件搜索 |
|
ST52T301 数据表(PDF) 30 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST52T301 数据表(HTML) 30 Page - STMicroelectronics |
|
30 / 100 page ![]() 7. TIMER ST52x301 offers one on-chip Timer peripheral. TheTimer consists of an 8-bit counter with a 16-bit programmable prescaler, thus giving a maximum count o f 224, and control logic that allows configuring the functionment and the type of peripheral outputs. Figure 7.2 shows the Timer block diagram and Figure 7.3 shows the internal structure of the Timer. The content of the 8-bit counter can be read/written and is incremented on the Rising Edge of the 16-bit prescaler output (PRESCOUT). Moreover, it can be read under program control at any instant of the counting phase and loaded in a location of the Register File. The prescaler can be given any value between 0 and FFFFh setting the 4-th (TMLSB) and 5-th (TMMSB) locations of the Configuration Registers Bench. 7.1 Timer Functionment The Timer requires three signals: TMRCLK, TRST and TSTART (see Figure 7.3). Each of them can be generated internally or externally, this possibility is programmable by the user. TMRCLK increments the counted value of the Presc ale r. It can b e, by se tting C KSL of REG_CONF6 register, the internal clock signal (CLKM) or the signal provided on the pin TCLK. TRST resets to zero the content of the 8 bit counter. It is generated by the TRES or RESET external signals or it is forced by TMRSTbit of REG_CONF6 register. TSTART starts/stops the Prescaler counting.It can be given on the pin TCTRL or it is forced by TMST bit of REG_CONF6 register. The TSTART signal allows to work in two different modes: LEVEL (Time Counter): If the TSTART signal is high the Timer starts the count. When the TSTART is low the count is stopped and the current value is stored in the TMR_OUT register of the Input register Bench, then it can be transferred to the j-th location of the Registers File by using the instruction: LDRI reg-j 4 EDGE(Period Counter): After the reset, when the first edge of the TSTART signal appears, the Timer starts the count, at the next TSTART the Timer is stopped. In this way it is possible to measure the period of an external signal. The functionment modality is set by the TMEL configuration bit of REG_CONF6 register. The starting value of the Counter can be either a value contained in the Register File or directly a Fuzzy Output. If INPSL (REG_CONF7(3)) is set to ”1” then the value comes from one of the locations of the Register File (LDRP 0, reg-i); on the contrary it is generated by the Fuzzy Core. The choice between the two possible fuzzy outputs is set by the FZSL configuration bit of REG_CONF6 register FZSL=0/1 means the starting value is the loaded from the FUZZY_OUT_0/1. Level Edge start stop start start stop start 00 0 3 3 3 2 1 Reset Clock Counted Value Figure 7.1. Timer Functionalities 30/99 ST52T301/E301 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |