Digilent Cerebot MC7 Reference Manual Download Page 3

Cerebot MC7™ Board Reference Manual 

 

 

Copyright Digilent, Inc. All rights reserved. 

Other product and company names mentioned may be trademarks of their respective owners.

 

Page 

3

 of 

22

 

 

The Cerebot MC7 can be used with the Microchip MPLAB development environment.  In-system-programming and 
debugging of firmware running on the dsPIC33 microcontroller is supported using an on-board program/debug 
circuit licensed from Microchip. 

The Cerebot MC7 features a flexible power supply system with a number of options for powering the board as well 
as powering peripheral devices connected to the board.  It can be USB powered via the debug USB port, or it can 
be powered from an external power supply or batteries. 

 

Programming and Debugging Using MPLAB IDE 

The Cerebot MC7 board is intended to be used with the Microchip MPLAB

®

 IDE and the Microchip C30 C compiler 

for dsPIC for firmware development, programming and in-system debugging. 

In system programming and debuggin is accomplished using a programmer/debugger circuit licensed from 
Microchip. Either MPLAB version 8.63 or later or MPLAB-X is required for its operation.  The licensed debugger is 
accessed via USB, using connector J13. This connector is a micro-USB connector on the upper left corner of the 
board.  The provided USB cable should be connected from J13 to a USB port on the development PC for access to 
the board. 

When creating a new project, use the Configure.Select Device menu to specify the dsPIC device in use.  Ensure that 
the device is set to dsPIC33FJ128MC706A. 

To use the on-board programming/debugging circuit it must be selected as the debugger or programmer.  Use the 
Debugger.Select Tool menu, or the Programmer.Select Tool menu, and select “Licensed Debugger” as the 
programmer or debugger. 

The dsPIC microcontroller used on the Cerebot MC7 uses a two wire interface for in-system programming and 
debugging. There are three alternative pairs of pins that can be used for this purpose. The Cerebot MC7 is 
designed to use signal pair 1, PGEC1/PGED1, for the connection to the licensed debug circuit. This selection is 
controlled by configuration bits programmed when a firmware image is programmed into the board. This is 
selected using configuration macros provided with the Microchip C30 compiler. A statement similar to this should 
appear in the main program module of the project: 

 

/* Use PGC1/PGD1 for programming and debugging 
*/ 
_FICD(ICS_PGD1 & JTAGEN_OFF); 

 

Refer to the dsPIC device data sheet, the appropriate section of the dsPIC33F Family Reference Manual and the 
C30 compiler documentation for more information. 

 

Board Power Supply 

Switch SW1, in the lower left corner of the board is the power switch. Place this switch in the ON position to turn 
on board power and in the OFF position to turn off board power. 

The Cerebot MC7 board has three power supplies. One power supply is used to regulate power for the main 
circuitry on the Cerebot MC7 board. This supply provides power to the 5V peripherals on the board, such as the 

Summary of Contents for Cerebot MC7

Page 1: ...o the dsPIC A D converter to measure voltage and current for closed loop feedback control These half bridges can be used to control two brushed DC motors two bi polar stepper motors one brushless DC m...

Page 2: ...nations to drive various external loads such as brushed DC motors brushless DC motors stepper motors and so on A switching 5V 4A regulator with input voltage up to 24V is provided on the board to simp...

Page 3: ...ject use the Configure Select Device menu to specify the dsPIC device in use Ensure that the device is set to dsPIC33FJ128MC706A To use the on board programming debugging circuit it must be selected a...

Page 4: ...power supply place a shorting block on JP14 labeled REG To select USB power from the USB debug connector place a shorting block on JP15 labeled USB Note that the dsPIC and other circuitry on the board...

Page 5: ...nd a low side transistor drive input The NTMD4820N FETs are rated for a maximum VDS of 30V maximum VGS or 20V and maximum drain current ID of 8A at 25 C 6 4A at 70 C t 10s or 6 4A continuous drain cur...

Page 6: ...e voltage across the current sense resistors before being applied to the inputs to the A D converter The following formula relates the voltage applied to the A D converter input to the sensed bridge c...

Page 7: ...he network nodes at each end of a network provide 120 ohm termination The Cerebot MC7 provides the termination resistor and jumpers to enable disable this resistor depending on the location of the boa...

