PIC18F452-E/PT Microchip Technology, PIC18F452-E/PT Datasheet - Page 65

IC MCU CMOS 40MHZ 16K FLSH44TQFP

PIC18F452-E/PT

Manufacturer Part Number
PIC18F452-E/PT
Description
IC MCU CMOS 40MHZ 16K FLSH44TQFP
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18F452-E/PT

Core Size
8-Bit
Program Memory Size
32KB (16K x 16)
Core Processor
PIC
Speed
40MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
34
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
1.5K x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
44-TQFP, 44-VQFP
Controller Family/series
PIC18
No. Of I/o's
34
Eeprom Memory Size
256Byte
Ram Memory Size
1.5KB
Cpu Speed
40MHz
No. Of Timers
4
Package
44TQFP
Device Core
PIC
Family Name
PIC18
Maximum Speed
40 MHz
Operating Supply Voltage
5 V
Data Bus Width
8 Bit
Number Of Programmable I/os
34
Interface Type
I2C/SPI/USART
On-chip Adc
8-chx10-bit
Number Of Timers
4
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F452-E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Company:
Part Number:
PIC18F452-E/PT
Quantity:
52
EXAMPLE 5-3:
5.5.2
Depending on the application, good programming
practice may dictate that the value written to the mem-
ory should be verified against the original value. This
should be used in applications where excessive writes
can stress bits near the specification limit.
5.5.3
If a write is terminated by an unplanned event, such as
loss of power or an unexpected RESET, the memory
location just programmed should be verified and repro-
grammed if needed.The WRERR bit is set when a write
operation is interrupted by a MCLR Reset, or a WDT
Time-out Reset during normal operation. In these situ-
ations, users can check the WRERR bit and rewrite the
location.
TABLE 5-2:
© 2006 Microchip Technology Inc.
Address
FF8h
FF7h
FF6h
FF5h
FF2h
FA7h
FA6h
FA2h
FA1h
FA0h
Legend:
PROGRAM_MEMORY
Required
Sequence
TBLPTRU
TBPLTRH Program Memory Table Pointer High Byte (TBLPTR<15:8>)
TBLPTRL Program Memory Table Pointer High Byte (TBLPTR<7:0>)
TABLAT
INTCON
EECON2
EECON1
IPR2
PIR2
PIE2
Shaded cells are not used during FLASH/EEPROM access.
x = unknown, u = unchanged, r = reserved, - = unimplemented read as '0'.
Name
WRITE VERIFY
UNEXPECTED TERMINATION OF
WRITE OPERATION
BSF
BCF
BSF
BCF
MOVLW
MOVWF
MOVLW
MOVWF
BSF
BSF
DECFSZ COUNTER_HI
BRA
BCF
REGISTERS ASSOCIATED WITH PROGRAM FLASH MEMORY
Program Memory Table Latch
EEPROM Control Register2 (not a physical register)
EEPGD
GIEH
Bit 7
GIE/
WRITING TO FLASH PROGRAM MEMORY (CONTINUED)
EECON1,EEPGD
EECON1,CFGS
EECON1,WREN
INTCON,GIE
55h
EECON2
AAh
EECON2
EECON1,WR
INTCON,GIE
PROGRAM_LOOP
EECON1,WREN
CFGS
PEIE/
Bit 6
GIEL
TMR0IE
Bit 5
bit21
Program Memory Table Pointer Upper Byte
(TBLPTR<20:16>)
FREE
INTE
EEIP
EEIE
Bit 4
EEIF
; point to FLASH program memory
; access FLASH program memory
; enable write to memory
; disable interrupts
; write 55h
; write AAh
; start program (CPU stall)
; re-enable interrupts
; loop until done
; disable write to memory
WRERR
BCLIP
BCLIF
BCLIE
RBIE
Bit 3
5.5.4
To protect against spurious writes to FLASH program
memory, the write initiate sequence must also be fol-
lowed.
(Section 19.0) for more detail.
5.6
See “Special Features of the CPU” (Section 19.0) for
details on code protection of FLASH program memory.
TMR0IF
WREN
LVDIP
LVDIF
LVDIE
Bit 2
FLASH Program Operation During
Code Protection
See
TMR3IP
TMR3IF
TMR3IE
PROTECTION AGAINST SPURIOUS
WRITES
INTF
Bit 1
WR
“Special
CCP2IP
CCP2IE
CCP2IF
RBIF
Bit 0
RD
PIC18FXX2
Features
--00 0000 --00 0000
0000 0000 0000 0000
0000 0000 0000 0000
0000 0000 0000 0000
0000 000x 0000 000u
xx-0 x000 uu-0 u000
---1 1111 ---1 1111
---0 0000 ---0 0000
---0 0000 ---0 0000
POR, BOR
Value on:
DS39564C-page 63
of
the
Value on
RESETS
All Other
CPU”

Related parts for PIC18F452-E/PT