[elektro] PIC32 ICSP lábak

Pataki István pataki.istvan at freemail.hu
Thu Feb 6 11:13:36 CET 2014


http://ww1.microchip.com/downloads/en/DeviceDoc/61129F.pdf
PIC32MX Family Reference Manual
Section 33. Programming and Diagnostics

DS61129F-page 33-4
"Control of the programming process is achieved by manipulating PGC and MCLR. 
Entry into and exit from Programming mode involves applying (or removing) 
voltage to MCLR while supplying a code sequence to PGD and a clock to PGC. Any 
one of the PGCx/PGDx pairs can be used to enter programming."

DS61129F-page 33-5
"ICSP also provides a hardware channel for the In-Circuit Debugger (ICD)"
"In contrast with programming, only one of the ICSP ports may be used for ICD. 
If more than one ICSP port is implemented a Configuration bit determines which 
port is available. Depending on the particular PIC32MX family of device, there 
may be two or more ICSP ports that can be selected for this function. The active 
ICSP debugger port is selected by the ICESEL Configuration bit(s). For 
information on specific devices, refer to the appropriate device data sheet."

http://ww1.microchip.com/downloads/en/DeviceDoc/61145L.pdf?from=rss
PIC32 Flash Programming Specification
DS61145L-page 21

(Arra figyelj, hogy a DSnnnnnX verziója (X) melyik, mert elég nagy eltérések 
lehetnek!)

Üdv
pi

----- Original Message ----- 
From: "flaist" <flaist at gmail.com>
To: <elektro at tesla.hu>
Sent: Thursday, February 06, 2014 12:36 AM
Subject: Re: [elektro] PIC32 ICSP lábak


Hi!

Subject: Re: [elektro] PIC32 ICSP lábak

2014.02.05. 15:06 keltezéssel, Pataki István írta:
>> Még nem próbáltam, de az adatlap alapján úgy vettem, hogy teljesen
automatikus.
>> Amelyik lábpáron(!) megkapja a szekvenciát, az lesz a programozó bemenet.



>így van, viszont debugolni csak azon lehet, amelyiket  a configbitben
beállítanak

Köszi, ez logikus!
De hogy mondom meg debug esetén, hogy melyiket használom.
Egyébként ezt hol találtad leírva?

És most már értem miért kellet használni a PIC32MX7xx sorozatnál a
PGD2/PGC2-t.
Itt a 2xx sorozatnál viszont a PGC1/PGD1 a törlés utáni default.


Köszi FI.



More information about the Elektro mailing list