EIS TDGL004 Скачать руководство пользователя страница 10

Distributor of Microchip Technology: Excellent Integrated System Limited

Datasheet of TDGL004 - BOARD CEREBOT 32MX7 PIC32MX795 
Contact us: [email protected] Website: www.integrated-circuit.com

Cerebot 32MX7 Reference Manual 

 

 

                                          

 

 

www.digilentinc.com 

 

page 9 of 19

 

 

Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.

 

The four LEDs are connected to bits 12-15 of 
PORTG. LED 1 is connected to bit 12, LED 2 
is connected to bit 13, and so on.  To use the 
LEDs, set the desired bits as outputs by 
clearing the corresponding bits in the TRISG 
register and set the bits to the desired value in 
the PORTG register.  Setting a bit to 1 will 
illuminate the LED and setting the bit to 0 will 
turn it off. 
 

CPU Clock Source 

 
The PIC32 microcontroller supports numerous 
clock source options for the main processor 
operating clock.  The Cerebot 32MX7 board is 
designed to support either a silicon resonator 
from Discera, IC2, for use with the EC 
oscillator option, or an external crystal for use 
with the XT oscillator option.  Standard 
production boards will have an 8Mhz Discera 
silicon resonator loaded and the EC oscillator 
option should be used.  If IC2 is not loaded, an 
8Mhz crystal will be loaded for X1 (on the 
bottom of the board) and the XT oscillator 
option should be used. Oscillator options are 
selected via the configuration settings specified 
using the #pragma config statement. Use 

#pragma config POSCMOD=EC

 to select the 

EC option and 

#pragma config POSCMOD=XT

 

to select the XT option. 
 
Using the internal system clock phase-locked 
loop (PLL), it is possible to select numerous 
multiples or divisions of the 8Mhz oscillator to 
produce CPU operating frequencies up to 
80Mhz. The clock circuit PLL provides an input 
divider, multiplier, and output divider. The 
external clock frequency (8Mhz) is first divided 
by the input divider value selected. This is 
multiplied by the selected multiplier value and 
then finally divided by the selected output 
divider. The result is the system clock, 
SYSCLK, frequency. The SYSCLK frequency 
is used by the CPU, DMA controller, interrupt 
controller and pre-fetch cache. 
 
The operating frequency is selected using the 
PIC32MX795 configuration variables. These 
are set using the 

#pragma config

 statement. 

Use 

#pragma config FPLLIDIV

  to set the 

input divider, 

#pragma config FPLLMUL

 to set 

the multiplication factor and 

#pragma config 

FPLLODIV

 to set the output divider. Refer to the 

PIC32MX5XX/6XX/7XX Family Data Sheet 
and the PIC32MX Family Reference Manual, 
Section 6. Oscillators for information on how to 
choose the correct values, as not all 
combinations of multiplication and division 
factors will work. 
 
In addition to configuring the SYSCLK 
frequency, the peripheral bus clock, PBCLK, 
frequency is also configurable. The peripheral 
bus clock is used for most peripheral devices, 
and in particular is the clock used by the 
timers, and serial controllers (UART, SPI, I2C). 
The PBLCK frequency is a division of the 
SYSCLK frequency selected using  

#pragma 

config FPBDIV

. The PBCLK divider can be 

set to divide by 1, 2, 4, or 8. 
 
The following example will set up the Cerebot 
32MX7 for operation with a SYSCLK frequency 
of 80Mhz and a PBCLK frequency of 10Mhz: 
 

#pragma config FNOSC = PRIPLL 
#pragma config POSCMOD = EC 
#pragma config FPLLIDIV = DIV_2 
#pragma config FPLLMUL = MUL_20 
#pragma config FPLLODIV = DIV_1 
#pragma config FPBDIV = DIV_8 

 

                            10 / 20

                            10 / 20

Содержание TDGL004

Страница 1: ...mited Excellent Integrated System Limited Stocking Distributor Stocking Distributor Click to view price real time Inventory Delivery Lifecycle Information Click to view price real time Inventory Deliv...

Страница 2: ...ations features include 10 100 Ethernet interface Full Speed USB 2 0 OTG interface dual CAN network interfaces dual I2C buses up to three UART ports and up to three SPI ports The Cerebot 32MX7 works w...

Страница 3: ...ns for two I2C busses A serial EEPROM is provided on one of the I2C busses The Cerebot 32MX7 can be used with the Microchip MPLAB development environment In system programming and debug of firmware ru...

Страница 4: ...nal power supply there are two power supply connectors that can be used J17 and J18 The barrel connector J17 is used to power the board from a wall wart style power supply This type of power supply is...

Страница 5: ...r is turned on when the power switch is placed in the ON position The PIC32 microcontroller and on board I O devices operate at a supply voltage of 3 3V provided by the VCC3V3 bus The regulated voltag...

Страница 6: ...device when operating as a host and the USB specification requires the use of a 5V power supply NOTE Providing a voltage greater than 5V can damage the Cerebot 32MX7 board and or the USB device being...

Страница 7: ...acturer documentation for the PIC32MX795 and LAN8720 plus network protocol documentation for operation of the Ethernet interface The PIC32MX795 microcontroller provides two alternate sets of pins that...

Страница 8: ...nect the Cerebot 32MX7 board to other network wiring configurations The CAN network standard requires that the network nodes at each end of a network provide 120 ohm termination The Cerebot 32MX7 prov...

Страница 9: ...Digilent Pmod peripheral modules Digilent Pmods are a line of small peripheral modules that provide various kind of I O interfaces The Pmod line includes such things as button switch and LED modules...

Страница 10: ...loop PLL it is possible to select numerous multiples or divisions of the 8Mhz oscillator to produce CPU operating frequencies up to 80Mhz The clock circuit PLL provides an input divider multiplier an...

Страница 11: ...gma config FPLLIDIV DIV_2 PLL input divider pragma config FPLLMUL MUL_20 PLL multiplier pragma config FPLLODIV DIV_1 PLL output divider pragma config FPBDIV DIV_8 Peripheral bus clock divider pragma c...

Страница 12: ...B0 N A Used by debug circuit PGC RB01 PGEC1 AN1 CN3 RB1 N A Used by debug circuit PGD RB02 AN2 C2IN CN4 RB2 JA 01 RB03 AN3 C2IN CN5 RB3 JA 02 RB04 AN4 C1IN CN6 RB4 JA 03 RB05 AN5 C1IN VBUSON CN7 RB5 N...

Страница 13: ...MD5 RE5 JB 08 RE06 PMD6 RE6 JB 09 RE07 PMD7 RE7 JB 10 RE08 AERXD0 INT1 RE8 N A USB Overcurrent detect RE09 AERXD1 INT2 RE9 N A Ethernet PHY Reset RF00 C1RX ETXD1 PMD11 RF0 N A Ethernet PHY RF01 C1TX E...

Страница 14: ...RE06 JB 10 PMD7 RE7 RE07 JC 01 T2CK RC1 RC01 JC 02 C2RX PMD8 RG0 RG00 JC 03 C2TX ETXERR PMD9 RG1 RG01 JC 04 ETXCLK PMD15 CN16 RD7 RD07 JC 07 AN15 OCFB PMALL PMA0 CN12 RB15 RB15 JC 08 PMRD CN14 RD5 RD0...

Страница 15: ...11 RB11 Ethernet PHY N A AN12 ERXD0 AECRS PMA11 RB12 RB12 Ethernet PHY N A AN13 ERXD1 AECOL PMA10 RB13 RB13 Ethernet PHY N A OSC1 CLKI RC12 RC12 Primary Oscillator Crystal N A SOSCI CN1 RC13 RC13 Seco...

Страница 16: ...N RB04 21 AN4 C1IN CN6 RB4 JA 03 RB03 22 AN3 C2IN CN5 RB3 JA 02 RB02 23 AN2 C2IN CN4 RB2 JA 01 RB01 24 PGEC1 AN1 CN3 RB1 N A Used by debug circuit PGD RB00 25 PGED1 AN0 CN2 RB0 N A Used by debug circu...

Страница 17: ...DIO IC1 RD8 N A Ethernet PHY RD09 69 SS1 IC2 RD9 JD 01 RD10 70 SCK1 IC3 PMCS2 PMA15 RD10 JD 04 RD11 71 EMDC AEMDC IC4 PMCS1 PMA14 RD11 N A Ethernet PHY RD00 72 SDO1 OC1 INT0 RD0 JD 02 RC13 73 SOSCI CN...

Страница 18: ...s connector is used to connect the on board programming and debug circuit to the PC for use with the MPLAB IDE J16 Power supply source select This jumper is used to select the source of main board pow...

Страница 19: ...er is used to enable disable the 120 ohm termination resistor for CAN 1 Insert the shorting block to enable the termination resistor remove it to disable the termination resistor JP6 CAN 1 5V0 Enable...

Страница 20: ...of 19 Copyright Digilent Inc All rights reserved Other product and company names mentioned may be trademarks of their respective owners JPF Any of the Pmod connectors can provide either regulated or u...

Отзывы: