MX PIC24F Educational Module User Manual

MX PIC24F Educational Module
User Manual
Revision History
Date
2011-03-29
Description
Initial release.
MX PIC24F Educational Module User Manual
Table of Contents
1. Introduction................................................................................ 3 1.1. Package Contents................................................................................. 3 1.2. Key Hardware Features ......................................................................... 4 2. Hardware Features ..................................................................... 5 2.1. Programmer/Debugger USB Connector.................................................... 5 2.2. Programmer/Debugger Status LED’s ....................................................... 5 2.3. EEPROM SPI Memory ............................................................................ 5 2.4. Optional RAM SPI Memory ..................................................................... 6 2.5. 32KHz Timing Crystal ........................................................................... 6 2.6. PIC24FJ256GB110 16-Bit Microcontroller ................................................. 6 2.7. MX Interface Connectors ....................................................................... 7 2.7.1. Module Specific Pinout ............................................................................................................................................. 7 Appendix A :: Schematics.................................................................. 9 List of Tables
Table 1 :: ICSP Status LED Description........................................................................................................................................................ 5 Table 2 :: Microcontroller MX Signal Pinout............................................................................................................................................. 8 List of Figures
Figure 1 :: MX PIC24F Educational Module Features__________________________________________________________________ 4 Figure 2 :: Module Schematics __________________________________________________________________________________________ 9 2011-03-29
Stratford Digital Incorporated
www.stratforddigital.com/mx
Page 2 of 10
MX PIC24F Educational Module User Manual
1. Introduction
Thank you for purchasing the MX PIC24F Educational Module. This module, when combined
with the MX Educational Target, provides a powerful, low-cost, development environment.
This environment is equally useful to beginners just starting out or to professionals who
require a rapid prototyping environment.
The MX PIC24F Educational Module includes an on-board circuit that is a licensed
programmer/debugger based on the PICkit3 from Microchip. This eliminates the need to
use an external debugger or programming device (PICkit3, ICD3, Real ICE, …).
The MX Module series is a family of compact (65x50mm), robust, pre-engineered modules.
A complete rapid prototyping environment is easily obtained when considering the off-theshelf targets available from Stratford Digital and complete functional firmware projects.
These modules are pre-engineered to be ready to insert into your end application. Unlike
most rapid prototyping system, engineering details like ESD, signal and power integrity, and
minimal power consumption are already designed in.
Each module in the MX Series conforms to this specification to allow for maximum interchanging between the modules. The mating board (called a target) will be able to accept
any module that conforms to this specification. This allows for the ability to scale
processing power, high-speed connectivity solutions, and memory resources by simply
switching out the module in the end application.
1.1. Package Contents
The MX PIC24F Educational Module will be shipped with the following items:
•
•
2011-03-29
MX PIC24F Educational Module ( p/n MX-MOD-PIC24F-EDU )
Warranty Certificate and Support Contact Information Sheet
Stratford Digital Incorporated
www.stratforddigital.com/mx
Page 3 of 10
MX PIC24F Educational Module User Manual
1.2. Key Hardware Features
The MX PIC24F Educational module includes these key features as indicated in Figure 1
(below):
1.
2.
3.
4.
5.
6.
7.
In-Circuit Serial Programming (ICSP) USB Connector
ICSP Status LED’s
EEPROM SPI Memory (256Kbit)
Optional RAM SPI Memory (256Kbit)
32KHz Timing Crystal
PIC24FJ256GB110 16-Bit Microcontroller
MX Interface Connectors (on bottom, not shown)
Figure 1 :: MX PIC24F Educational Module Features
2011-03-29
Stratford Digital Incorporated
www.stratforddigital.com/mx
Page 4 of 10
MX PIC24F Educational Module User Manual
2. Hardware Features
This section describes the key hardware features of this board as illustrated in Figure 1
(above).
2.1. Programmer/Debugger USB Connector
The MX PIC24F Educational Module includes an on-board circuit that is a licensed
programmer/debugger based on the PICkit3 from Microchip. A host PC running Microchip’s
MPLAB IDE (version 8.6 or later) can program or debug the PIC24F microcontroller directly
by connecting a USB cable from the PC to this USB connector. No external programmer or
debugger is required.
To use this port select in the MPLAB IDE select “Licensed Debugger” from the Debugger>Select Tool menu or Programmer->Select Programmer menu.
Note: In MPLAB v8.60 this port is labeled “PICkit3 On Board” in both the Debugger and
Programmer menus.
2.2. Programmer/Debugger Status LED’s
Table 1 (below) describes the functionality of the Programmer/Debugger Status LED’s.
LED
Signal
LD1
PWR
LD2
ACT
LD3
HALT
LD4
RST
Color Description
Indicates that the power is supplied to the licensed
Green
debugger/programmer via the USB port.
Indicates that the licensed debugger/programmer has connection
Green
to the PC USB port and the communication link is active.
Red
These LED’s indicate the current state of operation.
Red
Busy
Success
Error
Idle
LD4
ON
OFF
ON
OFF
LD3
ON
ON
OFF
OFF
Table 1 :: ICSP Status LED Description
2.3. EEPROM SPI Memory
A Microchip 25LC256 256Kbit EEPROM device is connected to the PIC24F microcontroller via
a SPI bus. With the Peripheral Pin Select (PPS) module this can be connected to any
2011-03-29
Stratford Digital Incorporated
www.stratforddigital.com/mx
Page 5 of 10
MX PIC24F Educational Module User Manual
internal SPI hardware module. The active-low chip select for this memory chip is connected
to pin RB14.
The PIC24F does not have any on-chip EEPROM memory so this external memory can be
used to store non-volatile data as required by the end application.
Other memory sizes are available. Contact Stratford Digital for custom memory
configuration on orders of 50+ modules.
2.4. Optional RAM SPI Memory
A Microchip 23K256 256Kbit RAM device (or equivalent) can be connected to the PIC24F
microcontroller via a SPI bus. This uses the same SPI bus microcontroller pins as the
EEPROM SPI Memory in Section 2.3 (above). The active-low chip select for this memory
chip is connected to pin RD7.
This memory can be used to extend the on-chip RAM memory for large data arrays. By
default, this part is not populated.
Other memory sizes are available. Contact Stratford Digital for custom memory
configuration on orders of 50+ modules.
2.5. 32KHz Timing Crystal
This crystal is connected to the microprocessor Secondary Oscillator pins. These pins can
directly clock both the TMR1 (Timer 1) and RTC (Real Time Clock) modules for very-low
power operating modes.
2.6. PIC24FJ256GB110 16-Bit Microcontroller
This microcontroller is the device that controls all of the module I/O and operation. It is
ideal for low power (<100nA standby current) and connectivity applications that benefit
from the availability of multiple serial ports (3xI2C, 3xSPI), 4xUARTS, and 23 independent
timers. Large amounts of RAM (16kB) memory for buffering and large (up to 256kB)
Enhanced Flash program memory make it ideal for embedded control and monitoring
applications. PPS (peripheral pin select) aids in configuring the most efficient pin
configuration of available I/O, and CTMU provides touch support for up to 64 individual
buttons. Supports USB 2.0 for device, Host, and OTG with a complete and free software
stack that includes a thumb drive application stack.
2011-03-29
Stratford Digital Incorporated
www.stratforddigital.com/mx
Page 6 of 10
MX PIC24F Educational Module User Manual
2.7. MX Interface Connectors
Like all MX Modules, the mechanical and electrical interface is described in the MX Interface
Specification Document found at www.stratforddigital.com/mx.
Off-board I/O lines as well as input and output power pins are available on the MX Interface
Connectors (J101 and J102). These connectors are on the bottom of the module and are
intended to connect to a target board that conforms to the MX Interface Specification.
2.7.1.
Module Specific Pinout
Table 2 (below) lists each I/O signal in the MX Interface connector and lists the specific
connection to the PIC24F microcontroller.
2011-03-29
MX Signal Name
Pin Function
PIC24F Microcontroller
Port Name
QFP100 Pin
AN_CH0
AN_CH1
AN_CH2
AN_CH3
AN_CH4
AN_CH5
AN_REFAN_REF+
CAN1_RX
CAN1_TX
CAN2_RX
CAN2_TX
DIG0
DIG1
DIG2
DIG3
DIG4
DIG5
DIG6
DIG7
I2C1_SCL
I2C1_SDA
I2C2_SCL
I2C2_SDA
PGC
PGD
PMP_A0
PMP_A1
PMP_AD0
PMP_AD1
PMP_AD2
PMP_AD3
PMP_AD4
PMP_AD5
PMP_AD6
PMP_AD7
PMP_CS1
PMP_CS3
AN0
AN1
AN2
AN3
AN4
AN8
VREFVREF+
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
SCL1
SDA1
SCL2
SDA2
--PMPA0
PMPA1
PMPD0
PMPD1
PMPD2
PMPD3
PMPD4
PMPD5
PMPD6
PMPD7
PMP_CS1
I/O
RB0
RB1
RB2
RB3
RB4
RB8
RA9
RA10
RF0
RF1
RG0
RG1
RE9
RC4
RC3
RC2
RC1
RG15
RG13
RG12
RA14
RA15
RA2
RA3
--RB15
RB14
RE0
RE1
RE2
RE3
RE4
RE5
RE6
RE7
RD11
RG14
25
24
23
22
21
32
28
29
87
88
90
89
19
9
8
7
6
1
97
96
66
67
58
59
--44
43
93
94
98
99
100
3
4
5
71
95
Stratford Digital Incorporated
www.stratforddigital.com/mx
Page 7 of 10
MX PIC24F Educational Module User Manual
PMP_RD
PMP_WR
PWM1
PWM2
PWM3
PWM4
QE1_INDX
QE1_QEA
QE1_QEB
QE1_UPD
QE2_INDX
QE2_QEA
QE2_QEB
QE2_UPD
SPI_MISO
SPI_MOSI
SPI_SCK
nSPI_CS2
nSPI_SS/CS1
TCK
TDI
TDO
TMS
U1_RX
U1_TX
nU1_CTS/U2_RX
nU1_RTS/U2_TX
U3_RX
U3_TX
nU3_CTS/U4_RX
nU3_RST/U4_TX
UNIO_SCIO
PMPRD
PMPWR
PPS I/O
PPS I/O
PPS I/O
PPS I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
PPS I/O
PPS I/O
PPS I/O
I/O
PPS I/O
TCK
TDI
TDO
TMS
PPS I/O
PPS I/O
PPS I/O
PPS I/O
PPS I/O
PPS I/O
PPS I/O
PPS I/O
I/O
RD5
RD4
RD0
RD1
RD2
RD3
RD12
RD8
RD9
RB11
RB9
RD13
RC15
RB10
RG7
RG8
RG6
RD6
RG9
RA1
RA4
RA5
RA0
RF2
RF8
RD14
RD15
RF12
RF13
RB12
RF4
RA6
82
81
72
76
77
78
79
68
69
35
33
80
64
34
11
12
10
83
14
38
60
61
17
52
53
47
48
40
39
41
49
91
Table 2 :: Microcontroller MX Signal Pinout
Pin Function Legend
PPS I/O :: can be configured using the Peripheral Pin Select (PPS) module to connect
directly to related hardware modules of the microcontroller
I/O :: connected to generic I/O pins for bit-banging software interfaces
2011-03-29
Stratford Digital Incorporated
www.stratforddigital.com/mx
Page 8 of 10
MX PIC24F Educational Module User Manual
Appendix A :: Schematics
Figure 2 (below) shows the schematic for the main processor circuitry.
Figure 2 :: Module Schematics
2011-03-29
Stratford Digital Incorporated
www.stratforddigital.com/mx
Page 9 of 10
MX PIC24F Educational Module User Manual
This manual and all MX Module documentation and related materials are
Copyright © 2011 Stratford Digital Incorporated
Stratford Digital Incorporated
Sebringville, Ontario, Canada
The Microchip name and logo, the Microchip logo, PIC, PICmicro, PIC32 logo, UNI/O, and
ICSP are registered trademarks of Microchip Technology Incorporated in the USA and other
countries.
All other trademarks mentioned herein are property of their respective companies.
2011-03-29
Stratford Digital Incorporated
www.stratforddigital.com/mx
Page 10 of 10