PIC12F519-I/P Microchip Technology, PIC12F519-I/P Datasheet - Page 25

no-image

PIC12F519-I/P

Manufacturer Part Number
PIC12F519-I/P
Description
IC PIC MCU FLASH 1KX12 8DIP
Manufacturer
Microchip Technology
Series
PIC® 12Fr

Specifications of PIC12F519-I/P

Program Memory Type
FLASH
Program Memory Size
1.5KB (1K x 12)
Package / Case
8-DIP (0.300", 7.62mm)
Core Processor
PIC
Core Size
8-Bit
Speed
8MHz
Peripherals
POR, WDT
Number Of I /o
5
Ram Size
41 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Processor Series
PIC12F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
41 B
Interface Type
USB
Maximum Clock Frequency
8 MHz
Number Of Programmable I/os
6
Number Of Timers
1
Maximum Operating Temperature
+ 85 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005
Minimum Operating Temperature
- 40 C
Package
8PDIP
Device Core
PIC
Family Name
PIC12
Maximum Speed
8 MHz
Operating Supply Voltage
2.5|3.3|5 V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
AC162096 - HEADER MPLAB ICD2 PIC16F526 8/14AC124001 - MODULE SKT PROMATEII 8DIP/SOIC
Eeprom Size
-
Data Converters
-
Connectivity
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC12F519-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
5.1
To read a memory location, the user must write the
address to be read into the EEADR register and then
set the RD bit in the EECON register. The data will be
available in the next instruction cycle. The CPU will
stall during read operation.
EXAMPLE 5-1:
5.2
In order to write new data to the Flash data memory,
the program memory row that is being addressed by
EEADR<5:0> must be erased.
To prevent a spurious row erasure, a specific
sequence must be executed to initiate the erase to the
program memory. The sequence is as follows:
If the WREN bit is not set in the instruction cycle after
the FREE bit is set, the FREE bit will be cleared in
hardware.
If the WR bit is not set in the instruction cycle after the
WREN bit is set, the WREN bit will be cleared in
hardware.
© 2007 Microchip Technology Inc.
INSTRUCTION
Note: Only a BSF command will work to enable the
- Set the FREE bit (enable Flash data memory
- Set the WREN bit (enable writes to the Flash
- set the WR bit (initiates the row erase of the
row erase)
data memory array)
Flash data memory array)
BSF
MOVLW
BSF
NOP
MOVF
Reading Data Memory
Erasing a Data Memory Row
Flash data memory read documented in
Example 5-1. No other sequence of com-
mands will work, no exceptions.
FSR,5
EE_ADR_READ;LOAD ADDRESS TO READ
EECON,RD
EEDATA,W
FLASH DATA MEMORY
READ
;SWITCH TO BANK 1
;INITITATE THE READ
;INSTRUCTION IGNORED
;GET NEW DATA
Preliminary
EXAMPLE 5-2:
5.3
To write a memory location, the user must write the
address to be written to into the EEADR register. He
must then load the data to be written into the EEDATA
register. Once the data and address have been
loaded, a specific sequence must be executed to
initiate the write to the program memory. The
sequence is as follows:
• Set the WREN bit (enable writes to the Flash data
• Set the WR bit (initiates the write to the Flash data
If the WR bit is not set in the instruction cycle after the
WREN bit is set, the WREN bit will be cleared in hard-
ware.
This sequence is to prevent an accidental write to the
Flash memory.
BSF
MOVLW EE_ADR_ERASE ;LOAD ADDRESS TO ERASE
MOVWF EEADR
BSF
BSF
BSF
xxx
memory array)
memory array)
Note 1: The FREE bit may be set by any com-
2: The upper 3 bits of the EEADR register
Writing a Data Memory Word
FSR,5
EECON,FREE
EECON,WREN
EECON,WR
mand normally used by the core. How-
ever, the WREN and WR bits can only be
set using a series of BSF commands, as
documented in Example 5-2. No other
sequence of commands will work, no
exceptions.
indicates which row is to be erased.
ERASE DATA MEMORY
ROW
;SWITCH TO BANK 1
;LOAD ADDRESS TO SFR
; SELECT ERASE
; ENABL FLASH PROG’ING
; INITITATE ERASE
;NEXT INSTRUCTION
PIC12F519
DS41319A-page 23

Related parts for PIC12F519-I/P