PIC16F84-04/P Microchip Technology, PIC16F84-04/P Datasheet - Page 158

IC MCU FLASH 1KX14 EE 18DIP

PIC16F84-04/P

Manufacturer Part Number
PIC16F84-04/P
Description
IC MCU FLASH 1KX14 EE 18DIP
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F84-04/P

Program Memory Type
FLASH
Program Memory Size
1.75KB (1K x 14)
Package / Case
18-DIP (0.300", 7.62mm)
Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Peripherals
POR, WDT
Number Of I /o
13
Eeprom Size
64 x 8
Ram Size
68 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 6 V
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
68 B
Maximum Clock Frequency
4 MHz
Number Of Programmable I/os
13
Number Of Timers
1
Operating Supply Voltage
2 V to 6 V
Maximum Operating Temperature
+ 70 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
ICE2000
Minimum Operating Temperature
0 C
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
DVA16XP180 - ADAPTER DEVICE FOR MPLAB-ICEAC164010 - MODULE SKT PROMATEII DIP/SOIC
Data Converters
-
Connectivity
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F84-04/P
Manufacturer:
TI
Quantity:
201
Part Number:
PIC16F84-04/P
Manufacturer:
Microchip Technology
Quantity:
1 970
PICmicro MID-RANGE MCU FAMILY
DS31009A-page 9-18
Question 4:
Answer 4:
1.
2.
Another case where a read-modify-write instruction may seem to change other pin values
unexpectedly can be illustrated as follows: Suppose you make PORTC all outputs and
drive the pins low. On each of the port pins is an LED connected to ground, such that a
high output lights it. Across each LED is a 100 F capacitor. Let's also suppose that the
processor is running very fast, say 20 MHz. Now if you go down the port setting each pin
in order; BSF PORTC,0 then BSF PORTC,1 then BSF PORTC,2 and so on, you may see
that only the last pin was set, and only the last LED actually turns on. This is because the
capacitors take a while to charge. As each pin was set, the pin before it was not charged
yet and so was read as a zero. This zero is written back out to the port latch (r-m-w,
remember) which clears the bit you just tried to set the instruction before. This is usually
only a concern at high speeds and for successive port operations, but it can happen, so
take it into consideration.
If this is on a PIC16C7XX device, you have not configured the I/O pins properly in the
ADCON1 register. If a pin is configured for analog input, any read of that pin will read a
zero, regardless of the voltage on the pin. This is an exception to the normal rule that the
pin state is always read. You can still configure an analog pin as an output in the TRIS reg-
ister, and drive the pin high or low by writing to it, but you will always read a zero. Therefore
if you execute a Read-Modify-Write instruction (see previous question) all analog pins are
read as zero, and those not directly modified by the instruction will be written back to the
port latch as zero. A pin configured as analog is expected to have values that may be nei-
ther high nor low to a digital pin, or floating. Floating inputs on digital pins are a no-no, and
can lead to high current draw in the input buffer, so the input buffer is disabled.
When I perform a BCF instruction, other pins get cleared in the port. Why?
1997 Microchip Technology Inc.

Related parts for PIC16F84-04/P