Page 8: ...an external power supply For the first case Install shorting blocks on JP5 and JP8 to connect the VS servo power bus to the REG5V0 power bus This connection allows for operation from a single high vol...

Page 9: ...modules that provide various kind of I O interfaces The Pmod line includes such things as button switch and LED modules connector modules LCD displays high current output drivers and many others There...

Page 10: ...ach time a byte is sent from the master to the slave a byte is sent from the slave to the master The master generates the serial clock on the SCK line and the slave uses that as the clock to shift the...

Page 11: ...g clock The Cerebot MC7 board provides an external 8Mhz crystal for use with the XT oscillator option This crystal is on the bottom of the board Oscillator options are selected via configuration macro...

Page 12: ...A TDI AN13 RB13 half bridge 4 voltage sense RB14 29 JB 09 U2RTS AN14 RB14 shared with BTN2 RB15 30 JB 10 AN15 OCFB CN12 RB15 RC12 39 N A OSC1 CLKIN RC12 crystal connection RC13 47 N A PGED2 SOSCI T4CK...

Page 13: ...3 SDI2 CN9 RG7 SPI 2 Selectable via JP2 RG08 6 JB 02 SDO2 CN10 RG8 SPI 2 Selectable via JP3 RG09 8 JB 01 SS2 CN11 RG9 SPI 2 7 N A MCLR on board program debug circuit 9 N A VSS 10 N A VDD 19 N A AVDD 2...

Page 14: ...11 half bridge 2 voltage sense N A RB12 27 TCK AN12 RB12 half bridge 3 voltage sense N A RB13 28 TDI AN13 RB13 half bridge 4 voltage sense N A RC12 39 OSC1 CLKIN RC12 crystal connection N A RC13 47 PG...

Page 15: ...otor 1 quadrature encoder input 12 RB04 N A AN4 QEA IC7 CN6 RB4 motor 1 quadrature encoder input 13 RB03 N A AN3 INDX CN5 RB3 half bridge 4 current sense 14 RB02 N A AN2 SS1 CN4 RB2 half bridge 3 curr...

Page 16: ...1 44 RD10 JB 07 IC3 INT3 RD10 45 RD11 JB 08 IC4 INT4 RD11 46 RD00 JC 01 OC1 RD0 Servo S1 47 RC13 N A PGED2 SOSCI T4CK CN1 RC13 motor 2 quadrature encoder input 48 RC14 N A PEGC2 SOSCO T1CK CN0 RC14 m...

Page 17: ...otor Encoder 1 Connector J16 is a six pin JST connector that provides connection to VMOT1 and VMOT2 for use as an h bridge to drive a motor These are the same signals as on J14 Connector J16 also prov...

Page 18: ...the shorting block to enable the termination resistor remove it to disable the termination resistor JP7 Do Not Use JP9 JP10 JP11 JP12 Voltage Monitoring Disconnect These jumpers are used to enable di...

Page 19: ...ay be trademarks of their respective owners Page 19 of 22 Appendix C Measured Current Monitoring Data Half Bridge 1 IMON1 Current amps Voltage volts 0 0 997 0 5 1 11 1 1 213 1 5 1 318 2 1 424 2 5 1 53...

Page 20: ...tage volts 0 1 028 0 5 1 139 1 1 242 1 5 1 348 2 1 45 2 5 1 556 3 1 662 3 5 1 77 4 1 88 4 5 1 99 5 2 106 5 5 2 223 6 2 344 Over Current Trip 5 87 Half Bridge 3 IMON3 Current amps Voltage volts 0 1 003...

Page 21: ...y names mentioned may be trademarks of their respective owners Page 21 of 22 Half Bridge 4 IMON4 Current amps Voltage volts 0 0 967 0 5 1 077 1 1 181 1 5 1 282 2 1 389 2 5 1 493 3 1 6 3 5 1 707 4 1 81...

Page 22: ...nley Court Pullman WA 99163 U S A Application of Council Directives EMC 2004 108 EC Standards EMC EN55022 2010 EN55024 2010 Product Name Cerebot MC7 Product Model Number Digilent P N 210 185 Digilent...

Reviews: