Electronic Components Datasheet Search
  English  ▼

X  

PIC16C781 Datasheet(PDF) 98 Page - Microchip Technology

Part # PIC16C781
Description  8-Bit CMOS Microcontrollers with A/D, D/A, OPAMP, Comparators and PSMC
PDF  186 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16C781 Datasheet(HTML) 98 Page - Microchip Technology

Back Button PIC16C781 Datasheet HTML 94Page - Microchip Technology PIC16C781 Datasheet HTML 95Page - Microchip Technology PIC16C781 Datasheet HTML 96Page - Microchip Technology PIC16C781 Datasheet HTML 97Page - Microchip Technology PIC16C781 Datasheet HTML 98Page - Microchip Technology PIC16C781 Datasheet HTML 99Page - Microchip Technology PIC16C781 Datasheet HTML 100Page - Microchip Technology PIC16C781 Datasheet HTML 101Page - Microchip Technology PIC16C781 Datasheet HTML 102Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 98 / 186 page
background image
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



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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