| 数据搜索系统,热门电子元器件搜索 |
|
AN592 数据表(PDF) 2 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN592 数据表(HTML) 2 Page - STMicroelectronics |
|
2 / 5 page ![]() PLL Generation using ARTimer 2/5 Bit 0 Reg. SC1 PS2 PS1 PS0 PRESCALER Ratio 0 000 1 0 001 2 0 010 4 0 011 8 0 100 16 0 101 32 0 110 64 0 111 128 1 000 3 1 001 6 1 010 12 1 011 24 1 100 48 1 101 96 1 110 192 1 111 384 Table 1. Prescaler Programming Ratio The Figure 2 shows the TIMOUT signal gen- erated in “load on external edge” mode, given the above TIMIN signal: on TIMIN ris- ing edge, the TC count register is loaded with the value contained in RC register (160 in this example). The timer will resume count- ing from value 160. When the compare value (210 in this example) is reached, the TIMOUT signal goes down. The timer keeps counting until the overflow (255) is reached. At this point, signal TIMOUT rises again. The timer keeps counting from 0 until next active edge on TIMIN. At this time, TC is loaded again with the RC value (160) and so on... The delay from TIMIN edge to TIMOUT fall- ing edge is given by CP-RC (multiplied by the TC register clock period Fin). The low level duration on TIMOUT is given by 255 - CP. The remaining of the TIMOUT period is vari- able, and will adjust to the TIMIN period: small variations of TIMIN period will be ab- sorbed by a variation of TVAR. The following rule must be respected in order to get the proper output signal: The variable time Tvar must stay smaller than CP, (otherwise the falling edge on TIMOUT occurs before rising edge on TIMIN) and larger than 0 (otherwise the ris- ing edge on TIMOUT never occurs). In other words, the period of input TIMIN (TOT in terms of TC clock cycles) must meet the following requirement: 255-RC<TOT<255-RC+CP Figure 2. TIMOUT signal Note: All numbers are decimal Coming back to our example, let’s calculate the timer settings: The input period is Tin = 1/15 kHz = 66.7 μs Calculation of the prescaler ratio: We want the best possible resolution, e.g. the smaller possible prescaler ratio: we would like the TC counter to count up to the |
|
|
链接网址 |
| 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 |