PIC16F721-I/SO Microchip Technology, PIC16F721-I/SO Datasheet - Page 49

MCU PIC 4K FLASH 20-SOIC

PIC16F721-I/SO

Manufacturer Part Number
PIC16F721-I/SO
Description
MCU PIC 4K FLASH 20-SOIC
Manufacturer
Microchip Technology
Series
PIC® XLP™ 16Fr

Specifications of PIC16F721-I/SO

Core Size
8-Bit
Program Memory Size
7KB (4K x 14)
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Core Processor
PIC
Speed
16MHz
Connectivity
I²C, SPI, UART/USART
Number Of I /o
17
Program Memory Type
FLASH
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 12x8b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
20-SOIC (0.300", 7.50mm Width)
Controller Family/series
PIC16F
No. Of I/o's
18
Ram Memory Size
256Byte
Cpu Speed
16MHz
No. Of Timers
3
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
REGISTER 6-4:
6.1.3
The ANSELA register
configure the Input mode of an I/O pin to analog.
Setting the appropriate ANSELA bit high will cause all
digital reads on the pin to be read as ‘0’ and allow
analog functions on the pin to operate correctly.
The state of the ANSELA bits has no affect on digital
output functions. A pin with TRIS clear and ANSEL set
will still operate as a digital output, but the Input mode
will be analog. This can cause unexpected behavior
when executing read-modify-write instructions on the
affected port.
REGISTER 6-5:
 2010 Microchip Technology Inc.
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7-6
bit 5-0
Note 1: Interrupt-on-change also requires that the RABIE bit of the INTCON register be set.
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7-5
bit 4
bit 3
bit 2-0
Note 1:
U-0
U-0
ANSELA REGISTER
Setting a pin to an analog input automatically disables the digital input circuitry. Weak pull-ups, if
available, are unaffected. The corresponding TRIS bit must be set to Input mode by the user in order to
allow external control of the voltage on the pin.
Unimplemented: Read as ‘0’
IOCA<5:0>: Interrupt-on-Change PORTA Control bits
1 =
0 =
Unimplemented: Read as ‘0’
ANSA: Analog Select between Analog or Digital Function on Pin RA<4>
0 = Digital I/O. Pin is assigned to port or digital special function.
1 = Analog input. Pin is assigned as analog input
Unimplemented: Read as ‘0’
ANSA<2:0>: Analog Select between Analog or Digital Function on Pins RA<2:0>, respectively
0 = Digital I/O. Pin is assigned to port or digital special function.
1 = Analog input. Pin is assigned as analog input
Interrupt-on-change enabled
Interrupt-on-change disabled
U-0
U-0
IOCA: INTERRUPT-ON-CHANGE PORTA REGISTER
ANSELA: PORTA ANALOG SELECT REGISTER
(Register
W = Writable bit
‘1’ = Bit is set
W = Writable bit
‘1’ = Bit is set
IOCA5
R/W-0
U-0
6-5) is used to
(1)
ANSA4
R/W-1
IOCA4
R/W-0
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
U-0
(1)
(1)
IOCA3
R/W-0
. Digital input buffer is disabled.
. Digital input buffer is disabled.
PIC16F/LF720/721
ANSA2
R/W-1
IOCA2
R/W-0
x = Bit is unknown
x = Bit is unknown
ANSA1
R/W-1
IOCA1
R/W-0
DS41430A-page 49
ANSA0
R/W-1
IOCA0
R/W-0
bit 0
bit 0

Related parts for PIC16F721-I/SO