| Electronic Components Datasheet Search |
|
AN1530 Datasheet(PDF) 5 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1530 Datasheet(HTML) 5 Page - STMicroelectronics |
|
5 / 12 page ![]() 5/12 ACCURATE TIMEBASE FOR LOW-COST ST7 APPLICATIONS WITH INTERNAL RC... 1.3 AVERAGING AND GLITCH ALGORITHM This algorithm an added feature to section1.2. When the 50 Hz source has noise or spikes, this algorithm helps to prevent a wrong measurement of the reference signal. If you develop a permanent hardware circuit to generate the 50 Hz signal, then it may contain noise signals as well as glitches or spikes. This algorithm is a must in this case. This software uses 12 bytes of RAM and takes 325 ms (one loop to find the average of 8 sam- ples) to find the deviation fraction. The flowchart shows how this algorithm works. Figure 3. Average and Glitch Algorithm Flowchart yes ? capture_range sample = (+/-)10% of First sample of capture counter is stored (capture_range) for glitch filtering Initialisation of TIMER A capture and variables Check no Average Internal RC deviation fraction = Average Capture Counter / Calculated (Ideal) Capture Counter yes ? over 8 samples Is no (Figure 2) START Capture counter measurement |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | 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 |