PIC18F13K22-I/ML Microchip Technology, PIC18F13K22-I/ML Datasheet - Page 62

IC MCU 8BIT 8KB FLASH 20-QFN

PIC18F13K22-I/ML

Manufacturer Part Number
PIC18F13K22-I/ML
Description
IC MCU 8BIT 8KB FLASH 20-QFN
Manufacturer
Microchip Technology
Series
PIC® XLP™ 18Fr

Specifications of PIC18F13K22-I/ML

Program Memory Type
FLASH
Program Memory Size
8KB (4K x 16)
Package / Case
20-VQFN Exposed Pad, 20-HVQFN, 20-SQFN, 20-DHVQFN
Core Processor
PIC
Core Size
8-Bit
Speed
64MHz
Connectivity
I²C, LIN, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
17
Eeprom Size
256 x 8
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 12x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Processor Series
PIC18F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
256 B
Interface Type
I2C, MSSP, SPI, USART
Maximum Clock Frequency
64 MHz
Number Of Programmable I/os
17
Number Of Timers
4
Operating Supply Voltage
1.8 V to 5.5 V
Maximum Operating Temperature
+ 125 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 52712-325, EWPIC18
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005
Minimum Operating Temperature
- 40 C
On-chip Adc
10 bit, 12 Channel
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F13K22-I/ML
Manufacturer:
SML
Quantity:
20 000
Part Number:
PIC18F13K22-I/ML
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC18F1XK22/LF1XK22
5.6
Data EEPROM memory has its own code-protect bits
in Configuration Words. External read and write
operations are disabled if code protection is enabled.
The microcontroller itself can both read and write to the
internal data EEPROM, regardless of the state of the
code-protect Configuration bit. Refer to Section 22.0
“Special Features of the CPU” for additional
information.
5.7
There are conditions when the user may not want to
write to the data EEPROM memory. To protect against
spurious EEPROM writes, various mechanisms have
been implemented. On power-up, the WREN bit is
cleared. In addition, writes to the EEPROM are blocked
during
parameter 33).
EXAMPLE 5-3:
TABLE 5-1:
DS41365D-page 62
EEADR
EECON1
EECON2
EEDATA
INTCON
IPR2
PIE2
PIR2
Legend: — = unimplemented, read as ‘0’. Shaded cells are not used during Flash/EEPROM access.
Loop
Name
Operation During Code-Protect
Protection Against Spurious Write
the
CLRF
BCF
BCF
BCF
BSF
BSF
MOVLW
MOVWF
MOVLW
MOVWF
BSF
BTFSC
BRA
INCFSZ
BRA
BCF
BSF
EEPROM Control Register 2 (not a physical register)
EEPROM Data Register
GIE/GIEH
EEADR7
Power-up
OSCFIP
OSCFIE
OSCFIF
EEPGD
Bit 7
REGISTERS ASSOCIATED WITH DATA EEPROM MEMORY
EEADR
EECON1, CFGS
EECON1, EEPGD
INTCON, GIE
EECON1, WREN
EECON1, RD
55h
EECON2
0AAh
EECON2
EECON1, WR
EECON1, WR
$-2
EEADR, F
LOOP
EECON1, WREN
INTCON, GIE
DATA EEPROM REFRESH ROUTINE
PEIE/GIEL
Timer
EEADR6
CFGS
Bit 6
C1IP
C1IE
C1IF
period
EEADR5 EEADR4 EEADR3 EEADR2 EEADR1 EEADR0
TMR0IE
Bit 5
C2IP
C2IE
C2IF
(T
; Start at address 0
; Set for memory
; Set for Data EEPROM
; Disable interrupts
; Enable writes
; Loop to refresh array
; Read current address
;
; Write 55h
;
; Write 0AAh
; Set WR bit to begin write
; Wait for write to complete
; Increment address
; Not zero, do it again
; Disable writes
; Enable interrupts
PWRT
Preliminary
INT0IE
FREE
,
EEIP
EEIE
EEIF
Bit 4
WRERR
The write initiate sequence and the WREN bit together
help prevent an accidental write during brown-out,
power glitch or software malfunction.
5.8
The data EEPROM is a high-endurance, byte
addressable array that has been optimized for the
storage of frequently changing information (e.g.,
program variables or other data that are updated often).
When variables in one section change frequently, while
variables in another section do not change, it is possible
to exceed the total number of write cycles to the
EEPROM without exceeding the total number of write
cycles to a single byte. If this is the case, then an array
refresh must be performed. For this reason, variables
that change infrequently (such as constants, IDs,
calibration, etc.) should be stored in Flash program
memory.
RABIE
BCLIP
BCLIE
BCLIF
Bit 3
Using the Data EEPROM
TMR0IF
WREN
Bit 2
TMR3IP
TMR3IE
TMR3IF
INT0IF
 2010 Microchip Technology Inc.
Bit 1
WR
RABIF
Bit 0
RD
on page
Values
Reset
259
259
259
259
257
260
260
260

Related parts for PIC18F13K22-I/ML