Home
EDP-CM-PIC-PIM User Manual
Contents
1.
2. oo DO NEN
3. PIM_VCC VAGND GPIOO GPIOI VAGND A GPIO2 MCIDATO GPIO4 MCIDATI GPIOS DSTX WS B 101 EDPCON2 Bus Control Connector GPIO6 MCIDAT2 GPIO7 DSRX CLK 10K GPIO8 MCIDAT3 GPIO9 DSRX WS GPIO10_MCICLK GPIO11 DSRX SDA D101 P102 GPIO12 MCICMD GPIO13 I2STX CLK MCLR RESIN GPIO14 MCIPWR GPIO15 DSTX SDA 2K2 RES LED BAT54XV2TIG SGND SGND GPIO24 AD7 GPIO25 AD15 GPIO26 AD6 GPIO27 AD14 GPIO28 ADS GPIO29 AD13 GPIO30 AD4 GPIO31 AD12 GPIO32 AD3 GPIO33 ADII GPIO34 AD2 GPIO35 ADIO GPIO36 ADI EVGO GPIO40 EVM2 GPIO41 CAPADC EVGI GPIO42 EVM3 GPIO43 EVG2 GPIO44 EVM4 GPIO45 EVG3 GPIO46 EVM5 GPIO47 EVG4 GPIO48 EVM6 GPIO49 EVG5 GPIO50 EVM7 GPIOSI EVG6 GPIOS2 EVM8 GPIO53 EVG7 GPIO54 EVM9 GPIO55 EVG8 GPIOS6 ASCO RX TTL EVM10 GPIO68 ASCO CTS ASCO TX TTL EVG20 GPIO69 ASCO RTS ASC1 RX TTL SPI SSC MRST MISO ASC1 TX TTL SPI SSC MTSR MOSI SPI SSC CLK MOTOR POL SPI SSC CS NSS MOTOR POH CNTRL SPI CLK MOTOR PIL CNTRL SPI MRST MOTOR P1H CNTRL SPI MTSR MOTOR P2L CNTRL SPI CS NSS MOTOR P2H CNTRL I2C SDA MOTOR PWM CNTRL I2C SCL EMG TRP USB HOST D MOTOR H0 ENCO USB HOST D LC GENI SDA MOTOR H1 ENCI USB DEV D LC GENI SCL MOTOR H2 ENC2 USB DEV D MOTOR TCO FB VCC CM9 gt VCC CM VCC CM4 gt VCC CM 3V3 lt gt 3V3 3V3 lt gt 3V3 5V lt gt 5V 5V lt gt 5V SGND SGND SGND SGND Tyco Amp 100 Way PIM_VCC Tyco Amp 140 Way HSV 4 9 a Ob 3v3 3 way Jumper R103 R104 vcc CM PPIM vcc SGNDH HH VAGND OR OR Checked By Title
4. 29 Vdd SS Electrocomponents plc Page 8 EDP CM PIM Adapter Board 2 4 Backplane Signal Names and Connections Break Out Base Board E O Name a ECO cz ET 53 53854 54 a TT ARI ERRE ss2 57858 CS3 59 amp 60 5182 45 amp 46 47848 O 49850 0 484 39840 37838 35836 33834 63 383 29830 27828 3 25826 A NENNEN BU EAN E NENNEN NENNEN HPSEN R EV O AO ADO A1 AD1 A2 AD2 A3 AD3 A4_AD4 A5_AD5 A6_AD6 A7 AD7 A8 AD8 A9 AD9 A10 AD10 A11 AD11 A12 AD12 A13 AD13 A14 AD14 A15 AD15 po EE EEE er RENE gt m gt O N AN AN AN3 AN4 AN5 AN6 AN7 HI NEN NENNEN IS pd AQADO ALADD aab ABAD maa AS ADS Asabe ATADZ o 0 o ABADB A9 AD AID ADIOS anau aab 0 ABAD AM ADIA AIS ADIS DAE ANO 0 0 0 00 03 AD 0 Br pana 0 0 0 00 8 ta o HEE a ON N Electrocomponents plc Page 9 EDP CM PIM Adapter Board aS ES won mo 4 1 ASCO RX TE 89 ASCI RX TTL ASCO DSR 99 CANO RX a 0 0 0 Cano CNLRO o aa CNLTX o 47 canho s89 amp 90 P638 40 CANO san PB a CNTRLDCSCL Tas peos 35 CNTRL IC SDA 77878 peo3 34 CNTRL SPI CS NSS 75 amp 76 peo3 33 CNRLSPLCIK 69 amp 70 P63 30 CNTRLSPLMRST 71872 peo3
5. 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 ground 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 Vcc 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 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 Vcc_PIM amp Vcc_CM Conection R103 Electrocomponents plc Page 19 EDP CM PIM Adapter Board RS PIM Module Voltage amp PIM Adapter Module Voltage
6. 31 CNTRLSPLMISR rar POOR 3 32 CPU DACOOGPIOI7 38 peo3 7 CPU DACOLGPIOIO al rc 7 ETHRXUED a ETHRC EA ETHSPDIED 15 ETHD 305 EN MN EVGO GPIO40 61 tVGi GPlO42 6 tVG2 GPlOA 65 tva3 GPlO6 67 EvG4 GPIOAB 6 Eve5 GPI050 7 EVG6 GPI052 73 EVG7 GPlOS4 7 EVG8 GPI056 7 tVG9 GPlOS7 78 EVG10 GPI058 79 EVG11 GPIO59 80 EVG12 GPI060 81 EVG13 GPI062 82 EVG14 GPI062 8 EVG15 GPI063 84 EVG16 GPI064 85 EVG17 GPI065 86 EVG18 GPI066 87 EVG19 GPI067 88 EVG20 GPIOG9 ASCO RIS 92 Emo GPI021 a2 EVMI GPI023 44 HERE 7 EVM2 GPIO41 CAPADC 62 peo 18 jevma cpiogs eaj Poon 1 1 1 1 1 4 4 13 07 15 05 03 61 63 65 67 71 73 75 77 78 79 81 82 83 84 85 87 88 92 2 4 62 64 Electrocomponents plc Page 10 EDP CM PIM Adapter Board EVM4 GPIO45 P601 CC or 7 EVMS_GPIO49 vpo a 22 EVM7_GPIOS1 na psws 23 EVM8_GPIO53 AA EVM9_GPIO55 76 P601 EVM10 GPIO68 ASCO CIS 90 peor GPIOO ap P63 GNO po 2 os as GPO2 MC DATO 23 Pes a4 pepo o o ap os 16 GPlO mci DaT 25 feos 17 GPOS DS TX ws 26 Pes 19 GPO6 MC DA o 27 Pes a8 GPIO7 DS RKCIK 28 Pes 20 GPOS MC DAT 29 Pes 22 GPIO9 DS RX wS 30 lpoo3 21 pioro macek 31 Peo 23 GPIO11 DS RKSDA
7. 32 Pe 24 GNOI2 Md emo J o 33 oo o o GPOI3 DS TX cK 34 Peo 25 GPIO1A MCIPWR 35 lpoo3 12 GPIOIS DS TX SDA 36 lpoo3 8 GPIO24 AD7 45 oa 8 GPIO2S apis 46 po a0 eo ape Pin 9 GPIO27 apa al pm 11 GPO28 aps al eoa a0 so ADi3 sof lp 12 GPO30 ADA BE 51 deea a os ADD 5 Ip a3 aa sa lem DD P601 P602 eo P602 s psa gil m E Ww ES ES a MENS omas ad GC GENOSCL GC GENOSDA oo ESTE ini IC GENLSDA 217 IRQ_GPIO16 CNTRL C INT 37 IRQ_GPIO18 2C GENO INT 39 P603 Fmoemompcemhwr a rm 8 LIRQ_GPIO22 DC INT 43 freo 7 MOTORTCO FB 32 Peor 48 MOTORHOENCO m6 peo as motorni ENC uns po 46 MOTORH2 en 320 peo 47 MOTOROH 30 bel 38 MOTOROL ol ro 37 MOTORIH 106 pr 40 E NEM MG MOTORP2H L mo P MOTORP2L 308 poo MOTORPWM AA edo v en oO N BIN IN PIP le un 00 Io KAT ON N O v o O NI gt B P603 P603 P603 Electrocomponents plc Page 11 EDP CM PIM Adapter Board R5 26 PGC1 EMUC1 ANG OCFA RB6 76 OC2 RDi EVGO GPI040 EVG1 GPIO42 EVG2_GPIO44 EVG3 GPI046 EVG4_GPIO48 EVG5_GPIOSO 84 OC8 UPDN CNI6 RD7 EVG6_GPIOS2 TDI RA4 EVG7 GPI054 61 TDO RAS EVG8 GPI056 48 ic8 U1RTS CN21 RD1
8. POL AN3 MOTOR TCO FB GPIO30 AD4 MOTOR POH MOTOR H0 ENCO EVM8 GPIO53 ESC MOTOR H1 ENCI EVM9 GPIOSS GPIO11 I2SRX SDA MOTOR H2 ENC2 ANS MOTOR PWM EVM10 GPIO68 ASCO CTS GPIO15 I2STX SDA CNTRL SPI ZCS NSS REB EVG20 GPIO69 ASCO RTS MOTOR PIL RBI RC14 ASCI RX TTL MOTOR P1H RBO ASCI TX TTL MOTOR P2L PIM conn 1 25 PIM conn 26 50 PIM conn 51 75 PIM conn 76 100 Samtec FTR 125 01 S S Samtec FTR 125 01 S S Samtec FTR 125 01 S S Samtec FTR 125 01 S S m GPIO5 I2STX WS m EMUC Ca CANO RX GPIOO Ca 202 203 204 LO o 8 2 way Jumper RB6 2 6 2 way Jumper Reds 2 205 IK a 2 way Jumper P Gpio9 DsRx ws Y GPIO33 ADII na ipapa ji GPIO35_AD10 e e GPIOI m a T OlP206 n _ RC ay hm CANO TX 7202 P209 EMUC EMUD 1 2 RI 2 5 way Jumper RBI 2 P207 RB7 2i E i 32 768KH GPIO36 ADI O 3 way Jumper O way Jumper i er C201 C202 i AN Q GPIO3 22pF 22pF e e GPIO13 RSTX_CLK SGND SGND P211 CSCK PO way Jumper EMUD GPIO7 DSRX CLK A A IP210 PIM VCC en O way Jumper a GPIO32 AD3 ANS PIM VCC P212 sa 20___ 24 way Jumper n A JP213 PIM_VCC B USBD 2 way Jumper Q201 USB DEV D BC858C PIM VCC Me SPXOO 18037 GPIO31 AD12 en RGI 2 Pila USB HOST D C205 207 208 Not fitted by default 03 way Jumper 180R 180R If fitted remove R203 and R204 dy P213 100nF USBD 2 ae way Jumper SGND USB DEV D SGND RJ12 Place between Pin2 and Pin3 D201 D202 en LED RED RESET LED GREEN ICD 2 MPLAB Programmer connector N Pl N raro Checked By T
9. 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 connector 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 Vcc_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 EDP CM PIM Adapter Board RS 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 dsPIC3OFxxxx 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 a
10. the word clock either high or low Standard IS 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 sending 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 I S 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 IS streams where the data lines up with the right edge of the word select clock These configurations however are not considered standard IS 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 I2S_CLK as well
11. 1 TX TTL HU2CTS RF12 AN12 RB12 AN13 RB13 AN15 OCFB CN12 RB15 Ss 45 Ds 0 IC7 HU1CTS CN20 RD14 IC8 HU1RTS CN21 RD15 A NENNEN XU NENNEN a U2RX CNIZ RFA U2TX CN18 RF5 Aa A E UR 0 0 y ascorxmm 0 U1RX RF2 E pspoyers CNTRLSPIMRST ETA EAS SCK1 INTO RFS CNIRLSPLCK spares CNIRLBCSDA scere 0 po NRL SCL sco mo 1 mCGENLSL TDI RA4 EVGZGPOBDM O I a IC Notapplcable NENNEN m NENNEN NENNEN NENNEN Vdd OSC1 CLKIN RC12 OSC2 CLKO RC15 Not applicable Vss pf EAT Electrocomponents plc Page 4 EDP CM PIM Adapter Board 71 ICA RD11 EVM9_GPIO55 nR ocamoo TORPWM O P link options loca32kHzsubcock ink options local 32kHz sub clock EEE ss om 1 evgoGpoag O o OC R2 1 EVGLGPOD O 78 OC RB o 1 EVG2GPOA O a Ra EVM2 GPia1 CAPADC so ICe NIS RDIS eV Gpwa3 81 OCSCNI RDD VG Gpoag 82 OCeCNM RDS EVGAGPIOAB 83 OC CNIS RG EVG5 GPIOSO ss Oc8 upoN cn16 2D7 EGE GPIO 5 Vddcoe Notapplicable IE wad 2limkopton GPIO35_AD10 ink options GPIO ADD ss carga 0 3lnkoptons GPIO31_ADI2 EMEN aaa 3 link options 3 ink options MN C2RX RGO 3 link options GPIO32_AD3 3 lin
12. 5 EVG20 GPI069 ASCO RTS 27 PGD1 EMUD1 AN7 RB7 73 PGD2 EMUD2 SOSCI CN RC13 79 Ic5 RD12 EVM2 GPI041 CAPADC EVM3 GPIO43 EVM4 GPI045 EVMS GPI047 EVM6_GPIO49 EVM7 GPI051 EVM8 GPIO53 EVM9 GPI055 a7 IC7 HU1CTS CN20 RD14 EVM10 GPI068 ASCO CTS 74 PGC2 EMUC2 S0SCO T1CK CNO RC14 Local 32KHz Clock GPIO11 125 RX SDA 96 RG12 GPIO15 25 TX SDA P 97 R613 GPIO13 125 TX CLK DE ee GPIO7 125 RX CLK GPIOS 125 TX WS a GPIO9 125 RX WS 38 TCK RA1 39 HU2RTS RF13 HU2CTS RF12 a1 AN12 RB12 DO PR N DN 2 QD UR NT O 0 O mu Cc 95 RG14 p s O HEN un 42 AN13 RB13 43 AN14 RB14 44 AN15 OCFB CN12 RB15 Electrocomponents plc Page 12 EDP CM PIM Adapter Board RS JP216 34 JAN10 RB10 35 JAN11 RB11 18 AN20 FLTA INT1 RE8 19 AN21 HFLTB INT2 RE9 3 PIMVCC T3 AN REF 2 SGND R104 VAGND VAVDD 24 PGC3 EMUC3 AN1 CN3 RB1 U NM CQ RESET ANG 33V R103 JP101 VCC CM 5 0V ANG 32 ANB RB8 3 PIM VCC AN7 33 AN9 RBO AN8 4 PWMAL RE6 m ie 3 52 U1RX RF2 JASCO RX TIL 51 UITX RF3 lASCO TX TTL F 49 U2RX CN17 RFA lt ASC1 RX TIL so U2TX CN18 RF5 25 Asc1 TX TL MOTORPOH 94 PWMIH RE1 MOTORPOL 93 PWMIL REO J 23 JAN2 851 CN4 RB2 CNTRL SPI amp CS NSS MOTORPIH lt 99 Pwm2H RE3 55 SCKI INTO RE6 CNTR
13. COBE OFF Reset in Clip on Operational mode en COE ON Reset in operational mode kik JTAG Enable Bit gt JTAGEN OFF JTAG is disabled Sue JTAGEN ON JTAG 18 enabled ei 7 ICD communication channel select bits KK ICS NONE Reserved xx ICS POD3 communicate on PGC3 EMUC3 and PGD3 EMUD3 xx LOS PODZ communicate on PGC2 EMUC2 and PGD2 EMUD2 xx ICS PODI communicate on PGC1 EMUC1 and PGD1 EMUD1 x 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 PIM pin 24 is connected to analogue channel AN4 on backplane JP210 option 2 3 PIM pin 25 is connected 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 open PIM pin 26 is not connected JP208 option open PIM pin 27 is not connected Electrocomponents plc Page 15 EDP CM PIM Adapter Board RS Table 04 Emulation Selection Jumpers JP203 amp JP208 options I2S Jumper Options JP202 JP211 On the backplane of the RS EDP module are some signals dedicated to the s
14. EDP CM PIM Adapter Board dsPIC PIC Command Module Adapter Board EDP CM PIC PIM User Manual Version 1 04 10th June 2010 Electrocomponents plc Page 1 EDP CM PIM Adapter Board Contents 1 Introduction 3 2 MCU Mapping 3 2 1 MCU Pin Allocation us caen aaa NGA 3 2 2 Backplane Resources Used by the MCU 5 2 3 Alphabetical Listing of MCU Pins ooooooonccncccnnoncconcnononcconononanccnncnnnnos 7 2 4 Backplane Signal Names and Connections 9 2 5 NOI E20 SA 12 3 Jumper Options 13 4 Zero Ohm Links 19 5 Software Support 22 5 1 dsPIC33FI256MC7 10 22 Electrocomponents plc Page 2 EDP CM PIM Adapter Board RS 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
15. Hitex UK Ltd EDP Connectors Sir William Lyons Road Cannot open file 2 h Size Number Revision University of Warwick Science Park PALouLOGOs Hitex Hitex Approved By A3 EDP CM PIM B Coventry Dev Tools Logo Small bmp Date 05 03 2009 c Hitex UK Ltd Sheet of2 File DAPCB Designs DXP EDP CM PIM EDP CM PIM_B Module Connectors SchDoc Author A Davison 1 2 3 4 5 6 7 8 1 3 4 5 6 7 8 P201 P202 P203 P204 COFS ASCO TX TTL RB6 EVGO GPIO40 ASCO RX TTL PEE VOS RB7 EVGI GPIO42 MOTOR P2H CNTRL SPI MRST GPIOI4 MCIPWR EVG2 GPIO44 AN8 PIM VCC CNTRL SPI MTSR GPIOI2 MCICMD EVM2 GPIO41 CAPADC AN9 P216 CNTRL SPI CLK AVDD 2 EVM3 GPIO43 GPIO2 MCIDATO BERN CNTRL PC SDA AN REF EVG3 GPIO46 GPIO4 MCIDATI 4 CNTRL I2C SCL AN6 EVG4 GPIO48 GPIO6 MCIDAT2 IC GENI SCL AN7 EVG5 GPIO50 GPIO8 MCIDAT3 LC GENI SDA PIM VCC ANO EVG6 GPIOS2 SPI SSC CLK EVG7 GPIO54 201 ANI VDDCORE 2 SPI SSC MTSR MOSI EVG8_GPIOS6 O3 way Jumper SPI_SSC MRST_MISO IES gt PIM VCC gt PIM VCC RFO SGND MCLR OSCI GPIO24 AD7 RFI SPI SSC CS NSS OSC2 GPIO25 ADIS RGI SOND GPIO26 AD6 pL RGO EMG TRP AI ES GPIO27 AD14 EVM4 GPIO45 GPIO10 MCICLK EVM6 GPIO49 GPIO28 AD5 EVM5 GPIO47 AN2 EVM7 GPIO51 GPIO29 AD13 MOTOR
16. L SPI CLK MOTORPIL 98 PWM2L RE2 2 54 SDI1 RF7 CNTRL SPI MISR MOTORP2H 3 PWM3H RE5 53 SDO1 RF8 CNTRL SPI MRST MOTORP2L lt 100 PWN3L REA aaa MOTORHO_ENCO gt 20 JANS QEB CN7 RB5 5 10 SCK2 CN8 RG6 MOTORH1_ENC1 gt 21 AN4 QEA CN6 RB4 11 SDI2 CN9 RG7 SPI SSC MISR MOSI MOTORH2 ENC2 gt 22 AN3 INDX CN5 RB3 6 utc na MOTORPWM lt lt n 0C1 RDO EMG TRAP 5 66 INT3 RA14 KATI MOTOR TCO FB gt 69 C2 RD9 M re 29 Vref RA10 GPIO12 MCI CMD 28 Vref RAg GPI014 MCI PWR C 6 AN16 T2CK T7CK RC1 GPIO2 MCI DATO CANO RX TA 7 lAN17 T3CK T6CK RC2 GPI04 MCI DATI 87 CIRX RFO GPI035 AD10 7 8 lAN18 TACK TOCK RC3 GPI06 MCI DAT2 P209 9 AN19 T5CK T8CK RCA GPIO8 MCI DAT3 Kai 88 C1TX RF1 GPI036 ADI 1 JP214 GPIO31 ADI2 89 C2TX RG1 2 I2CGEN1 SCL lt 58 SCL2 RA2 0 19215 I2CGEN1 SDA 59 SDA2 RA3 JP212 CNTRL 12C SCL s scLt RG2 90 C2RX RGO 2 CNTRL 12C SDA lt gt 56 SDA RG3 GPI032 AD3 JP213 3 Jumper Options Vcc_CM Command module Voltage Selection Jumper JP101 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 vol
17. 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 option populated The Vcc_PIM adapter voltage is connected to the Vcc_PIM 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 Populated Populated External Clock module Internal RC Table 13 Main Oscillation Selection Links Electrocomponents plc Page 20 EDP CM PIM Adapter Board RS Hardware Setup Select the appropriate jumper and link options for your design and then insert your PIM
18. elopment 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 EDP CM PIM Adapter Board R5 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 Puse In Circuit Debug Uxf8000e FICD ICS PGD1 JTAGEN OFF bit15 bit8 always set to 1 s bit7 BKBUG bit6 COE bit5 JTAGEN bit4 3 2 Reserved write 1 s bit1 0 ICS lt 1 0 gt 01 Communicate on PGC3 EMUC3 amp PGD3 EMUD3 Possible options are TFICD OPTI ON amp OPT2 OFF amp OPIS PLL m Background Debug Enable Bit A BKBUG OFF Device will Reset in Debug mode io BKBUG ON Device will Reset in user mode kik an Debugger Emulator Enable Bit Er
19. erial 125 communication interface Inter Integrated circuit Sound I2S 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 125 is detailed below 125 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 multiplier 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 lS 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 Fora 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
20. hen PIO mem 7 ANI ISCVTC RC PIO maoan 8 ANIS MCKTSK RO GPI06 MQLDA2 9 AN19 T5ck T8ck Rca GPI08 MCLDAT3 o 10 SCQ NSRGO o spisscak o O 11 SDI CNS RG SPLSSCMISRMOS 12 SDOZCNIRG SPLSSCMRSL MIO 03 JsMER 14 SS2 CN11 RG9 SPLSSCHCS NS Electrocomponents plc Page 3 EDP CM PIM Adapter Board 15 Vss a5 E S o a7 TMSRO0 J GPOI0MCCK 18 ANZ AFLTA NTI RES Ol AN 19 ANZMAFIB NTZRE ANB 20 ANS QEB CN7 RBS MOTORHOENCO 21 AN4 QEA CN6 RB4A MOTORHLENCI 22 ANS NDXCN RS MOTOR ENC2 23 AN2 HSSI CNA R 2 CNTRLSPLACS NSS 24 o 2linkoptons LocalEMUC 25 o 2linkoptons localEMUD 26 o 2linkopons localEMUC 27 Pf 2 fink options localEMUD 28 GPi014 MCQLPWR 29 ETA 30 31 32 33 34 ANI RBIO FAN 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 61 62 63 64 65 67 70 Vref RA10 Vref RA9 Ad CS ET AN8 RB8 er tl AN9 RB9 LF AN11 RB11 m S O ws TCK RA1 GPIO24 AD7 Vdd HU2RTS RF13 GPIO25 AD15 GPIO26 AD6 GPIO27 AD14 GPIO28 AD5 GPIO29 AD13 GPIO30 AD4 EVM10 GPIO68 ASCO CTS EVG20 GPIO69 ASCO RTS ASC1 RX TTL ASC
21. itle Hitex UK Ltd SEND SOND PIM Connectors Sir William Lyons Road Cannot open file Size Number Revision University of Warwick Science Park PALouLOGOs Hitex Hitex Approved By A3 EDP CM PIM B Coventry Dev Tools Logo Small bmp Date 05 03 2009 c Hitex UK Ltd Sheet of 2 File DAPCB Designs DXP EDP CM PIM EDP CM PIM B PIM Connectors SCHDOC Author A Davison 1 3 4 5 6 7 8 80 00 Cmm
22. k options Bink options 91 AN2Z CN2Z RA6 ev PIS AN23 CN23 RA7 EVMS GPIO7 B rwMi RO MOTORO 5 94 Pwned MOTOROH tink options GPIO7 RS AX CIK 96 R32 9 ttt RXSDA 97 Re Os 2S TXSDA 98 Pwmayre2 MOTOR3L 55 99 rwwHRG MOTORAH oo rwM3 RA MRP 2 2 Backplane Resources Used by the MCU ANO AN1 AN2 AN3 AN4 AN5 AN6 AN7 AN8 AN9 Electrocomponents plc Page 5 EDP CM PIM Adapter Board ASCO_RX_TTL GPIOO GPIO1 EVM10 GPI068 ASCO CTS Electrocomponents plc Page 6 EDP CM PIM Adapter Board GPIO2 MCI DATO 2 3 Alphabetical Listing of MCU Pins Pin Alphabetical Pin Function MCLR SS2 CN11 RG9 20 ANS QEB CN7 RB5 AN16 T2CK T7CK RC1 8 ANIB TACK TOCK RCS O AN19 TSCK T8CK RCA AN22 CN22 RA6 87 88 70 71 79 C1TX RF1 C2RX RGO C2TX RG1 IC2 RD9 IC3 RD10 ICA RD11 IC5 RD12 187 88 89 68 icum EST PP 70 BEE BEE Electrocomponents plc Page 7 EDP CM PIM Adapter Board 80 IC6 CN19 RD13 72 EST 76 OC2 RDI 77 OCMRD2 78 OC4 RD3 oa 94 93 3 100 PWMSUREA PWMAH RE o 47 48 67 81 82 83 84 63 64 26 74 24 27 73 25 5 PWMAH RE7 CTA CT IC A B DID e e MIA 2 Vref RA9 Vref RA10 15 V 4 97 95 1 55 10 57 58 56 59 54 11 53 12 38 61 17 52 51 49 50 16 37 46 62 85 28
23. nalogue 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 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 PIM 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
24. nnected DEFAULT Table 06 CAN Bus selection JP204 amp JP209 options Electrocomponents plc Page 17 EDP CM PIM Adapter Board RS 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 PIM 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 mod
25. of the 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 I O 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 MCU Mapping 2 1 MCU Pin Allocation The MCU pins have been allocated to the backplane as follows dsPIC33FJ256MC710 RS EDP BASE BOARD Pin 0 Nm Comment Name RG15 2 link options GPIO5 I2S TX WS IC oy o3 wares MOT0Rp2H gt O a Pwr lo lang 000000000 PWMaH RE JJ AG 6 anste
26. one for I2SRX CLK 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 CLK PIC is master 125 device JP211 option 1 2 I2STX WS PIC is master 12S device JP202 option 2 3 I2SRX_CLK PIC is slave I2S device Electrocomponents plc Page 16 EDP CM PIM Adapter Board RS JP211 option 2 3 I2SRX WS PIC is slave 125 device JP202 option open I2STX_CLK is not connected DEFAULT JP211 option open I2STX WS is not connected DEFAULT Table 05 I2S selection jumpers JP202 JP211 options It is worth checking that if other modules are using 12S 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 PIM 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 co
27. ould be JP101 option 1 2 Vcc_CM is set to 3 3V JP101 option 2 3 Vcc_CM is set to 5 0V 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 PIM Vccis selected as the AVdd signal DEFAULT Table 02 Voltage Reference Selector 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 dev
28. tage 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 Page 13 EDP CM PIM Adapter Board RS 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 given to the different voltages then present in the system and possible bleed paths for current when I O 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 w
29. 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 mentioned 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 EDP CM PIM Adapter Board RS 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 EDPCONI IO Connector P101
30. ule 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 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 EDP CM PIM Adapter Board RS 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
Download Pdf Manuals
Related Search
Related Contents
REGISTRO DE FIRMAS DE USUARIO Descargar MSI 912-V282-015 NVIDIA GeForce GTX 680 2GB graphics card Troubleshooting for the Online Moderator SEMPELL - Pentair Copyright © All rights reserved.
Failed to retrieve file