| 数据搜索系统,热门电子元器件搜索 |
|
ST62T35B 数据表(PDF) 46 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST62T35B 数据表(HTML) 46 Page - STMicroelectronics |
|
46 / 82 page ![]() 46/82 ST62T35B/E35B 4.3.3 TIMINGS MEASUREMENT MODES These modes are based on the capture of the down counter content into either CP or RLCP reg- isters. Some are used in conjunction with a syn- chronisation of the down counter by reload func- tions on external event on CPi pins or software RUNRES setting, while other modes do not affect the downcounting. As long as RELOAD bit is cleared, the down counter remains in free running mode. 4.3.3.1 Timing measurement with startup control Three startup conditions, selected by RLDSELi bit can reload the counter from RLCP and initiate the down counting when RELOAD bit is set. The first mode is software controlled through the RUNRES bit, while the two others are based on external event on pins CP1 and CP2 with configurable polarities. External event on CP2 pin (with configurable po- larities) is used as strobe to launch the capture of the CT counter into CP. When RELOAD bit is set, RLCP cannot be used for capture, since it con- tains the reload value.. Finally, 3 different Reload/Capture sequences are available: – CP1 triggered restart mode with CP2 event de- tection. – CP2 triggered restart mode with second CP2 event detection. – Software triggered restart mode with CP2 event detection. CP1 triggered restart mode with CP2 event de- tection. This mode is enabled for RLDSEL2=0 and RLDSEL1=1. External events on CPi pins are enabled as soon as RUNRES bit is set, which lets the prescaler and the down counter running. The next active edge on CP1 causes the counter to be loaded from RLCP, the CP1FLG to be set and the downcounting startsfrom RLCP value. Each following active edge on CP1 will cause a reload of the counter. If CP1FLG is not re- set before the next reload, the CP1ERR flag is set at the same time as the counter is reloaded. Both flags should then be cleared by software. While the counter is counting, any active edge on CP2 will capture the value of the counter at that in- stant into the CP Register and set the CP2FLG bit. If CP2FLG is not cleared before the following CP2 event, the CP2ERR flag bit is set, and no new cap- ture can be performed Capturing is re-enabled by clearing both CP2FLG and CP2ERR. If a capture on CP2 and a reload on CP1 occur at the same time, the capture of the counter to CP is made first, and then the counter is reloaded from RLCP. Figure 26. . CP1 Triggered Restart Mode with CP2 Event Detection RELOAD 1 Reload on CP1,CP2, RUNRES / Capture CP2 0 Capture CP1 / Capture CP2 VR02007 COUNTER CP1 Set CP1FLG Set CP1ERR 0000h 0000h CT Disabled Enable the Inputs RUNRES Software Reset Reload and Start Reload Reload Set CP1FLG Disabled Set CP2ERR Disabled Capture CT into CP Set CP2FLG CP2 Disabled First Capture in CP Then Reload Set CP1ERR, CP2FLG Clear all Flags 45 |
|
链接网址 |
| 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 |