AC244027 Microchip Technology, AC244027 Datasheet - Page 55

no-image

AC244027

Manufacturer Part Number
AC244027
Description
Processor Extension Pak (PIC16LF727-ICE) 200K Device Emulator - Debugger Accesso
Manufacturer
Microchip Technology
Series
-r
Datasheet

Specifications of AC244027

Accessory Type
Debug Interface Module
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
For Use With/related Products
PIC16F727
6.2.1
The ANSELA register (Register 6-4) is used to
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-4:
© 2009 Microchip Technology Inc.
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7-6
bit 5-0
Note 1:
U-0
ANSELA REGISTER
When setting a pin to an analog input, the corresponding TRIS bit must be set to Input mode in order to
allow external control of the voltage on the pin.
Unimplemented: Read as ‘0’
ANSA<5:0>: Analog Select between Analog or Digital Function on pins RA<5:0>, respectively
0 = Digital I/O. Pin is assigned to port or Digital special function.
1 = Analog input. Pin is assigned as analog input
U-0
ANSELA: PORTA ANALOG SELECT REGISTER
W = Writable bit
‘1’ = Bit is set
ANSA5
R/W-1
ANSA4
R/W-1
PIC16F72X/PIC16LF72X
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
ANSA3
R/W-1
(1)
. Digital Input buffer disabled.
ANSA2
R/W-1
x = Bit is unknown
ANSA1
R/W-1
DS41341E-page 55
ANSA0
R/W-1
bit 0

Related parts for AC244027