PIC16F721-E/ML Microchip Technology, PIC16F721-E/ML Datasheet - Page 62
PIC16F721-E/ML
Manufacturer Part Number
PIC16F721-E/ML
Description
7 KB FLASH, 256 B SRAM, 18 I/O 20 QFN 4x4mm TUBE
Manufacturer
Microchip Technology
Series
PIC® XLP™ 16Fr
Datasheet
1.PIC16LF720-ISS.pdf
(244 pages)
Specifications of PIC16F721-E/ML
Core Processor
PIC
Core Size
8-Bit
Speed
16MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
17
Program Memory Size
7KB (4K x 14)
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 ~ 125°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 62 of 244
- Download datasheet (3Mb)
PIC16F/LF720/721
6.3
PORTC is a 8-bit wide, bidirectional port. The
corresponding
(Register
corresponding PORTC pin an input (i.e., put the
corresponding output driver in a High-Impedance mode).
Clearing a TRISC bit (= 0) will make the corresponding
PORTC pin an output (i.e., enable the output driver and
put the contents of the output latch on the selected pin).
Example 6-3
Reading the PORTC register
status of the pins, whereas writing to it will write to the
PORT latch. All write operations are read-modify-write
operations. Therefore, a write to a port implies that the
port pins are read, this value is modified and then written
to the PORT data latch.
REGISTER 6-11:
DS41430A-page 62
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7-0
R/W-x
RC7
PORTC and TRISC Registers
6-12). Setting a TRISC bit (= 1) will make the
shows how to initialize PORTC.
data
RC<7:0>: PORTC General Purpose I/O Pin bits
1 = Port pin is > V
0 = Port pin is < V
R/W-x
RC6
PORTC: PORTC REGISTER
direction
(Register
W = Writable bit
‘1’ = Bit is set
register
R/W-x
IH
IL
RC5
6-11) reads the
is
TRISC
R/W-x
RC4
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
R/W-x
The TRISC register
pin output drivers, even when they are being used as
analog inputs. The user should ensure the bits in the
TRISC register are maintained set when using them as
analog inputs. I/O pins configured as analog input always
read ‘0’.
EXAMPLE 6-3:
6.3.1
The ANSELC register
configure the Input mode of an I/O pin to analog.
Setting the appropriate ANSELC 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 ANSELC bits has no effect on digital
output functions. A pin with TRIS clear and ANSELC
set will still operate as a digital output, but the Input
mode will be analog. This can cause unexpected
behavior
instructions on the affected port.
RC3
BANKSEL PORTC
CLRF
BANKSEL TRISC
MOVLW
MOVWF
PORTC
B‘00001100’
TRISC
ANSELC REGISTER
when
R/W-x
RC2
(Register
INITIALIZING PORTC
executing
2010 Microchip Technology Inc.
;
;Init PORTC
;
;Set RC<3:2> as inputs
;and set RC<7:4,1:0>
;as outputs
(Register
x = Bit is unknown
6-12) controls the PORTC
R/W-x
RC1
6-13) is used to
read-modify-write
R/W-x
RC0
bit 0
Related parts for PIC16F721-E/ML
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
MCU PIC 4K FLASH 20-SOIC
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
MCU PIC 4K FLASH 20-SSOP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
MCU PIC 4K FLASH 20-QFN
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
MCU PIC 4K FLASH 20-DIP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
7 KB FLASH, 256 B SRAM, 18 I/O 20 PDIP .300in TUBE
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
7 KB FLASH, 256 B SRAM, 18 I/O 20 SOIC .300in TUBE
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
7 KB FLASH, 256 B SRAM, 18 I/O 20 SSOP .209in TUBE
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC PIC MCU FLASH 2KX14 28-QFN
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC PIC MCU FLASH 2KX14 28-SOIC
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC PIC MCU FLASH 2KX14 28DIP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC PIC MCU FLASH 2KX14 28-SOIC
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC PIC MCU FLASH 2KX14 28QFN
Manufacturer:
Microchip Technology
Part Number:
Description:
IC PIC MCU FLASH 2KX14 28SSOP
Manufacturer:
Microchip Technology
Part Number:
Description:
IC PIC MCU FLASH 2KX14 8-SSOP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC PIC MCU FLASH 2KX14 28-SSOP
Manufacturer:
Microchip Technology
Datasheet: