Cerebot 32MX7 Reference Manual
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
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:
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.
#pragma
#pragma
#pragma
#pragma
#pragma
#pragma
config
config
config
config
config
config
FNOSC = PRIPLL
POSCMOD = EC
FPLLIDIV = DIV_2
FPLLMUL = MUL_20
FPLLODIV = DIV_1
FPBDIV = DIV_8
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
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.
相关PDF资料
TEACLIPPER-PIC-HV-PT PROGRAMMER TEACLIPPER/PIC HI-V
TJA1010T/N1,118 IC OCTAL LOW SIDE DRVR 28SOIC
TLC5945PWP IC LED DRIVER LINEAR 28-TSSOP
TLD1020-12 POWER SUPPLY 20W 12VDC 1.66A
TLD1020-24-C0350 POWER SUPPLY 20W 12-24VDC .350A
TLD1020-24-C0700 POWER SUPPLY 20W 12-24VDC .700A
TLD1020-24 POWER SUPPLY 20W 24VDC .830A
TLD1020-36-C0350 POWER SUPPLY 20W 18-36VDC .350A
相关代理商/技术参数
TDGL005 功能描述:子卡和OEM板 chipKIT Basic I/O Shield RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
TDGL006 功能描述:界面开发工具 chipKIT Network Shield RoHS:否 制造商:Bourns 产品:Evaluation Boards 类型:RS-485 工具用于评估:ADM3485E 接口类型:RS-485 工作电源电压:3.3 V
TDGL007 功能描述:开发板和工具包 - PIC / DSPIC DIGILENT CEREBOT MC7 MOTOR CONTROL BRD RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
TDGL008 功能描述:开发板和工具包 - PIC / DSPIC Digilent Cerebot MX3ck Dev Brd RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
TDGL009 功能描述:开发板和工具包 - PIC / DSPIC Digilent Cerebot MX4cK Dev Brd RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
TDGL010 功能描述:开发板和工具包 - 其他处理器 Digilent Cerebot MX7cK Dev Brd RoHS:否 制造商:Freescale Semiconductor 产品:Development Systems 工具用于评估:P3041 核心:e500mc 接口类型:I2C, SPI, USB 工作电源电压:
TDGL011 功能描述:MODULE DIGILENT PMOD WIFI RoHS:是 类别:RF/IF 和 RFID >> RF 评估和开发套件,板 系列:Digilent 标准包装:1 系列:- 类型:GPS 接收器 频率:1575MHz 适用于相关产品:- 已供物品:模块 其它名称:SER3796
TDGL012 功能描述:MODULE DIGILENT PMODRF2 RoHS:是 类别:RF/IF 和 RFID >> RF 评估和开发套件,板 系列:Digilent 标准包装:1 系列:- 类型:GPS 接收器 频率:1575MHz 适用于相关产品:- 已供物品:模块 其它名称:SER3796