| поискавой системы для электроныых деталей |
|
AN4371 датащи(PDF) 22 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4371 датащи(HTML) 22 Page - STMicroelectronics |
|
22 / 29 page ![]() Appendix A AN4371 22/29 DocID025337 Rev 1 } /* 8 */ // On receiving end of conversion for test channel, the digital result is written in // STDR1.TCDATA and STDR1.VALID bit is set. Also, EOC and ECH bits are set in the // ISR and ST_EOC bit is set in STSR1. /* 9 */ // State Machine returns to IDLE state. } 3.3 Algorithm RC example in CPU one-shot mode void ADC0_RESISTIVE_CAPACITIVE_SELF_TEST (void) { uint8_t step = 0; // Algorithm RC ADC0.MCR.B.PWDN = 0; // Enable ADC0 /* 1 */ ADC0.MCR.B.CTUEN = 0; // CPU mode /* 2 */ ADC0.NCMR[0].B.CH0 = 1; // ADC0 channel 0 is set. Program NCMR0 to select channels to be converted for normal conversion /* 3 */ ADC0.MCR.B.MODE = 0; // Program MCR[MODE] = 0 to select one shot mode /* 4 */ ADC0.STCR1.B.INPSAMP_RC = 0xFF; // Program sampling phase duration for the test conversions /* 5 */ ADC0.STCR3.B.ALG = 0x1; // Select the RC Self Testing algorithm in STCR3.ALG. Default is Algorithm S /* 6 */ ADC0.STCR2.B.EN = 1; // ADC0 Enable self testing channel by setting EN bit in the STCR2 register /* 7 */ ADC0.STAW3R.B.AWDE = 1; // Enable analog watchdog related to the algorithm RC /* 8 */ ADC0.STAW3R.B.THRL = ADC0_Self_Test_Flash_Calibration_Data[0]; // ADC0 Self-Test calibration - RC algo - Low Treshold Value ADC0.STAW3R.B.THRH = ADC0_Self_Test_Flash_Calibration_Data[1]; // ADC0 Self-Test calibration - RC algo - High Treshold Value /* 9 */ |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |