Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC16F87-I/SS Datasheet(PDF) 53 Page - Microchip Technology

Part # PIC16F87-I/SS
Description  18/20/28-Pin Enhanced FLASH Microcontrollers with nanoWatt Technology
PDF  214 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F87-I/SS Datasheet(HTML) 53 Page - Microchip Technology

Back Button PIC16F87-I/SS Datasheet HTML 49Page - Microchip Technology PIC16F87-I/SS Datasheet HTML 50Page - Microchip Technology PIC16F87-I/SS Datasheet HTML 51Page - Microchip Technology PIC16F87-I/SS Datasheet HTML 52Page - Microchip Technology PIC16F87-I/SS Datasheet HTML 53Page - Microchip Technology PIC16F87-I/SS Datasheet HTML 54Page - Microchip Technology PIC16F87-I/SS Datasheet HTML 55Page - Microchip Technology PIC16F87-I/SS Datasheet HTML 56Page - Microchip Technology PIC16F87-I/SS Datasheet HTML 57Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 53 / 214 page
background image
 2003 Microchip Technology Inc.
Preliminary
DS30487B-page 51
PIC16F87/88
5.0
I/O PORTS
Some pins for these I/O ports are multiplexed with an
alternate function for the peripheral features on the
device. In general, when a peripheral is enabled, that
pin may not be used as a general purpose I/O pin.
Additional information on I/O ports may be found in the
PICmicro® Mid-Range Reference Manual (DS33023).
5.1
PORTA and the TRISA Register
PORTA is a 8-bit wide, bidirectional port. The corre-
sponding data direction register is TRISA. Setting a
TRISA bit (= 1) will make the corresponding PORTA
pin an input (i.e., put the corresponding output driver in
a high-impedance mode). Clearing a TRISA bit (= 0)
will make the corresponding PORTA pin an output (i.e.,
put the contents of the output latch on the selected pin).
Reading the PORTA register, reads the 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.
Pin RA4 is multiplexed with the Timer0 module clock
input and with analog input to become the RA4/AN4/
T0CKI/C2OUT pin. The RA4/AN4/T0CKI/C2OUT pin is
a Schmitt Trigger input and full CMOS output driver.
Pin RA5 is multiplexed with the Master Clear module
input. The RA5/MCLR/VPP pin is a Schmitt Trigger
input.
Pin RA6 is multiplexed with the oscillator module input
and external oscillator output. Pin RA7 is multiplexed
with the oscillator module input and external oscillator
input. Pin RA6/OSC2/CLKO and pin RA7/OSC1/CLKI
are Schmitt Trigger inputs and full CMOS output drivers.
Pins RA<1:0> are multiplexed with analog inputs. Pins
RA<3:2> are multiplexed with analog inputs, compara-
tor outputs, and VREF inputs. Pins RA<3:0> have TTL
inputs and full CMOS output drivers.
EXAMPLE 5-1:
INITIALIZING PORTA
TABLE 5-1:
PORTA FUNCTIONS
Note:
On
a
Power-on
Reset,
the
pins
PORTA<4:0> are configured as analog
inputs and read as ‘0’.
BANKSEL PORTA
; select bank of PORTA
CLRF
PORTA
; Initialize PORTA by
; clearing output
; data latches
BANKSEL ANSEL
; Select Bank of ANSEL
MOVLW
0x00
; Configure all pins
MOVWF
ANSEL
; as digital inputs
MOVLW
0xFF
; Value used to
; initialize data
; direction
MOVWF
TRISA
; Set RA<7:0> as inputs
Name
Bit#
Buffer
Function
RA0/AN0
bit 0
TTL
Input/output or analog input.
RA1/AN1
bit 1
TTL
Input/output or analog input.
RA2/AN2/CVREF/VREF-(2)
bit 2
TTL
Input/output or analog input or VREF- or comparator VREF
output.
RA3/AN3/VREF+(2)/C1OUT
bit 3
TTL
Input/output or analog input or VREF+ or comparator output.
RA4/AN4(2)/T0CKI/C2OUT
bit 4
ST
Input/output, analog input or TMR0 external input or
comparator output.
RA5/MCLR/VPP
bit 5
ST
Input, Master Clear (Reset) or programming voltage input.
RA6/OSC2/CLKO
bit 6
ST
Input/output, connects to crystal or resonator, oscillator
output or 1/4 the frequency of OSC1, and denotes the
instruction cycle in RC mode.
RA7/OSC1/CLKI
bit 7
ST/CMOS(1) Input/output, connects to crystal or resonator or oscillator
input.
Legend: TTL = TTL input, ST = Schmitt Trigger input
Note 1:
This buffer is a Schmitt Trigger input when configured in RC Oscillator mode and a CMOS input otherwise.
2:
PIC16F88 only.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com