Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC18LC658-E/CL Datasheet(PDF) 69 Page - Microchip Technology

Part # PIC18LC658-E/CL
Description  High-Performance Microcontrollers with CAN Module
PDF  366 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18LC658-E/CL Datasheet(HTML) 69 Page - Microchip Technology

Back Button PIC18LC658-E/CL Datasheet HTML 65Page - Microchip Technology PIC18LC658-E/CL Datasheet HTML 66Page - Microchip Technology PIC18LC658-E/CL Datasheet HTML 67Page - Microchip Technology PIC18LC658-E/CL Datasheet HTML 68Page - Microchip Technology PIC18LC658-E/CL Datasheet HTML 69Page - Microchip Technology PIC18LC658-E/CL Datasheet HTML 70Page - Microchip Technology PIC18LC658-E/CL Datasheet HTML 71Page - Microchip Technology PIC18LC658-E/CL Datasheet HTML 72Page - Microchip Technology PIC18LC658-E/CL Datasheet HTML 73Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 69 / 366 page
background image
 2000 Microchip Technology Inc.
Advanced Information
DS30475A-page 69
PIC18CXX8
5.2.2.1
Long Write Operation
The long write is what actually programs words of data
into the internal memory. When a TBLWT to the MSB of
the write block occurs, instruction execution is halted.
During this time, programming voltage and the data
stored in internal latches is applied to program memory.
For a long write to occur:
1.
MCLR/VPP pin must be at the programming
voltage
2.
LWRT bit must be set
3.
TBLWT
to the address of the MSB of the write
block
If the LWRT bit is clear, a short write will occur and pro-
gram memory will not be changed. If the TBLWT is not
to the MSB of the write block, then the programming
phase is not initiated.
Setting the LWRT bit enables long writes when the
MCLR pin is taken to VPP voltage. Once the LWRT bit
is set, it can be cleared only by performing a POR or
MCLR Reset.
To ensure that the memory location has been well pro-
grammed, a minimum programming time is required.
The long write can be terminated after the program-
ming time has expired by a RESET or an interrupt.
Having only one interrupt source enabled to terminate
the long write, ensures that no unintended interrupts
will prematurely terminate the long write.
5.2.2.2
Sequence of Events
The sequence of events for programming an internal
program memory location should be:
1.
Enable the interrupt that terminates the long
write. Disable all other interrupts.
2.
Clear the source interrupt flag.
3.
If Interrupt Service Routine execution is desired
when
the
device
wakes,
enable
global
interrupts.
4.
Set LWRT bit in the RCON register.
5.
Raise MCLR/VPP pin to the programming
voltage, VPP.
6.
Clear the WDT (if enabled).
7.
Set the interrupt source to interrupt at the
required time.
8.
Execute the Table Write for the lower (even)
byte. This will be a short write.
9.
Execute the Table Write for the upper (odd) byte.
This will be a long write. The controller will HALT
while programming. The interrupt wakes the
controller.
10. If GIE was set, service the interrupt request.
11. Go to 7 if more bytes to be programmed.
12. Lower MCLR/VPP pin to VDD.
13. Verify the memory location (table read).
14. Reset the device.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com