| Electronic Components Datasheet Search |
|
PIC16C781 Datasheet(PDF) 98 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16C781 Datasheet(HTML) 98 Page - Microchip Technology |
|
98 / 186 page ![]() PIC16C781/782 DS41171A-page 96 Preliminary 2001 Microchip Technology Inc. FIGURE 12-4: CONFIGURATION OF COMPARATOR C1 WITH DAC EXAMPLE 12-2: PROGRAMMING C1 FOR PSMC FEEDBACK ;* This code block will configure Comparator ;* C1 for normal speed and output polarity, ;* input on AN7, and Reference from the DAC BANKSEL TRISA ; Select Bank 1 BSF TRISB,RB3 ; RB3 as input BSF ANSEL,AN7 ; Set RB3 as analog BANKSEL DACON0 ; Select Bank 2 CLRF DAC ; DAC=00h MOVLW B’10000000’ ; Enable, no out MOVWF DACON0 ; DACREF = VDD MOVLW DAC_VALUE MOVWF DAC ; Trip Level MOVLW B’10001111’ ; C1; no out, MOVWF CM1CON0 ; VREF1, AN7 12.2.3 EXAMPLE: LOW POWER WINDOW COMPARATOR WITH INTERRUPT To form a low power window comparator, Comparators C1 & C2 are configured as follows: • Common input RB0/INT/AN4/VREF • Separate external reference voltages • Programmed for slow speed operation In addition, the output of comparator C2 must be inverted for common polarity with C1. A block diagram of the window comparator with exter- nal connections is shown in Figure 12-4. FIGURE 12-5: WINDOW COMPARATOR WITH INTERRUPT PIC16C78X C1 + - RB3/AN7/OPA C1POL = 0 C1OUT PSMC VDAC DAC INPUT AN4 INPUT C2 + - PIC16C78X C1 + - CLPOL=1 CM2CON1<6> CM2CON1<7> VOLTAGE REFERENCE VREF2 VREF1 CLPOL=0 |
|
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 |