Home
dsPIC/PIC `Command Module` – Adapter Board
Contents
1. 79 IC5 RD12 80 IC6 CN19 RD13 47 IC7 HU1CTS CN20 RD14 48 IC8 HUIRTS CN21 RD15 66 INT3 RA14 67 INT4 RA15 72 OC1 RDO 76 OC2 RD1 77 OC3 RD2 78 OC4 RD3 81 OC5 CN13 RD4 82 OC6 CN14 RD5 83 OC7 CN15 RD6 84 OC8 UPDN CN16 RD7 63 OSC1 CLKIN RC12 64 OSC2 CLKO RC15 26 PGC1 EMUC1 AN6 OCFA RB6 74 PGC2 EMUC2 SOSCO T1CK CNO RC14 24 PGC3 EMUC3 AN1 CN3 RB1 27 PGD1 EMUD1 AN7 RB7 73 PGD2 EMUD2 SOSCI CN RC13 25 PGD3 EMUD3 ANO CN2 RBO 94 PWM1H RE1 93 PWM 1L REO 99 PWM2H RE3 98 PWM2L RE2 3 PWM3H RE5 100 PWMBL RE4 5 PWMA4H RE7 4 PWMAL RE6 96 RG12 97 RG13 95 RG14 1 RG15 55 SCK1 INTO RF6 10 SCK2 CN8 RG6 57 SCL1 RG2 58 SCL2 RA2 56 SDA RG3 59 SDA2 RA3 54 SDI1 RF7 11 SDI2 CN9 RG7 53 SDO1 RF8 12 SDO2 CN10 RG8 38 TCK RA1 60 TDI RA4 61 TDO RA5 17 TMS RAO 52 U1RX RF2 51 U1TX RF3 49 U2RX CN17 RF4 50 U2TX CN18 RF5 2 Vdd 16 Vdd 37 Vdd 46 Vdd 62 Vdd 86 Vdd 85 Vddcore 28 Vref RA9 29 Vref RA10 Electrocomponents plc Page 8 15 Vss 36 Vss 45 Vss 65 Vss 75 Vss 2 4 Backplane Signal Names and Connections Break Out Base Board Signal Name EDPCON1 EDPCON2 Connector CSO 53 amp 54 CS1 55 amp 56
2. 14 MCI PWR e PIO2 MCI DATO e PIO4 DATI e PIO6 MCI e 8 DAT3 e PI031 ADI2 GPI032 AD3 The EDP CM PIM with a PIM module fitted is designed to be a Command Module in the system When the module is used as a Command Module the operating voltage of the complete system needs to be decided via the link option JP101 This provides the back plane with the necessary voltage Vcc CM to instruct all the other modules that the system is either a 3 3V or 5 0V system i e The Analogue Module for example will provide signals up to 3 3V 5 0V accordingly This Vcc CM is also used by the RESET circuitry on the base board The RESET button will not work for example if this link is not made There are two possible positions for this jumper position 1 2 for 3 3V and position 2 3 for 5 0V Electrocomponents plc Normally the operating voltage of the PIM module PIC device will determine the operating voltage of the system Hence the selection jumper is altered accordingly depending on whether you use a 5 0V or 3 3V PIC device The Vcc CM line and operating voltage for the adapter board and the PIM module are usually the same They are connected via a zero ohm resistors R103 amp R201 It would be possible to de solder these resistors and to operate the PIM and adapter board at a different voltage to the Vcc CM line Some consideration would have to be
3. gt EVM10 GPIO68 ASCO CTS GPIO11 125 SDA 5 96 5 GPIO15 125 TX SDA 6 gt gt 9 6 38 TCK RA1 K fero24 07 GPIO13 125 ae RE 39 HU2RTS RF13 lt 600055 015 IGPIO7 125 40 HU2CTS RF12 lt gt gPlo26 06 E lt gt aE 41 AN12 RB12 GPIO27 AD14 1 615 42 AN13 RB13 gt gPlo28 ADS GPIO9 125 WS ee eee 43 AN14 RB14 K gt 61029 013 C 44 15 0 12 8815 lt gt gPio30 04 Electrocomponents 12 ANO AN1 AN2 AN3 AN4 AN10 RB10 AN11 RB11 AN20 FLTA INT1 RES JAN21 HFLTB INT2 RE9 ANS PGC3 EMUC3 AN1 CN3 RB1 AN6 AN8 AN9 MOTORPOH IMOTORPOL MOTORP1H MOTORP1L MOTORP2H MOTORP2L MOTORHO ENCO IMOTORH1_ENC1 MOTORH2_ENC2 IMOTORPWM EMG_TRAP IMOTOR_TCO_FB 25 PGD3 EMUD3 ANO CN2 RBO 32 AN8 RBS 33 AN9 RBS PWMAL REG PWMAH RE7 94 93 PWMIL RE 99 PWM2H 98 PWM2L RE GIy E PWM3H 100 PWM3L REA 20 ANS QEB CN7 RB5 21 AN4 QEA CN6 RB4 22 AN3 INDX CNS RB3 72 OC1 RDO 66 INT3 RA14 69 IC2 RD9 87 C1RX RFO
4. GPIO4 MCI DAT1 25 P603 17 5 125 TX WS 26 P603 19 GPIO6 MCI DAT2 27 P603 18 GPIO7 I2S RX CLK 28 P603 20 GPIO8 MCI DAT3 29 P603 22 9 125 RX WS 30 P603 21 GPIO10 MCI CLK 31 P603 23 GPIO11 125 SDA 32 P603 24 GPIO12 MCI 33 GPIO13 125 TX CLK 34 P603 25 GPIO14 PWR 35 P603 2 GPIO15 125 TX SDA 36 P603 8 GPIO24_AD7 45 P602 8 GPIO25 AD15 46 P601 0 GPIO26 AD6 47 P602 9 GPIO27 AD14 48 P601 1 GPIO28 AD5 49 P602 0 GPIO29 AD13 50 P601 2 GPIO30_AD4 51 P602 1 GPIO31_ADI2 52 P601 3 GPIO32_AD3 53 P602 2 GPIO33 AD11 54 P601 4 GPIO34 AD2 55 P602 3 GPIO35 AD10 56 P601 5 GPIO36 AD1 57 P602 4 GPI037_AD9 58 P601 6 GPIO38 ADO 59 P602 5 GPIO39 AD8 60 P601 7 2 GENO SCL 7 amp 8 P603 29 I2C GENO SDA 5 amp 6 P603 28 I2C GEN1 SCL 119 P602 45 2 GEN1 SDA 117 P602 44 IRQ GPIO16 CNTRL I2C INT 37 P603 11 IRQ GPIO18 2 GENO INT 39 P603 10 IRQ GPIO20 I2C GEN1 INT 41 P603 9 IRQ GPIO22 I2C INT 43 P602 7 MOTOR TCO FB 122 P601 48 MOTORHO ENCO 116 P601 45 MOTORH1 ENC1 118 P601 46 MOTORH2 ENC2 120 P601 47 MOTORPOH 102 P601 38 MOTORPOL 100 P601 37 MOTORP1H 106 P601 40 MOTORP1L 104 P601 39 MOTORP2H 110 P601 42 MOTORP2L 108 P601 41 MOTORPWM 112 P601 43 P603 46 P603 46 Electrocomponents plc Page 11 P603 46 P603 46 SPI SSC 5 55 101 P602 36 SPI SSC CLK 98 P601 36 SPI SSC MRST MISO 94 P601 34 SPI SSC MTSR MOSI 96 P601 35 P603 39 P603 38 P603 3
5. 125 RX SDA GPIO13 125 TX CLK GPIO15 125 SDA GPIO24 AD7 GPIO25 AD15 GPIO26 AD6 GPIO27 AD14 GPIO28 AD5 GPIO29 AD13 GPIO30_AD4 GPIO31 ADI2 GPIO32 AD3 GPIO33 AD11 GPIO34 AD2 GPIO35 AD10 GPIO36 AD1 GPIO10 MCI GPIO12 MCI Electrocomponents plc Page 6 GPIO14 MCI PWR GPIO2 MCI DATO GPIO4 MCI DATI GPIO6 MCI DAT2 GPIO8 MCI DAT3 MOTORPOH MOTORPOL MOTORP1H MOTORP1L MOTORP2H MOTORP2L MOTORHO ENCO MOTORH1_ENC1 MOTORH2_ENC2 MOTORPWM EMG_TRAP MOTOR_TCO_FB 2 3 Alphabetical Listing of MCU Pins Pin Alphabetical Pin Function 13 MCLR 14 SS2 CN11 RG9 40 U2CTS RF12 39 HU2RTS RF13 23 AN2 SS1 CN4 RB2 22 AN3 INDX CN5 RB3 21 AN4 QEA CN6 RB4 20 AN5 QEB CN7 RB5 32 AN8 RB8 33 AN9 RB9 34 AN10 RB10 35 AN11 RB11 41 AN12 RB12 42 AN13 RB13 43 AN14 RB14 44 AN15 OCFB CN12 RB15 AN16 T2CK T7CK RC1 AN17 T3CK T6CK RC2 AN18 TACK T9CK RC3 AN19 T5CK T8CK RC4 18 AN20 FLTA INT1 RE8 19 AN21 FLTB INT2 RE9 91 AN22 CN22 RA6 92 AN23 CN23 RA7 30 Avdd 31 Avss 87 C1RX RFO 88 C1TX RF1 90 C2RX RGO 89 C2TX RG1 68 IC1 RD8 69 IC2 RD9 70 IC3 RD10 71 ICA RD11 Electrocomponents plc Page 7
6. 4 PWMAL RE6 AN8 5 PWMAH RE7 AN9 6 AN16 T2CK T7CK RC1 GPIO2 MCI DATO 7 AN17 T3CK T6CK RC2 GPIO4 MCI DAT1 8 AN18 TACK T9CK RC3 GPIO6 MCI DAT2 9 AN19 T5CK T8CK RC4 GPIO8_MCI_DAT3 10 SCK2 CN8 RG6 SPI SSC CLK 11 SDI2 CN9 RG7 SPI 55 MTSR MOSI 12 SDO2 CN10 RG8 SPI SSC MRST MISO 13 HMCLR Electrocomponents plc Page 3 14 SS2 CN11 RG9 SPI_SSC_ CS_NSS 15 Vss 16 Vdd 17 TMS RAO GPIO10_MCI_CLK 18 AN20 FLTA INT1 RE8 AN2 19 AN21 FLTB INT2 RE9 AN3 20 AN5 QEB CN7 RB5 MOTORHO ENCO 21 AN4 QEA CN6 RB4 MOTORH1 ENC1 22 AN3 INDX CN5 RB3 MOTORH2 ENC2 23 AN2 SS1 CN4 RB2 CNTRL_SPI_ CS_NSS 24 PGC3 EMUC3 AN1 CN3 RB1 2 link options AN4 2 link options Local EMUC 25 PGD3 EMUD3 ANO CN2 RBO 2 link options AN5 2 link options Local EMUD 26 PGC1 EMUC1 AN6 OCFA RB6 2 link options GPIO33 AD11 2 link options Local EMUC 27 PGD1 EMUD1 AN7 RB7 2 link options GPIO34 AD2 2 link options Local EMUD 28 Vref RA9 GPIO14 MCI 29 Vref RA10 GPIO12 MCI CMD 30 Avdd 31 Avss 32 8 8 AN6 33 AN9 RB9 AN7 34 AN10 RB10 ANO 35 AN11 RB11 AN1 36 Vss 37 Vdd 38 TCK RA1 GPIO24 AD7 39 U2RTS RF13 GPIO25_AD15 40 U2CTS RF12 GPIO26 AD6 41 AN12 RB12 GPIO27 AD14 42 AN13 RB13 GPIO28 AD5 43 AN14 RB14 GPIO29 AD13 44 AN15 OCFB CN12 RB15 GPIO30_AD4 45 Vss 46 Vdd 4
7. CS2 57 amp 58 53 59 amp 60 HPSEN 51 amp 52 HRD 45 amp 46 P603 26 P603 27 WR 47 amp 48 WRH 49 amp 50 P603 47 P603 47 P603 47 P603 47 P603 48 P603 48 P603 48 P603 48 P603 44 P603 44 P603 44 P603 42 P603 45 P603 45 P603 45 AO_ADO 41 amp 42 A1 AD1 39 amp 40 A2 AD2 37 amp 38 A3_AD3 35 amp 36 A4 ADA 33 amp 34 A5 AD5 31 amp 32 A6 AD6 29 amp 30 7 AD7 27 amp 28 A8_AD8 25 amp 26 A9_AD9 23 amp 24 A10_AD10 21 amp 22 A11_AD11 19 amp 20 A12_AD12 17 amp 18 A13_AD13 15 amp 16 A14_AD14 13 amp 14 A15_AD15 11 amp 12 ALE 43 amp 44 ANO 3 P603 2 AN1 4 P603 6 AN2 5 P603 1 AN3 6 P603 5 ANA 7 P602 2 AN5 8 P602 4 AN6 9 P602 1 Electrocomponents plc Page 9 AN7 10 P602 3 AN8 11 P601 2 AN9 12 P601 4 AN10 13 P601 1 AN11 14 P601 3 AN12 15 P603 4 AN13 16 P602 6 AN14 17 P603 3 AN15 18 P602 5 ASCO RX TTL 89 P602 30 ASCO TX TTL 91 P602 31 5 1 RX TTL 93 P602 32 5 1 RX TTL ASCO DSR 99 P602 35 5 1 TX TTL 95 P602 33 5 1 TX TTL ASCO DTR 97 P602 34 CANO RX 61 amp 62 CANO TX 63 amp 64 1 RX 121 P602 46 1 TX 123 P602 47 CANHO 89 amp 90 P603 40 CANLO 91 amp 92 P603 41 CNTRL I2C SCL 79 amp 80 P603 35 CNTRL I2C SDA 77 amp 78 P603 34 CNTRL_SPI_
8. CS_NSS 75 amp 76 P603 33 CNTRL SPI CLK 69 amp 70 P603 30 CNTRL SPI MRST 71 amp 72 P603 31 CNTRL_SPI_MTSR 73 amp 74 P603 32 CPU DACOO GPIO17 38 P603 7 CPU DACO1 GPIO19 40 P601 7 EMG TRAP 114 P601 44 ETH LNK LED 111 P602 41 RX 109 P602 40 RX LED 113 P602 42 ETH_RX 107 P602 39 ETH_SPD_LED 115 P602 43 ETH TX 105 P602 38 ETH_TX 103 P602 37 EVGO_GPIO40 61 P602 16 EVG1 GPIO42 63 P602 17 EVG2 GPIO44 65 P602 18 EVG3 GPIO46 67 P602 19 EVG4_GPI048 69 P602 20 EVG5_GPIO50 71 P602 21 EVG6_GPIO52 73 P602 22 EVG7_GPIO54 75 P602 23 EVG8 GPIO56 77 P602 24 EVG9 GPIO57 78 P601 26 EVG10 GPIO58 79 P602 25 EVG11 GPIO59 80 P601 27 EVG12 GPIO60 81 P602 26 EVG13 GPIO61 82 P601 28 EVG14 GPIO62 83 P602 27 EVG15 GPIO63 84 P601 29 EVG16 GPIO64 85 P602 28 EVG17 GPIO65 86 P601 30 EVG18 GPIO66 87 P602 29 EVG19 GPIO67 88 P601 31 EVG20 GPIO69 ASCO RTS 92 P601 33 EVMO_GPIO21 42 P601 EVM1 GPIO23 44 P601 9 EVM2 GPIO41 CAPADC 62 P601 18 Electrocomponents plc Page 10 GPIO43 64 P601 19 EVMA GPIO45 66 P601 20 EVM5_GPIO47 68 P601 21 EVM6 GPIO49 70 P601 22 EVM7 GPIO51 72 P601 23 EVM8_GPIO53 74 P601 24 EVM9_GPIO55 76 P601 25 EVM10 GPIO68 ASCO CTS 90 P601 32 GPIOO 21 P603 13 GPIO1 22 P603 15 GPIO2 MCI DATO 23 P603 14 GPIO3 24 P603 16
9. IDCGEN1 SCL 2CGENT_SDA CNTRL 2C SCL A 3 CANO Rx a 1P204 GPIO35 AD10 ES e GPIO36 AD1 L gt X 88 CATX RF1 58 SCL2 RA2 59 SDA2 RA3 57 SCL1 RG2 56 SDA RG3 Jumper Options TU rn n CO C JP216 3 PIM VAVDD 2 AN REF SGND R104 VAGND 5 3 3V JP101 50V 52 U1RX RF2 51 U1TX RF3 49 U2RX CN17 RF4 50 U2TX CN18 RF5 23 gt 2 4551 4 882 55 Da CK1 INTO RFG 54 SDI1 RF7 53 SDO1 RF8 14 HSS2 CN11 RG9 10 CK2 CN8 RG6 11 a DI2 CN9 RG7 12 SDO2 CN10 RG8 17 TMS RAO 29 Vref RA10 Vref RA9 AN16 T2CK T7CK RC1 AN17 T3CK T6CK RC2 AN18 TACK T9CK RC3 v Joo r o AN19 TSCK T8CK RC4 89 C2TX RG1 90 C2RX RGO Vcc CM Command module Voltage Selection Jumper JP101 R103 JP215 JP213 RESET VCC_CM TTL TTL ASC1 TTL ASA TX TTL CNTRL SPI amp CS 55 CNTRL SPI CNTRL SPI MISR CNTRL_SPI_MRST SPI_SSC_ CS_NSS SPI SSC CLK SPI SSC MOSI SPI 55 MISO ay PIO10 MCI CLK e PI012 MCI CMD e
10. JP211 option open I2STX CLK is not connected DEFAULT I2STX WS is not connected DEFAULT Table 05 I2S selection jumpers JP202 amp JP211 options It is worth checking that if other modules are using I2S which lines are being used CAN Bus Jumper Option JP204 amp JP209 The jumper options can used to route the CAN Tx and CAN Rx signals from the PIC dsPIC on to the backplane These signals can then be converted to physical layer signals via a communications module If the CAN bus is not being used or the PIC does not support CAN bus then these signals can be used for other purposes JP204 options 1 2 PIM pin 87 is routed to CAN TX on backplane JP209 options 1 2 PIM pin 88 is routed to CAN RX on backplane JP204 options 2 3 pin 87 is routed to GPIO35 AD10 JP209 options 2 3 PIM pin 88 is routed to GPIO36 AD1 JP204 option open PIM pin 87 is not connected DEFAULT JP209 option open PIM pin 88 is not connected DEFAULT Table 06 CAN Bus selection 204 amp JP209 options Electrocomponents plc Page 17 USB Link Options JP212 JP213 JP214 JP215 The RS EDP is equipped with several lines for USB communication including a separate USB host and a separate general USB The PIM module can have access to both of these signals via connections present on the adapter board JP212 option 1 2 PI
11. Microchip PIM modules from the 8 bit PIC16Cxx family through to the 16bit dsPIC family and the new 32bit PIC32 family The PIM modules are available to order directly from the RS website and are separately listed in the catalogue from the RS EDP platform The adapter board is configured as a Command Module The Command Module in a system dictates whether the whole system is a 3 3V one or a 5 0V one The module has a link option which decides which of the two voltages is used within the system The Vcc CM line is set to this level by the link option on this adapter module This Vcc CM is used as a reference by the other modules such as the analogue module for example The daughter board remaps the 1 0 of the PIM module on to the backplane of the RS EDP system As the RS EDP system has a similar concept to the PIM module system from Microchip you will find most of the PIM modules will correctly map out to the RS EDP backplane During the development of this board several devices were chosen for trial fits to the RS EDP system These included the dsPIC33FJ256MC710 the dsPIC33FJ256GP710 and the PIC32Mx4xxFxxxL devices 2 Mapping 2 1 MCU Pin Allocation The MCU pins have been allocated to the backplane as follows dsPIC33FJ256MC710 RS EDP BASE BOARD Pin Name Comment Name 1 RG15 2 link options GPIO5 125 TX WS 2 link options GPIO9 125 RX WS 2 Vdd 3 PWM3H RE5 MOTORP2H
12. board and the modules The software was written and developed using MPLAB Version 8 14 and the C30 compiler from Microchip These are available to download free of charge from Microchips web site although some registration is required to obtain the compiler The software drivers allow the user to read signals from most of the popular peripheral boards and also to control the motors for the MC2 module These modules can be tested via a test menu which will require the use of the Communications Module and a terminal emulator for the host PC The configuration of the terminal emulator is as follows The serial configuration at the time of writing this support documents is as follows Check the C source code to see if this has changed since this document was written Baud rate 115 200 baud Data bits 8 Stop bits 1 Parity None Flow control None Start MPLAB and open up the MPLAB project dsPIC33FJ256MC710 General Plug in the emulator programmer into the PIM adapter board and attempt to connect to it Try starting with the Real ICE connected as a programmer and selected for Release rather than Debug Recompile the code and ensure all of your paths are correct for the project and then attempt to flash the board The fuse options you have selected may be important at this stage and make sure you have the correct oscillator selections and the correct debug programmer setting for the fuse options For the dsPIC menti
13. option populated The Vcc adapter voltage is connected to the on the module DEFAULT R202 option removed The supply voltage for the adapter board is disconnected from the PIM module Table 12 Adapter board voltage to PIM voltage connection R201 Main Oscillator Selections R202 R203 R204 The main oscillator on the PIC dsPIC devices can be selected as either an internal RC oscillator an external Xtal resonator type or an external clock module The adapter board has been designed to accommodate all of these options To use the internal RC oscillator the zero ohm links R203 and R204 need to be removed To use an external crystal or ceramic oscillator then the zero ohm links R202 R203 need to be populated To use an external clock oscillator module the module needs to be soldered on to the board R203 and R204 should be removed Clock Type R202 R203 R204 External Xtal DEFAULT Removed Populated Populated External Clock module Don t care Removed Removed Internal RC Don t care Removed Removed Table 13 Main Oscillation Selection Links Electrocomponents plc Page 20 Hardware Setup Select the appropriate jumper and link options for your design and then insert your PIM module into the adapter board Once inserted plug the adapter board into the RS EDP base board along with the Communication Module The communications board is fitted with a nine way D c
14. 7 P603 36 P601 P601 P603 43 P603 43 P603 43 2 5 Mapping Aids GPlo33 AD11 p203 1 26 PGCi EMUCI ANG OCFA RBG p 76 OC2 RDi 5 EVGO GPIO40 77 OC3 RD2 lt gt GPIo42 Local Debug EMUC 78 OCA4 RD3 2 044 81 OCS CN13 RD4 Eve3 GPIO46 GPIO34 2 20208 82 OC6 CN14 RDS lt gt evca GPlo48 1 27 PGDi EMUD1 AN7 RB7 C 83 OC7 CN15 RD6 lt gt 65 GPIO50 lt gt Local Debug EMUD 84 OCB UPDN CN16 RD7 EVG6_GPIO52 60_ TDI RA4 lt gt Ev67_6PIO54 3 61 TDO RAS lt gt leves GPIO56 uon JP205 48 ICB SU1RTS CN21 RD15 lt gt Ev620 GPIO69 5 RTS ow 73 PGD2 EMUD2 SOSCI CN RC13 3 Local 32kHz Clock 79 IC5 RD12 6 gt EVM2 GPIO41 CAPADC F 80 IC6 CN19 RD13 lt gt EvMa GPIO43 cPlo1 206 91 AN22 CN22 RAG EVM4 045 l M HUI 74 PGC2 EMUC2 SOSCO T1CK CNO RC14 92 AN23 CN23 RA7 K gt EvMs GPIO47 EEG 67 15 lt gt EVM6 6 049 68 1 808 gt gt 61051 2 70 IC3 RD10 K gt 8 GPIO53 71 _ IC4 RD11 lt gt evm GPIO55 47 _ IC7 HU1CTS CN20 RD14
15. 7 1C7 H U1CTS CN20 RD14 EVM10_GPIO68_ASCO_CTS 48 IC8 U1RTS CN21 RD15 EVG20_GPIO69_ASCO_RTS 49 U2RX CN17 RF4 ASC1_RX_TTL 50 U2TX CN18 RF5 ASC1_TX_TTL 51 U1TX RF3 ASCO_TX_TTL 52 U1RX RF2 ASCO RX TTL 53 SDO1 RF8 CNTRL SPI MRST 54 SDI1 RF7 CNTRL SPI MTSR 55 SCK1 INTO RF6 CNTRL SPI CLK 56 SDA RG3 CNTRL I2C SDA 57 SCL1 RG2 CNTRL I2C SCL 58 SCL2 RA2 I2CGEN1 SCL 59 SDA2 RA3 I2CGEN1 SDA 60 TDI RA4 EVG7_GPIO54 61 TDO RA5 EVG8 GPIO56 62 Vdd 63 OSC1 CLKIN RC12 Not applicable 64 OSC2 CLKO RC15 Not applicable 65 Vss 66 INT3 RA14 EMG_TRAP 67 INT4 RA15 EVM6 GPIO49 68 IC1 RD8 EVM7 GPIO51 69 IC2 RD9 MOTOR TCO FB Electrocomponents plc Page 4 70 IC3 RD10 EVM8_GPIO53 71 1C4 RD11 EVM9_GPIO55 72 OC1 RDO MOTORPWM 73 PGD2 EMUD2 SOSCI CN RC13 2 link options GPIOO 2 link options local 32kHz sub clock 74 PGC2 EMUC2 SOSCO T1CK CNO RC14 2 link options GPIO1 2 link options local 32kHz sub clock 75 Vss 76 OC2 RD1 EVGO GPIO40 77 OC3 RD2 EVG1 042 78 OC4 RD3 EVG2_GPIO44 79 IC5 RD12 EVM2 GPIO41 CAPADC 80 1C6 CN19 RD13 EVM3 GPIO43 81 OC5 CN13 RD4 EVG3_GPI046 82 OC6 CN14 RD5 EVG4 GPIO48 83 OC7 CN15 RD6 EVG5 GPIO50 84 OC8 UPDN CN16 RD7 EVG6 GPIO52 85 Vddcore Not applicable 86 Vdd 87 C1RX RFO 2 link options CANO_RX 2 link options GPIO35_AD10 88 C1TX RF1 2 link options CANO_TX 2 link options GPIO36 AD1 89 C2T
16. GEN OFF bitl5 bit8 always set to l s F P Pi bit7 BKBUG bit6 COE bit5 JTAGEN T bu3ytA4 3 2 Reserved write 1 s bitl1 0 5 lt 1 0 gt 01 Communicate on PGC3 EMUC3 PGD3 Possible options are FICD ON amp OPT2 OFF amp OPT3 PLL EA Background Debug Enable Bit e BKBUG OFF Device will Reset in Debug mode EX BKBUG_ON Device will Reset in user mode xx Debugger Emulator Enable Bit COE OFF Reset in clip on operational mode Reset in operational mode 7 JTAG Enable Bit Kor JTAGEN OFF JTAG is disabled xx JTAGEN ON JTAG is enabled ICD communication channel select bits Fa ICS NONE Reserved MEE ICS PGD3 communicate on PGC3 EMUC3 and PGD3 ICS PGD2 communicate on PGC2 EMUC2 and 2 1 ER ICS_PGD1 communicate on PGC1 EMUCI and PGD1 E EMUD3 EMUD3 UD2 UD1 As you can see from here the relevant option is the ICS PGD1 For this PIM module we could use channel 3 rather than channel 1 in which case the ICS PGD1 options gets replaced with the ICS_PGD3 option JP207 option 1 2 PIM pin 24 is connected to emulator programmer JP210 option 1 2 PIM pin 25 is connected to emulator programmer JP207 option 2 3 pin 24 is connected to analogue channel AN4 on backplane JP210 option 2 3 pin 25 is c
17. M pin 90 is routed through to D JP214 option 1 2 PIM pin 89 is routed through to D JP212 option 2 3 PIM pin90 is routed through to GPIO32 AD3 JP214 option 2 3 PIM pin89 is routed through to GPIO31 AD12 JP212 option open PIM pin 90 is not connected DEFAULT JP214 option open PIM pin 89 is not connected DEFAULT Table 07 USB selection jumpers JP212 amp JP214 options The USB link options can further be routed to either the USB host channel or the standard USB connections on the back plane JP213 option 1 2 D is routed to USB HOST D JP215 option 1 2 D is routed to USB HOST D JP213 option 1 2 D is routed to USB DEV D JP215 option 1 2 D is routed to USB DEV D JP213 option open D is not connected DEFAULT JP215 option open D is not connected DEFAULT Table 08 USB Connections JP213 amp JP215 options Note USB On The Go uses additional signals as well notably USB ID and VBUSON These can be routed on to the backplane Check the PIM module configuration to see the pins actually used for these 32KHz Sub Clock Option JP205 amp JP206 The adapter module has been designed to support a 32KHz watch crystal sub clock To enable this feature for the PIM modules that can support it JP205 amp JP206 should be inserted as detailed in the table below If the 32KHz sub clock
18. X RG1 3 link options GPIO31 ADI2 3 link options 3 link options 90 C2RX RGO 3 link options GPIO32 AD3 3 link options 3 link options 91 AN22 CN22 RA6 EVMA GPIO45 92 AN23 CN23 RA7 5 GPIO47 93 PWM1L REO MOTORPOL 94 PWM1H RE1 MOTORPOH 95 RG14 2 link options GPIO13 125 TX CLK 2 link options GPIO7 125 RX CLK 96 RG12 GPIO11 125 RX SDA 97 RG13 GPIO15 125 TX SDA 98 PWM2L RE2 MOTORP1L 99 PWM2H RE3 MOTORP1H 100 PWMBL RE4 MOTORP2L 2 2 Backplane Resources Used by the MCU Resources used available ANO AN1 AN2 AN3 AN4 AN5 AN6 AN7 AN8 Electrocomponents plc Page 5 AN9 ASCO_RX_TTL ASCO_TX_TTL ASC1_RX_TTL ASC1_TX_TTL CANO_RX CANO_TX CNTRL I2C SCL CNTRL I2C SDA I2CGEN1 SCL I2CGEN1 SDA CNTRL SPI 4CS NSS CNTRL SPI CNTRL SPI MTSR CNTRL SPI MRST SPI SSC 5 5 SPI 55 SPI 55 MTSR MOSI SPI 55 MRST MISO EVGO GPIO40 EVG1 GPIO42 EVG2 044 EVG3 GPIO46 EVG4 048 EVG5_GPIO50 EVG6_GPIO52 EVG7 GPIO54 EVG8 GPIO56 EVG20 GPIO69 ASCO RTS EVM2 041 CAPADC EVM3 GPIO43 EVM4_GPIO45 EVM5_GPIO47 EVM6 49 EVM7 GPIO51 EVM8_GPIO53 EVM9_GPIO55 10 GPIO68 ASCO CTS GPIOO GPIO1 GPIO5 125 TX WS GPIO7 125 CLK GPIO9 125 WS GPIO11
19. d return The signal ground and the analogue ground can be connected together on the PIM module adapter board via a zero ohm link resistor R104 R104 option populated SGND and VAGND are shorted together on the PIM adapter DEFAULT R104 option removed SGND and VAGND are not connected on the PIM adapter Table 11 Analogue Ground Reference link R104 PIM Voltage Vcc PIM amp Vcc CM Connection R103 This connects the Vcc CM voltage to the operating voltage of the PIM adapter module The default setting for this is to populate this position with a zero ohm link This is discussed more in the section on jumper settings for the CM With this link in place the voltage used on the PIM adapter module will be made the same as for the Vcc CM voltage which is selectable via link option JP101 R103 option populated Vcc PIM adapter board amp Vcc CM are connected together DEFAULT R103 option removed Vcc_PIM adapter board is not connected to the Vcc CM line Table 11 Adapter board voltage amp Vcc CM Conection R103 Electrocomponents plc Page 19 PIM Module Voltage amp PIM Adapter Module Voltage R201 The PIM module operating voltage can be made the same as the operating voltage for the PIM adapter board by inserting the zero ohm link R201 on the board This is the normal setting for operation and should not be removed without good reason R201
20. dsPIC PIC Command Module Adapter Board EDP CM PIC PIM User Manual Version 1 03 Electrocomponents plc Page 1 Contents 1 2 2 1 2 2 2 3 24 2 5 3 4 5 5 1 Introduction 3 MCU Mapping 3 MCU Pin Allocation 2 2 aee Seeded ceed ed 3 Backplane Resources Used by the 5 Alphabetical Listing of MCU Pins 7 Backplane Signal Names and Connections 9 Mapping Aid S iiei e ro e le tected elt Ded 12 Jumper Options 13 Zero Ohm Links 19 Software Support 22 dsPIC33FJ256MOC710 22 Electrocomponents plc Page 2 1 Introduction The RS EDP platform is a system which has been designed to utilise many different manufacturers microprocessors To support Microchip s family of devices the RS EDP platform uses an adapter board to connect between the RS EDP baseboard and the Microchip PIM modules This is referred to as the EDP CM PIM module Microchip have most of their MCU s available pre mounted on 80 pin and 100 pin PIM modules These are square in shape and use pin headers to connect down to a daughter board which in the Microchip system is usually some form of evaluation board The RS EDP therefore uses these modules with an adapter board to gain access to the Microchip portfolio of devices One adapter board can be used with pretty much all of the
21. ector Jumper JP216 options Emulation amp Programmer Jumpers JP203 JP208 amp JP207 JP210 There are two possible channels to which the emulation and programming system can be connected These are connected via the daughter board to the programming pins on the PIC or dsPIC MCU These are usually referred to as EMUCx and EMUDx where x is either 1 2 or 3 The actual designation and pins used will depend on the PIC dsPIC fitted to the module Most of the development for the PIM module was based on the highly successful dsPIC33FJ256MC710 module which effectively maps both EMUC1 D1 and EMUC3 D3 to the emulator connections Have a look at your PIM module and identify the pins that are responsible for the programming and flashing of the device These should be connected to pins 24 25 26 and 27 of the PIM module These pins are then selectable via the link options The ones not used for programming can be used for other functions within the system Only two pins are used at any one time for debugging and flashing Select the correct link options accordingly Electrocomponents plc Page 14 For the emulation programming system to be able to communicate with the PIC the fuse options for the microcontroller also need to be correctly set This is usually done with a few lines of source code For the dsPIC33FJ256MC710 device the appropriate fuse option is Fuse In Circuit Debug 0 8000 FICD ICS PGD1 amp JTA
22. given to the different voltages then present in the system and possible bleed paths for current when 1 0 are possibly at different voltages The users should check the circuit to ensure safe operation is guaranteed during this case No further design guidance is offered at this point and this dual voltage feature has not been tested Leaving this jumper open would suggest that another module is going to decide what the Vcc CM voltage would be JP101 option 1 2 Vcc CM is set to 3 3V JP101 option 2 3 Vcc CM is set to 5 0V open Vcc CM is decided by another module DEFAULT Table 01 Vcc CM Command Module Voltage Selection Jumper JP101 options Voltage Reference Selector JP216 The PIM modules have a separate analogue voltage reference supply pin called AVdd This pin can be connected to either the power supply voltage of the module Vcc PIM or to an external reference provided through the back plane If the analogue module is fitted a voltage reference is provided via the backplane called AN Ref This selector option will allow the user to connect either of the two voltages to the PIM module reference voltage pin This jumper should also be used in conjunction with the analogue ground zero ohm link See section on zero ohm links below JP216 option 1 2 AN Ref is selected as the AVdd signal JP216 option 2 3 Vcc is selected as the AVdd signal DEFAULT Table 02 Voltage Reference Sel
23. is not required it can be bypassed and the circuitry re routed to the backplane GPIO signals JP205 option 2 3 PIM pin 73 is routed to 32KHz circuitry JP206 option 2 3 PIM pin 74 is routed to 32KHz circuitry JP205 option 1 2 PIM pin 73 is routed to GPIOO on the backplane JP206 option 1 2 PIM pin 74 is routed to GPIO1 on the backplane JP205 option open PIM pin 73 is not connected DEFAULT JP206 option open PIM pin 74 is not connected DEFAULT Table 09 Sub clock jumpers JP205 amp JP206 options Electrocomponents plc Page 18 Vdd Core Jumper JP201 The VDDCORE voltage is usually managed on the PIM module itself with various jumpers and capacitors to ensure this voltage is correct The PIM adapter module provides some additional flexibility with this function For normal operation it should be left disconnected JP201 option open The VDDCORE voltage will be managed by the PIM module DEFAULT JP201 option 1 2 The VDDCORE voltage is Vcc CM JP201 option 2 3 The VDDCORE voltage is SGND Table 10 The VDDCORE Jumper JP201 options 4 Zero Ohm Links Analogue Ground Reference R104 The analogue ground from the back plane can be made to be the same as the signal ground if required AD signals can be passed from the analogue module to the command module These analogue signals have their own separate groun
24. nding 16 bits per channel to a Receiving device with 24 bits of precision the receiver will simply Zero fill the missing bits This feature makes it possible to mix and match components of varying precision without reconfiguration There are left justified 125 streams where there is no bit clock delay and the data starts right on the edge of the word select clock and there are also right justified 125 streams where the data lines up with the right edge of the word select clock These configurations however are not considered standard 125 The PIM module has support for 125 and data can be transmitted as a master from the PIC dsPIC or received into the module as a slave from a master somewhere else in the system The backplane has two signals for 125 WS one for I2STX WS and one for I2SRX WS As the PIC can be either master or slave the user can select the appropriate settings for this The backplane also has two signals for the 12S_CLK as well one for I2SRX and one for I2STX CLK The user can therefore select which one he wants depending on whether the PIC is transmitting as a master or receiving as a slave JP202 option 1 2 I2STX PIC is master 125 device JP211 option 1 2 I2STX WS PIC is master I2S device JP202 option 2 3 I2SRX PIC is slave 125 device Electrocomponents plc Page 16 JP211 option 2 3 I2SRX WS PIC is slave I2S device JP202 option open
25. oned and the provided software the fuse options can be viewed in the header file called fuse_options h The emulator selection is important and this is detailed in the sections relating to jumper options earlier and must be read before proceeding Electrocomponents plc Page 22 If you are able to flash the PIM module with this code then you should see some serial output on the terminal emulator when the code starts to run Problems with flashing code would almost certainly be due to the fuse options not being correct or the link and jumper options not being correctly set Work through the menu options provided with the test suite The default oscillator configuration provided is for the external crystal populated on the adapter module If you are having problems with the oscillator then change the fuse setting to run with on board high speed RC oscillator The code to do this is included and commented out in the fuse header h There is also a define in the defines h header file which needs to be changed also Electrocomponents plc Page 23
26. onnected to analogue channel AN5 on backplane JP207 option open PIM pin 24 is not connected DEFAULT JP210 option open PIM pin 25 is not connected DEFAULT Table 03 Emulation Selection Jumpers JP207 amp JP210 options JP203 option 1 2 PIM pin 26 is connected to emulator programmer DEFAULT JP208 option 1 2 PIM pin 27 is connected to emulator programmer DEFAULT JP203 option 2 3 pin 26 is connected to GPIO33 011 on the backplane JP208 option 2 3 pin 27 is connected to GPIO34 011 on the backplane JP203 option open PIM pin 26 is not connected JP208 option open PIM pin 27 is not connected Electrocomponents plc Page 15 Table 04 Emulation Selection Jumpers JP203 amp JP208 options 125 Jumper Options JP202 JP211 On the backplane of the RS EDP module are some signals dedicated to the serial 12S communication interface Inter Integrated circuit Sound 125 is a high speed serial standard used primarily for digital audio This digital audio used a clock and a data signal The Wikipedia definition of I2S is detailed below PS consists as stated above of a bit clock a word select and the data line The bit clock pulses once for each discrete bit of data on the data lines The bit clock will operate at a frequency which is a multiple of the sample rate The bit clock frequency multiplie
27. onnector which is mapped to one of the serial channels on the PIM module Connect this to the host PC Power up the RS EDP board via the power adapter provided Check the CM voltage on the break out connector of the base board to see if it is what you have selected via the Vcc CM jumper If all is ok the 5V the 3 3V and the Vcc CM voltages should be present on the break out connector The green power on LED lamp should illuminate when power is applied Press the reset button and the red LED should illuminate This should go off when the button is released Electrocomponents plc Page 21 5 Software Support 5 1 dsPIC33FJ256MC710 The Microchip adapter board is designed to be used with Microchip PIM modules and the user is expected to have some familiarity with the series of MCU s he is looking to use As the adapter board can be used with many platforms including PIC16Cxx dsPIC30Fxxxx dsPIC33FJxxxx and PIC32 devices it is not possible to provide a whole series of drivers for all of these devices The basic development work done was using a dsPIC33FJ256MC710 device a 16 bit device from the latest generation of dsPIC devices from Microchip Consequently driver support is included for this part to communicate with the analogue module the digital module the communications module and the MC2 motor drive module It may be worth purchasing one of these PIM modules so you have a working reference by which you can check the base
28. r depends on number of bits per channel times the number of channels So for example CD Audio with a sample frequency of 44 1kHz with 32 bits of precision per 2 stereo channels will have a bit clock frequency of 2 8224MHz The word select clock lets the device know whether channel 1 or channel 2 is currently being sent since PS allows two channels to be sent on the same data line Transitions on the word select clock also serve as a start of word indicator The Word clock line pulses once per Sample so while the Bit clock runs at some multiple of the sample frequency the word clock will always match the sample frequency For a 2 channel stereo system the word clock will be a square wave with an equal number of Bit clock pulses clocking the data to each channel In a Mono system the word clock will pulse one bit clock length to signal the start of the next word but will no longer be square rather all Bit clocking transitions will occur with the word clock either high or low Standard I S data is sent from MSB to LSB starting at the left edge of the word select clock with one bit clock delay This allows both the Transmitting and Receiving devices to not care what the audio precision of the remote device is If the Transmitter is sending 32 bits per channel to a device with only 24 bits of internal precision the Receiver may simply ignore the extra bits of precision by not storing the bits past the 24th bit Likewise if the Transmitter is se
Download Pdf Manuals
Related Search
Related Contents
Plantilla Manual Bombes INOXPA phose(s Blade - Falmec BR-6428nS V2 BR-6428nC Guia de instalação rápida Manual - ICP DAS USA`s I Supermicro AOC-PG-I2+ VX-1700 Operating Manual METHODOLOGIE D`EVALUATION D`UN PROJET D TapTone Série 500 DOC 1741 EN.des Copyright © All rights reserved.
Failed to retrieve file