Electronic Components Datasheet Search |
|
AN2979 Datasheet(PDF) 6 Page - STMicroelectronics |
|
AN2979 Datasheet(HTML) 6 Page - STMicroelectronics |
6 / 12 page Software description AN2979 6/12 Doc ID 15651 Rev 1 2.1 Application flowcharts Figure 4. Main loop flowchart Figure 5. Get conversion value flowchart ai15766 Configure the system clock to provide a master clock frequency f MASTER = 16 MHz Enable TIM2 peripheral clock Configure PC4 as input floating Configure PB0 as output push pull for the PWM Comparator configuration Enable comparator interface Configure COMP2 channel3 With external reference and polarity high Connect Comp2 output to the TIM2 input capture1 TIM configuration TIM2 to generate the PWM Enable TIM2 capture / compare interrupt enable Enable general interrupts SPI configuration Display on LCD Configure COMP2 channel4 Compare to the reference value Enable TIM2 Display on LCD Start Clock configuration GPIO configuration A/D converter initialization LCD configuration Calibration Optional Start A/D conversion End ai15767 Get timer value Get the conversion value Clear TIM2 pending bit Display on the LCD Start End V IN > VREF |
Similar Part No. - AN2979 |
|
Similar Description - AN2979 |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.COM |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Datasheet Upload | Contact us | Privacy Policy | 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 |