Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

PIC18C242-E/SP Datasheet(PDF) 57 Page - Microchip Technology

Part # PIC18C242-E/SP
Description  High-Performance Microcontrollers with 10-Bit A/D
PDF  296 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18C242-E/SP Datasheet(HTML) 57 Page - Microchip Technology

Back Button PIC18C242-E/SP Datasheet HTML 53Page - Microchip Technology PIC18C242-E/SP Datasheet HTML 54Page - Microchip Technology PIC18C242-E/SP Datasheet HTML 55Page - Microchip Technology PIC18C242-E/SP Datasheet HTML 56Page - Microchip Technology PIC18C242-E/SP Datasheet HTML 57Page - Microchip Technology PIC18C242-E/SP Datasheet HTML 58Page - Microchip Technology PIC18C242-E/SP Datasheet HTML 59Page - Microchip Technology PIC18C242-E/SP Datasheet HTML 60Page - Microchip Technology PIC18C242-E/SP Datasheet HTML 61Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 57 / 296 page
background image
PIC18CXX2
© 7/99 Microchip Technology Inc.
Preliminary
DS39026B-page 57
5.2.2.1
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 volt-
age
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 prema-
turely 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 inter-
rupts.
4.
Set LWRT bit in the RCON register.
5.
Raise MCLR/VPP pin to the programming volt-
age, 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 go to
sleep while programming. The interrupt wakes
the controller.
10. If GIE was set, service the interrupt request.
11. Lower MCLR/VPP pin to VDD.
12. Verify the memory location (table read).



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