|
Description:
This method indicated in the specifications of Microchip has the
advantage of being four times but quick
(for example 15 sg. a dsPic30F6014 with the memory full flash), since it
uses an internal firmware that executes the own microcontrolador so that the
protocol is a lot but simple.
It will be we very useful to be able to purify our codes without investing a lot
of time so that they are programmed.
The same one you car reprograms, for it is necessary to load him previously the
necessary executive code.
This code was in an area outside of the program memory, it will be transparent
and it won't be necessary to reserve memory neither registrations for such an
end neither to keep it in mind when designing our programs.
The area in that we will load the executive code is starting from the address
reserved 0x800000 for such a purpose.
This method uses the same programming lines that with the normal way, it
Dates, Clock, Mclr, having the advantage of being able to use the two ways
without changes in our the hardware, neither the inconveniences of using
the I modulate UART like the DownLoader, and
without depending on the clock used the
program since he/she runs under its internal oscillator it is which is the
one that we use in our hardware.
The firmware necessary code hex is in the folder of installation of WinPic800 ->
ICSP_EC. "
The corresponding names for each series are:
-
WPEC_dsPIC30F.hex
-
WPEC_dsPIC33F.hex
-
WPEC_PIC24H.hex
-
WPEC_PIC24F.hex
We will open the File hex corresponding to the device and we will record it
to the PIC/dsPIC with the normal method. This Code was always resident
although we erase the device. .
Once engraving can proceed to verify if this available one, to check "ICSP
Mode" and pressing "Detect Device." We
will leave "ICSP Mode"
while we use it, we will disable it to return to the normal way as it suits
us.
Next we will enter in "Sofware Settings" and we
will choose in the area that we want to use.
- Chip Erase
- it Always erased everything
- Code
-
- Data
- If this not mark, will respect its content without recording it
every time
- Configuration - it is Only
necessary the first time or when we modify them in our program
- Limitations:
We won't be able to use and we will have to leave for defect some
configuration bits that would impede their programming.
Logically those that protect the writing of the code won't be able to them to
use.
Not to forget to maintain a correct feeding with the maker's maximum and
minimum specifications.
An image of each series with the state of the configuration bits.
The marked ones should stay like it is indicated, the rest to the user's
necessities.
Serie dsPIC30F

|
| Series dsPIC33F / PIC24H
 |

|
|
Serie PIC24F

If for some reason you programs some bit of the
suitable ones in an incorrect state and he got lost the
communication,single erasing the device
it
will be enough to recover it .
|
|