PIC16C765 Microchip Technology Inc., PIC16C765 Datasheet - Page 97

no-image

PIC16C765

Manufacturer Part Number
PIC16C765
Description
8-bit Cmos Microcontrollers With Usb
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C765-I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C765-I/P
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
PIC16C765-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C765/JW
Manufacturer:
MIC
Quantity:
60
Part Number:
PIC16C765/JW
Manufacturer:
MIC
Quantity:
60
Part Number:
PIC16C765/JW
Manufacturer:
MIC
Quantity:
5
Part Number:
PIC16C765/JW
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC16C765T-I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C765T-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
12.7
An A/D conversion can be started by the “special event
trigger” of the CCP2 module. This requires that the
CCP2M<3:0> bits (CCP2CON<3:0>) be programmed as
1011 and that the A/D module is enabled (ADON bit is
set). When the trigger occurs, the GO/DONE bit will be
set, starting the A/D conversion, and the Timer1 counter
will be reset to zero. Timer1 is reset to automatically
repeat the A/D acquisition period with minimal software
TABLE 12-2:
Address
0Bh,8Bh,
10Bh,18Bh
0Ch
8Ch
1Eh
1Fh
9Fh
05h
85h
09h
89h
Legend: x = unknown, u = unchanged, - = unimplemented read as '0'. Shaded cells are not used for A/D conversion.
Note 1: These bits are reserved on the PIC6C745; always maintain these bits clear.
2000 Microchip Technology Inc.
Use of the CCP Trigger
INTCON
PIR1
PIE1
ADRES
ADCON0
ADCON1
PORTA
TRISA
PORTE
TRISE
Name
SUMMARY OF A/D REGISTERS
PSPIF
PSPIE
A/D Result Register
ADCS1
IBF
Bit 7
GIE
(1)
(1)
(1)
ADCS0
OBF
ADIE
PEIE
ADIF
Bit 6
(1)
PORTA Data Direction Register
IBOV
CHS2
RCIF
RCIE
Bit 5
T0IE
RA5
(1)
PSP-MODE
Preliminary
CHS1
Bit 4
INTE
TXIF
TXIE
RA4
(1)
USBIF
USBIE
CHS0
overhead (moving the ADRES to the desired location).
The appropriate analog input channel must be selected
and the minimum acquisition done before the “special
event trigger” sets the GO/DONE bit (starts a conversion).
If the A/D module is not enabled (ADON is cleared),
then the “special event trigger” will be ignored by the
A/D module, but will still reset the Timer1 counter.
RBIE
Bit 3
RA3
PORTE
CCP1IE
CCP1IF
PCFG2
DONE
RE2
Bit 2
T0IF
RA2
GO/
(1)
(1)
PIC16C745/765
Data Direction Bits 0000 -111 0000 -111
TMR2IF TMR1IF 0000 0000 0000 0000
TMR2IE TMR1IE 0000 0000 0000 0000
PCFG1
RE1
Bit 1
INTF
RA1
(1)
PCFG0 ---- -000 ---- -000
ADON
RE0
RBIF
Bit 0
RA0
(1)
0000 000x 0000 000u
xxxx xxxx uuuu uuuu
0000 00-0 0000 00-0
--0x 0000 --0u 0000
--11 1111 --11 1111
---- -xxx ---- -uuu
Value on:
DS41124C-page 97
POR,
BOR
Value on all
Resets
other

Related parts for PIC16C765