PIC16C74B-20/P Microchip Technology Inc., PIC16C74B-20/P Datasheet - Page 81

no-image

PIC16C74B-20/P

Manufacturer Part Number
PIC16C74B-20/P
Description
40 PIN, 7 KB OTP, 192 RAM, 33 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16C74B-20/P

A/d Inputs
8-Channel, 8-Bit
Cpu Speed
5 MIPS
Eeprom Memory
0 Bytes
Input Output
33
Interface
I2C/SPI/USART
Memory Type
OTP
Number Of Bits
8
Package Type
40-pin PDIP
Programmable Memory
7K Bytes
Ram Size
192 Bytes
Speed
4 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2.5-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C74B-20/PQ
Manufacturer:
MIC
Quantity:
465
Part Number:
PIC16C74B-20/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C74B-20/PQ
Manufacturer:
MICRO
Quantity:
20 000
Part Number:
PIC16C74B-20/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
The following steps should be followed for doing an A/D
conversion:
1.
2.
FIGURE 12-1:
2000 Microchip Technology Inc.
Note 1: Not available on PIC16C73B.
Configure the A/D module:
• Configure analog pins, voltage reference,
• Select A/D input channel (ADCON0)
• Select A/D conversion clock (ADCON0)
• Turn on A/D module (ADCON0)
Configure A/D interrupt (if desired):
• Clear ADIF bit (PIR1<6>)
• Set ADIE bit (PIE1<6>)
• Set PEIE bit (INTCON<6>)
• Set GIE bit (INTCON<7>)
and digital I/O (ADCON1)
Converter
A/D
A/D BLOCK DIAGRAM
(Reference
Voltage)
V
REF
(Input Voltage)
PCFG2:PCFG0
V
IN
PIC16C63A/65B/73B/74B
V
DD
001 or
011 or
101
000 or
010 or
100 or
11x
3.
4.
5.
6.
7.
Wait the required acquisition time.
Set GO/DONE bit (ADCON0) to start conversion.
Wait for A/D conversion to complete, by either:
Polling for the GO/DONE bit to be cleared (if
interrupts are disabled);
OR
Waiting for the A/D interrupt.
Read A/D result register (ADRES), clear bit
ADIF if required.
For next conversion, go to step 1 or step 2 as
required. The A/D conversion time per bit is
defined as T
required before next acquisition starts.
CHS2:CHS0
111
110
101
100
011
010
001
000
AD
. A minimum wait of 2 T
RA1/AN1
RE2/AN7
RA2/AN2
RA0/AN0
RE1/AN6
RE0/AN5
RA5/AN4
RA3/AN3/V
DS30605C-page 81
(1)
(1)
(1)
REF
AD
is

Related parts for PIC16C74B-20/P