| Electronic Components Datasheet Search |
|
SYNPWM Datasheet(PDF) 33 Page - Feeling Technology Corp. |
|
|
|||||||||||||||||||||||||||||
SYNPWM Datasheet(HTML) 33 Page - Feeling Technology Corp. |
|
33 / 57 page ![]() FM8P73B Web site: http://www.feeling-tech.com.tw Rev1.0 Nov 20, 2013 P.33/FM8P73B FEELING TECHNOLOGY 2.7.3 ADC conversion completion interrupt When the A/D conversion is completed, the flag bit ADCIF (INTFLAG <6>) will be set. And the ADCIF bit can be cleared by software. This interrupt can be disabled by clearing ADCIE bit (INTEN<6>). 2.8 Analog to Digital Converter (ADC) This analog to digital converter has 11 channels 10bits (8+2) resolution. The ADC is controlled by three control register, ADCON1, ADCON2, and ADCON3. Example 2.8: Analog to Digital Conversion (Channel0 AD conversion) Address Code NA #include <8P73B.ASH> … n BTRSC ADCON1,ADCEN_B n+1 GOTO $-1 ;Make Sure no ADC is processing n+2 MOVIA 0xBF n+3 MOVAR INTFLAG ;Clear ADCIF flag(Note) n+4 MOVIA 0x00 n+5 MOVAR ADCON1 ;Select ADC Channel 0 (IOA0) conversion n+6 MOVIA 0x03 n+7 MOVAR ADCON2 ;Set AD conversion rate: System clock / 128 n+8 MOVIA 0x01 n+9 MOVAR ADCON3 ;Set AN0 analog input n+10 BSR ADCON1,ADCEN_B ;ADC conversion start n+11 BTRSS INTFLAG,ADCIF_B n+12 GOTO $-1 ;Wait AD end of conversion n+13 MOVR ADDATH,A ;Read ADC high byte data n+14 MOVAR … n+15 MOVR ADDATL,A ;Read ADC low byte data n+16 MOVAR … … Note : BCR instruction is not recommended for Clear interrupt flag (INTFLAG register). 2.9 Oscillator Configurations FM8P73B can be operated in five different combinations of oscillator modes. Users can program configuration word (FOSC) to select the appropriate modes. The five different system clock modes are combination of the following oscillators: LF: Low Frequency Crystal Oscillator XT: Crystal/Resonator Oscillator HF: High Frequency Crystal/Resonator Oscillator ERC: External Resistor/ Voltage Controlled Oscillator IRC: Internal Resistor/Capacitor Oscillator In LF, XT, or HF modes, a crystal or ceramic resonator in connected to the OSCI and OSCO pins to establish oscillation. When in LF, XT, or HF modes, the devices can have an external clock source drive the OSCI pin. The ERC device option offers additional cost savings for timing insensitive applications. The RC oscillator frequency is a function of the supply voltage, the resistor (Rext) and capacitor (Cext), the operating temperature, and the process parameter. The IRC option offers largest cost savings for timing insensitive applications. |
|
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 |