PIC12F1840-I/P Microchip Technology, PIC12F1840-I/P Datasheet - Page 16

7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core 8 PDI

PIC12F1840-I/P

Manufacturer Part Number
PIC12F1840-I/P
Description
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core 8 PDI
Manufacturer
Microchip Technology
Datasheet

Specifications of PIC12F1840-I/P

Processor Series
PIC12F
Core
PIC
Program Memory Type
Flash
Program Memory Size
7 KB
Data Ram Size
256 B
Interface Type
MI2C, SPI, EUSART
Number Of Timers
3
Operating Supply Voltage
1.8 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
Through Hole
Package / Case
PDIP-8
Development Tools By Supplier
MPLAB IDE Software
Minimum Operating Temperature
- 40 C
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC12F1840-I/P
Manufacturer:
MICROCHIP
Quantity:
200
PIC12(L)F1840
FIGURE 3-1:
DS41441B-page 16
Program
On-chip
Memory
Interrupt, RETFIE
RETURN, RETLW
CALL, CALLW
Rollover to Page 0
Rollover to Page 1
Interrupt Vector
Stack Level 15
Stack Level 0
Stack Level 1
Reset Vector
PROGRAM MEMORY MAP
AND STACK FOR
PIC12(L)F1840
PC<14:0>
Page 1
Page 0
15
0000h
0004h
0005h
7FFFh
07FFh
0800h
0FFFh
1000h
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:
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
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
 2011 Microchip Technology Inc.
Example
;Add Index in W to
;program counter to
;select data
;Index0 data
;Index1 data
3-1.

Related parts for PIC12F1840-I/P