Microchip PIC24HJ128GP510 Manual

Microchip Ikke kategoriseret PIC24HJ128GP510

Læs gratis den danske manual til Microchip PIC24HJ128GP510 (84 sider) i kategorien Ikke kategoriseret. Denne vejledning er vurderet som hjælpsom af 10 personer og har en gennemsnitlig bedømmelse på 4.8 stjerner ud af 5.5 anmeldelser. Har du et spørgsmål om Microchip PIC24HJ128GP510, eller vil du spørge andre brugere om produktet?

Side 1/84
© 2010 Microchip Technology Inc. DS70152H-page 1
dsPIC33F/PIC24H
1.0 DEVICE OVERVIEW
This document defines the programming specification
for the dsPIC33F 16-bit Digital Signal Controller (DSC)
and PIC24H 16-bit Microcontroller (MCU) families. This
programming specification is required only for those
developing programming support for the dsPIC33F/
PIC24H family. Customers using only one of these
devices should use development tools that already
provide support for device programming.
Topics covered include:
1.0 Device Overview ......................................................... 1
2.0 Programming Overview of the dsPIC33F/PIC24H ...... 1
3.0 Device Programming – Enhanced ICSP ..................... 8
4.0 The Programming Executive ..................................... 19
5.0 Device Programming – ICSP .................................... 28
6.0 Programming the Programming Executive
to Memory ................................................................. 45
7.0 Device ID................................................................... 50
8.0 AC/DC Characteristics and Timing Requirements .... 54
Appendix A: Hex File Format .............................................. 57
Appendix B: Device ID Register Silicon Errata Addendum . 58
Appendix C: Diagnostic and Calibration Registers ............. 59
Appendix D: Checksum Computation ................................. 61
Appendix E: Revision History.............................................. 74
2.0 PROGRAMMING OVERVIEW
OF THE dsPIC33F/PIC24H
There are two methods of programming the dsPIC33F/
PIC24H family of devices discussed in this
programming specification. They are:
In-Circuit Serial Programming™ (ICSP™)
programming capability
Enhanced In-Circuit Serial Programming
The ICSP programming method is the most direct
method to program the device; however, it is also the
slower of the two methods. It provides native, low-level
programming capability to erase, program and verify
the chip.
The Enhanced ICSP protocol uses a faster method that
takes advantage of the programming executive, as
illustrated in . The programming executiveFigure 2-1
provides all the necessary functionality to erase,
program and verify the chip through a small command
set. The command set allows the programmer to
program the dsPIC33F/PIC24H Programming
Specification devices without having to deal with the
low-level programming protocols of the chip.
FIGURE 2-1: PROGRAMMING SYSTEM
OVERVIEW FOR
ENHANCED ICSP™
This specification is divided into major sections that
describe the programming methods independently.
Section 3.0 “Device Programming Enhanced
ICSP” describes the Enhanced ICSP method.
Section 5.0 “Device Programming ICSP”
describes the ICSP method.
2.1 Power Requirements
All devices in the dsPIC33F/PIC24H family are dual
voltage supply designs: one supply for the core and
another for the peripherals and I/O pins. A regulator is
provided on-chip to alleviate the need for two external
voltage supplies.
All of the dsPIC33F/PIC24H devices power their core
digital logic at a nominal 2.5V. To simplify system
design, all devices in the dsPIC33F/PIC24H
Programming Specification family incorporate an
on-chip regulator that allows the device to run its core
logic from VDD.
The regulator provides power to the core from the other
VDD pins. A low-ESR capacitor (such as tantalum) must
be connected to the VCAP pin (Figure 2-2). This helps
to maintain the stability of the regulator. The
specifications for core voltage and capacitance are
listed in Section 8.0 “AC/DC Characteristics and
Timing Requirements”.
dsPIC33F/PIC24H
Programmer Programming
Executive
On-Chip Memory
dsPIC33F/PIC24H Flash Programming Specification
dsPIC33F/PIC24H PROGRAMMING SPECIFICATION
DS70152H-page 2 © 2010 Microchip Technology Inc.
FIGURE 2-2: CONNECTIONS FOR THE
ON-CHIP REGULATOR
2.2 Program Memory Write/Erase
Requirements
The program Flash memory on the dsPIC33F/PIC24H
has a specific write/erase requirement that must be
adhered to, for proper device operation. The rule is that
any given word in memory must not be written without
first erasing the page in which it is located. Thus, the
easiest way to conform to this rule is to write all the data
in a programming block within one write cycle. The
programming methods specified in this document
comply with this requirement.
2.3 Pins Used During Programming
The pins that are used for programming are listed in
Table 2-1.
TABLE 2-1: PINS USED DURING PROGRAMMING
Note 1: These are typical operating voltages. Refer
to TABLE 8-1: “AC/DC Characteristics
and Timing Requirements” for the full
operating ranges of VDD and VCAP.
2: It is important for the low-ESR capacitor to
be placed as close as possible to the V
CAP
pin.
VDD
VCAP
VSS
dsPIC33F/PIC24H
CEFC
3.3V
Note: A program memory word can be
programmed twice before an erase, but
only if (a) the same data is used in both
program operations or (b) bits containing
1’ are set to ‘0’ but no0’ is set to 1’.
Note: Refer to the specific device data sheet for
complete pin diagrams of the dsPIC33F/
PIC24H devices.
Pin Name
During Programming
Pin Name Pin Type Pin Description
MCLR MCLR P Programming Enable
VDD and AVDD(1) VDD P Power Supply
VSS and AVSS(1) VSS P Ground
VCAP CAPV P CPU Logic Filter Capacitor Connection
PGEC1 PGEC1 I Primary Programming Pin Pair: Serial Clock
PGED1 PGED1 I/O Primary Programming Pin Pair: Serial Data
PGEC2 PGEC2 I Secondary Programming Pin Pair: Serial Clock
PGED2 PGED2 I/O Secondary Programming Pin Pair: Serial Data
PGEC3 PGEC3 I Tertiary Programming Pin Pair: Serial Clock
PGED3 PGED3 I/O Tertiary Programming Pin Pair: Serial Data
Legend: I = Input O = Output P = Power
Note 1: All power supply and ground pins must be connected, including analog supplies (AVDD) and ground
(AV ).SS


Produkt Specifikationer

Mærke: Microchip
Kategori: Ikke kategoriseret
Model: PIC24HJ128GP510

Har du brug for hjælp?

Hvis du har brug for hjælp til Microchip PIC24HJ128GP510 stil et spørgsmål nedenfor, og andre brugere vil svare dig