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

IC PIC MCU FLASH 4KX16 20-PDIP

PIC18F13K50-I/P

Manufacturer Part Number
PIC18F13K50-I/P
Description
IC PIC MCU FLASH 4KX16 20-PDIP
Manufacturer
Microchip Technology
Series
PIC® XLP™ 18Fr

Specifications of PIC18F13K50-I/P

Program Memory Type
FLASH
Program Memory Size
8KB (4K x 16)
Package / Case
20-DIP (0.300", 7.62mm)
Core Processor
PIC
Core Size
8-Bit
Speed
48MHz
Connectivity
I²C, SPI, UART/USART, USB
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
14
Eeprom Size
256 x 8
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 11x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Processor Series
PIC18F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
512 B
Interface Type
EUSART/I2C/MSSP/SPI/USB
Maximum Clock Frequency
48 MHz
Number Of Programmable I/os
15
Number Of Timers
4
Maximum Operating Temperature
+ 85 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 52712-325, EWPIC18
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, DM164127, DV164126
Minimum Operating Temperature
- 40 C
On-chip Adc
11-ch x 10-bit
Package
20PDIP
Device Core
PIC
Family Name
PIC18
Maximum Speed
48 MHz
Operating Supply Voltage
3.3|5 V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
DV164126 - KIT DEVELOPMENT USB W/PICKIT 2DM164127 - KIT DEVELOPMENT USB 18F14/13K50AC164112 - VOLTAGE LIMITER MPLAB ICD2 VPP
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F13K50-I/P
Manufacturer:
MICROCHIP
Quantity:
201
Part Number:
PIC18F13K50-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC18F1XK50/PIC18LF1XK50
4.2
Programming program Flash is accomplished by first
loading data into the write buffer and then initiating a
programming sequence. The write and erase buffer
sizes shown in Table 4-4 can be mapped to any
location of the same size, beginning at 000000h. The
actual memory write sequence takes the contents of
this buffer and programs the proper amount of program
Flash that contains the Table Pointer.
The programming duration is externally timed and is
controlled by PGC. After a Start Programming
command is issued (4-bit command, ‘1111’), a NOP is
issued, where the 4th PGC is held high for the duration
of the programming time, P9.
TABLE 4-4:
TABLE 4-5:
DS41342E-page 16
PIC18F14K50
PIC18F13K50
Step 1: Direct access to program Flash.
Step 2: Point to row to write.
Step 3: Load write buffer. Repeat for all but the last two bytes.
Step 4: Load write buffer for last two bytes and start programming.
To continue writing data, repeat steps 2 through 4, where the Address Pointer is incremented by 2 at each iteration of
the loop.
Command
0000
0000
0000
0000
0000
0000
0000
0000
0000
1101
1111
0000
4-bit
Program Flash Programming
WRITE AND ERASE BUFFER SIZES
WRITE PROGRAM FLASH CODE SEQUENCE
0E <Addr[21:16]>
0E <Addr[15:8]>
0E <Addr[7:0]>
<MSB><LSB>
<MSB><LSB>
Data Payload
8E A6
9C A6
6E F8
6E F7
6E F6
84 A6
00 00
Devices
BSF
BCF
BSF
MOVLW <Addr[21:16]>
MOVWF TBLPTRU
MOVLW <Addr[15:8]>
MOVWF TBLPTRH
MOVLW <Addr[7:0]>
MOVWF TBLPTRL
Write 2 bytes and post-increment address by 2.
Write 2 bytes and start programming.
NOP - hold PGC high for time P9 and low for time P10.
Advance Information
EECON1, EEPGD
EECON1, CFGS
EECON1, WREN
After PGC is brought low, the programming sequence
is terminated. PGC must be held low for the time
specified by parameter P10 to allow high-voltage
discharge of the memory array.
The code sequence to program a PIC18F1XK50/
PIC18LF1XK50 device is shown in Table 4-5. The
flowchart shown in Figure 4-4 depicts the logic
necessary to completely write a PIC18F1XK50/
PIC18LF1XK50 device. The timing diagram that details
the Start Programming command and parameters P9
and P10 is shown in Figure 4-5.
Note:
Core Instruction
Write Buffer Size
The TBLPTR register must point to the
same region when initiating the program-
ming sequence as it did when the write
buffers were loaded.
(bytes)
16
8
 2010 Microchip Technology Inc.
Erase Size (bytes)
64
64

Related parts for PIC18F13K50-I/P