| 전자부품 데이터시트 검색엔진 |
|
AN1711 데이터시트(PDF) 21 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1711 데이터시트(HTML) 21 Page - STMicroelectronics |
|
21 / 40 page ![]() 21/40 SOFTWARE TECHNIQUES FOR COMPENSATING ST7 ADC ERRORS Programming Tips 1. If you use the timer interrupt to exit from WAIT mode, take care that the time period should not be defined in such a way that half the conversion is done in WAIT mode and rest when the CPU is running. Otherwise you will not get the benefit of a conversion done in WAIT mode. 2. You need to consider the execution done prior to entering WAIT mode. For example, the ADC conversion is restarted and the WFI instruction is executed. This takes 7 cycles which is approximately 1µs when fCPU=8 MHz. So, the time programmed in output compare register must be equal to 1us+ADC conversion time for one ADC conversion. For 2 ADC conversions, the time will be 1µs+2*ADC conversion time. 3. Please note that the timer reset value is 0xFFFC. This means that it will take 4 timer cycles to overflow and reset to 0000. 4. On some ST7 devices, the ADC has an End of Conversion interrupt capability, in this case you can use the ADC interrupt directly to wake up from WAIT mode. Figure 12. Illustration of Wait mode In the software example, we take the time to do two ADC conversions while the CPU is in WAIT mode. For ST72F324, this is around 16µs. (= 1µs+ 2*7.5µs). So, the timer compare **Rows starting with ‘W’ are results from WAIT mode execution **Rows starting with ‘A’ are results from execution from flash. First column is Maximum value recorded Second column is minimum value recorded Average Result Difference (Max - Min) |
|
링크 URL |
| 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 |