PIC16F1939-I/P Microchip Technology Inc., PIC16F1939-I/P Datasheet - Page 27

no-image

PIC16F1939-I/P

Manufacturer Part Number
PIC16F1939-I/P
Description
28KB Flash, 1KB RAM, 256B EEPROM, LCD, 1.8-5.5V
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F1939-I/P

A/d Inputs
14-Channel, 10-Bit
Comparators
2
Cpu Speed
8 MIPS
Eeprom Memory
256 Bytes
Input Output
36
Interface
I2C/SPI/UART/USART
Memory Type
Flash
Number Of Bits
8
Package Type
40-pin PDIP
Programmable Memory
28K Bytes
Ram Size
1K Bytes
Speed
32 MHz
Temperature Range
–40 to 125 °C
Timers
4-8-bit, 1-16-bit
Voltage, Range
1.8-5.5 V

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F1939-I/P
Manufacturer:
IR
Quantity:
5 144
Part Number:
PIC16F1939-I/P
Manufacturer:
Microchip Technology
Quantity:
1 852
Part Number:
PIC16F1939-I/PT
Manufacturer:
ON
Quantity:
4 300
Part Number:
PIC16F1939-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F1939-I/PT
0
Company:
Part Number:
PIC16F1939-I/PT
Quantity:
2 800
Company:
Part Number:
PIC16F1939-I/PT
Quantity:
1 600
FIGURE 3-3:
 2009 Microchip Technology Inc.
Program
Memory
On-chip
Interrupt, RETFIE
RETURN, RETLW
CALL, CALLW
Rollover to Page 0
Rollover to Page 7
Interrupt Vector
Stack Level 15
Stack Level 0
Stack Level 1
Reset Vector
PROGRAM MEMORY MAP
AND STACK FOR
16KW PARTS
PC<14:0>
Page 1
Page 2
Page 3
Page 4
Page 7
Page 0
15
0000h
0004h
0005h
7FFFh
07FFh
0800h
0FFFh
1000h
17FFh
1800h
1FFFh
2000h
3FFFh
4000h
Preliminary
3.1.1
There are two methods of accessing constants in pro-
gram memory. The first method is to use tables of
RETLW instructions. The second method is to set an
FSR to point to the program memory.
3.1.1.1
The RETLW instruction can be used to provide access
to tables of constants. The recommended way to create
such a table is shown in Example 3-1.
EXAMPLE 3-1:
The BRW instruction makes this type of table very sim-
ple to implement. If your code must remain portable
with previous generations of microcontrollers, then the
BRW instruction is not available so the older table read
method must be used.
constants
my_function
PIC16F193X/LF193X
brw
retlw DATA0
retlw DATA1
retlw DATA2
retlw DATA3
;… LOTS OF CODE…
movlw
call constants
;… THE CONSTANT IS IN W
READING PROGRAM MEMORY AS
DATA
RETLW Instruction
DATA_INDEX
RETLW INSTRUCTION
;Add Index in W to
;program counter to
;select data
;Index0 data
;Index1 data
DS41364D-page 27

Related parts for PIC16F1939-I/P