Beruflich Dokumente
Kultur Dokumente
C6657
User Guide
Marktstr. 10
47647 Kerken
Table of Contents
1 Overview................................................................................................ 6
2 Hardware................................................................................................7
2.1 System Architecture.......................................................................7
2.2 Hardware Installation...................................................................10
3 Software .............................................................................................. 12
3.1 Software Installation.....................................................................13
3.2 Creating a new CCS project.........................................................14
3.3 Building a boot-loadable Intel-Hex File.........................................15
3.3.1 Dual Core Boot.....................................................................16
4 Memory................................................................................................ 17
4.1 Memory Map................................................................................17
4.2 C6657 on-chip memories.............................................................17
4.2.1 L1D and L1P .......................................................................18
4.2.2 L2RAM ................................................................................18
4.2.3 MSM.....................................................................................19
4.3 DDR3 .......................................................................................... 19
4.4 External Memory-Mapped Devices..............................................19
4.5 SPI NOR Flash.............................................................................19
4.6 NAND Flash.................................................................................20
4.7 Cache Coherence........................................................................21
5 Board Logic and Configuration Registers.............................................22
5.1 UARTCTRL..................................................................................24
5.2 BUSCTRL....................................................................................24
5.3 DSPCTRL....................................................................................25
5.4 SETUPSTAT................................................................................26
5.5 FLASHCTRL................................................................................26
5.6 GPIOMUX....................................................................................27
5.7 ETHCTRL.....................................................................................28
5.8 PCIECTRL...................................................................................28
5.9 BOOTMOD...................................................................................29
5.10 PRGIODATLO............................................................................29
5.11 PRGIODIR.................................................................................30
6 External Bus Interface..........................................................................31
6.1 UPP Mode....................................................................................34
6.2 EMIF Mode...................................................................................38
6.3 Auxiliary Bus Interface Signals.....................................................40
6.4 Usage and Routing Guidelines.....................................................42
7 McBSP................................................................................................. 43
8 SPI....................................................................................................... 44
9 I²C........................................................................................................ 45
10 PRGIO ............................................................................................... 46
11 Interrupts............................................................................................ 49
12 SPI Flash Memory .............................................................................51
13 UART and USB..................................................................................55
14 Ethernet.............................................................................................. 56
15 PCIe and SRIO..................................................................................58
16 Real-Time Clock.................................................................................61
17 Fan Control and Supervision..............................................................63
18 Power Supply.....................................................................................66
19 Thermal Considerations.....................................................................67
20 Reset.................................................................................................. 68
21 Module Configuration File..................................................................69
22 Setup Utility........................................................................................ 70
23 Getting Support..................................................................................72
List of Tables
Table 4.1: Memory Map...........................................................................17
Table 5.1: Board Configuration Registers................................................23
Table 5.2: UARTCTRL Register...............................................................24
Table 5.3: BUSCTRL Register.................................................................24
Table 5.4: DSPCTRL Register.................................................................25
Table 5.5: SETUPSTAT Register.............................................................26
Table 5.6: FLASHCTRL Register.............................................................26
Table 5.7: GPIOMUXLO Register............................................................27
Table 5.8: GPIOMUXHI Register.............................................................27
Table 5.9: ETHCTRL Register.................................................................28
Table 5.10: PCIECTRL Register..............................................................28
Table 5.11: BOOTMODLO Register.........................................................29
Table 5.12: BOOTMODHI Register..........................................................29
Table 5.13: PRGIODATLO Register........................................................29
Table 5.14: PRGIODIRLO Register.........................................................30
Table 5.15: PRGIODIRHI Register...........................................................30
Table 6.1: Bus Interface Signals..............................................................33
Table 6.2: TCA6408 Port Pins..................................................................34
Table 7.1: McBSP Signals........................................................................43
Table 8.1: SPI Signals..............................................................................44
Table 9.1: I2C Signals..............................................................................45
Table 10.1: PRGIO Routing.....................................................................48
Table 12.1: SPI Flash Layout...................................................................51
Table 13.1: UART Connections................................................................55
Table 13.2: USB Connections..................................................................55
Table 14.1: Ethernet Connections ...........................................................56
Table 15.1: PCIe and SRIO Signals.........................................................60
List of Figures
Figure 2.1: D.Module2.C6657 Block Diagram............................................9
Figure 2.2: D.Module2 Base Board .........................................................10
Figure 6.1: Bus Interface in UPP Mode....................................................37
Figure 6.2: Bus Interface in EMIF Mode...................................................39
Figure 6.3: Bus GPIO Signals..................................................................41
Figure 10.1: PRGIO Connections.............................................................46
Figure 11.1: Interrupts..............................................................................49
Figure 14.1: Ethernet Connections...........................................................57
Figure 15.1: PCIe and SRIO Connections................................................59
Figure 17.1: Fan Connection....................................................................64
1 Overview
The D.Module2.C6657 is a high-performance, stand-alone, floating-
point digital signal processing (DSP) computer board. It features a
variety of interface and communication peripherals:
2 Hardware
SRIO PCIe
2 lanes 2 lanes GBT
COM
SRIO PCIe
3.3V
IN
BUS1
AVDD
RS232
CVDD UART0 RS422/485
INT[2:0] GPIO COM
Power CVDD1 Line Driver
Supply DVDD15
Controller DVDD18
VDDR
VDDT SGMII Gigabit ETH
MDIO PHY
VCNTL
D[7:0]
A[19:16] I2C Level Shifter I2C
Core
A[5:0]
CTRL SRIO/SGMII
Clock Synthesizer USB 1.1
PCIe
UART1 Controller USB
DDR3
Bootmode
Timer0 GPIO MUX, CPLD PRGIO
GPIO[1:0]
MUX Timer1
GPIO
DDR3 - 1333
Board Controller DDR3 512M Bytes
CPLD 32-Bit wide
TMS320C6657
Remove the D.Module.2 board and the base board from the pack-
age and mount the D.Module2 board on the base board as shown
in the diagram above. Make sure the orientation is correct., do not
use excessive force to insert the module.
+AVCC
-AVCC
AGND
+3.3V
0V
DCIN
GTP
RS232
BUS1
COM
D.Module2 USB
ETH
BUS2
EXP
SETUP / Test
RESET / Pwr
worthy site on the Internet. Configure the terminal to the COM port
the D.Module2 is connected to, 115200 baud, 8 data bits, 1 stop bit,
no parity.
If your PC is not equipped with a RS232 port you can alternatively
use the USB port. You may need to install the USB drivers from the
support software. The USB driver is a VCP Virtual Com Port driver.
After connecting the D.Module2 a new COM port will be added to
your system. Configure the terminal program to this COM port.
Now hold the SETUP button down, press and release RESET, and
finally release SETUP. The Set-Up utility menu will show up on your
terminal screen.
The sample programs in the support output information, instructions
and results via the RS232 UART connection. You can change this
to USB:
• change line
h_uart = DM2_uartOpen(DM2_UART0);
in main.c to
h_uart = DM2_uartOpen(DM2_UART1);
• rebuild the project
3 Software
The default code generation and debugging environment for the
D.Module2.C6657 is the Texas Instruments Code Composer Stu-
dio. The TMS320C6657 is supported from version 5 and above.
Some additional packages might be required, depending on your
application:
• dsplib_c66x – FFTs, Filter, Autocorrelation, etc.
• imglib_c66x – image processing algorithms
• mathlib_c66x – optimized floating point functions
• ipc – inter processor communications
• ndk – network (TCP/IP) library
• mcsdk – multicore software development support
4 Memory
4.2.2 L2RAM
The L2 memory is mapped to two address areas: At 0x0080.0000 it
is only accessible by the local core. The global addresses
0x1080.0000 and 0x1180.0000 allow to access the other core's L2
memory. These global addresses must also be used for DMA trans-
fers and to allow boot-loading programs. Access to the local
address (0x0080.0000) is not possible for the DMA controllers.
Also, since only core 0 is able to boot-load programs, you must use
the global core 1 addresses to allow core 0 to write core 1 memory
during bootload.
L2 is by default configured as direct-mapped memory. It can be
used for data and program code. It is possible to use a part of the
L2 memory as L2 cache, which may improve performance if large
amounts of DDR3 data are used, e.g. in image processing.
To reconfigure the L2 memory please refer to the TMS320C66x
DSP Cache User Guide, Texas Instruments literature number
SPRUGY8, and use the CSL (Chip Support Library) Cache func-
tions.
4.2.3 MSM
This is a direct-mapped memory shared by both cores, usable for
code and data. On the D.Module2.C6657 the first 8K bytes of this
memory store the BIOS functions to make them accessible for both
cores. This memory area must be excluded in the linker command
file to prevent the BIOS functions from being overwritten.
4.3 DDR3
DDR3 is also a shared memory available to both cores and is
usable for code and data. It is readily initialized by the system star-
tup procedure. If large amounts of data or program code are alloc-
ated to the DDR3 memory the overall performance may be
increased by configuring a part of the L2 memory as a level-2
cache.
uint8_t buffer[16];
int32_t i;
NAND_writeSpare
(&NAND_devinfo, BAD_BLOCK_NUMBER, 0, buffer);
NAND_markBadBlock
(&NAND_devinfo, BAD_BLOCK_NUMBER);
5.1 UARTCTRL
D7..D2 D1, D0
not used, always read 0 Line Driver Configuration:
00 – RS232
01 – RS422
10 – RS484 Receiver
11 – RS485 Transmitter
Reset Value: 0x00
DM2.BIOS function DM2_uartSetLineif
5.2 BUSCTRL
D7 D6 D5..D0
RESOUT UPPRESET not used, always read 0
1: RESOUTN asserted 1: TCA6408 in Reset
0: RESOUTN de-asserted 0: TCA6408 active
Reset Value: 0xC0
DM2.BIOS function DM2_busConfig
5.3 DSPCTRL
D7 D6 D5 D4 D3 D2 D1, D0
RESET unused BOOTMUX unused LRNMIEN LRESET CORESEL
5.4 SETUPSTAT
D7..D3 D2 D1 D0
unused, 0 SETUPN IN1N IN0N
read only read only read onyl
DM2.BIOS function DM2_dspSetupstat
5.5 FLASHCTRL
D7..D2 D1 D0
unused, 0 NANDWP SPIWP
1: write protect 1: write protect
0: not protected 0: not protected
5.6 GPIOMUX
This register is split in two parts: GPIOMUXLO controls the usage
of the External Bus Interface GPIO0 and GPIO1 pins, GPIOMUXHI
controls GPIO2 and GPIO3 pins.
D7..D4 D3.. D0
GPIO1MUX GPIO0MUX
0000: DSP_GPIO[5] in 0000: DSP_GPIO[4] in
0001: DSP_TIMI0 0001: DSP_TIMI0
0010: DSP_TIMI1 0010: DSP_TIMI1
1000: DSP_GPIO[5] out 1000: DSP_GPIO[4] out
1001: DSP_TIMO0 1001: DSP_TIMO0
1010: DSP_TIMO1 1010: DSP_TIMO1
1110: low 1110: low
1111: high 1111: high
Reset Value: 0x00
DM2.BIOS function: DM2_gpioMap
D7..D4 D3.. D0
GPIO3MUX GPIO2MUX
0000: DSP_GPIO[7] in 0000: DSP_GPIO[6] in
0001: DSP_TIMI0 0001: DSP_TIMI0
0010: DSP_TIMI1 0010: DSP_TIMI1
1000: DSP_GPIO[7] out 1000: DSP_GPIO[6] out
1001: DSP_TIMO0 1001: DSP_TIMO0
1010: DSP_TIMO1 1010: DSP_TIMO1
1110: low 1110: low
1111: high 1111: high
Reset Value: 0x00
DM2.BIOS function: DM2_gpioMap
5.7 ETHCTRL
D7 D6..D1 D0
PHYRESET Unused, 0 PHYINT, read only
Reset Value: 0x80
DM2.BIOS function: DM2_phyReset, DM2_phyGetInt
5.8 PCIECTRL
D7 D6, D5 D4 D3 D2 D1 D0
PCIE PCIESS CLKSEL SIDE1DIR SIDE0DIR SIDE1DAT SIDE0DAT
SSEN MODE
DSP pin DSP pins 1: internal 1: output 1: output If input: If input:
0: external 0: input 0: input state of pin state of pin
REFCLK in output: in output:
from GTP data driven data driven
connector on pin on pin
Reset Value: 0x00
DM2.BIOS function DM2_pcieConfig, DM2_pcieGetSide
5.9 BOOTMOD
This register is split in two parts, BOOTMODLO and BOOTMODHI.
It is reserved for production tests and initial configuration and
defines the DSP boot configuration.
D7 D6 D5 D4 D3 D2 D1 D0
BOOT7 BOOT6 BOOT5 BOOT4 BOOT3 BOOT2 BOOT1 BOOT0
Reset Value: 0x06
DM2.BIOS function DM2_dspSetBootmode
D7 D6, D5 D4 D3 D2 D1 D0
LENDIAN Unused, 0 BOOT12 BOOT11 BOOT10 BOOT9 BOOT8
Reset Value: 0x93
DM2.BIOS function DM2_dspSetBootmode
5.10 PRGIODATLO
D7 D6 D5 D4 D3 D2 D1 D0
PRGIO7 PRGIO6 PRGIO5 PRGIO4 PRGIO3 PRGIO2 PRGIO1 PRGIO0
Reset Value: 0x00
DM2.BIOS function DM2_prgioRead, DM2_prgioWrite, DM2_prgioWriteLo
5.11 PRGIODIR
PRGIO[7:0] are completely implemented in the board logic.
PRGIO[15:8] are connected to the DSP GPIO[15:8] pins, but buf-
fered and level-shifted in the board logic.
This register is split into two parts: PRGIODIRLO controls the direc-
tion of the PRGIO[7:0] pins. PRGIODIRHI controls the buffer direc-
tion of the PRGIODIR[15:8] pins. The data direction of PRGIO[15:8]
must additionally programmed in the DSP GPIO registers. The
BIOS function DM2_prgioConfig takes care of the required configur-
ation and configures both board logic and DSP.
D7 D6 D5 D4 D3 D2 D1 D0
PRGIO7 PRGIO6 PRGIO5 PRGIO4 PRGIO3 PRGIO2 PRGIO1 PRGIO0
1: port pin is output
0 : port pin is input
Reset Value: 0x00
DM2.BIOS function DM2_prgioConfig
D7 D6 D5 D4 D3 D2 D1 D0
PRGIO15 PRGIO14 PRGIO13 PRGIO12 PRGIO11 PRGIO10 PRGIO9 PRGIO8
1: port pin is output
0 : port pin is input
Reset Value: 0x00
DM2.BIOS function DM2_prgioConfig
T_Handle h_i2c;
uint8_t i2c_tx[2];
// enable TCA6408
DM2_busConfig(0);
EN
UPP_CH0_WAIT D0
UPP_CH0_ENABLE D2
UPP_CH0_START D4
UPP_CH0_CLK D6
DIR
EN
UPP_CH1_WAIT D1
UPP_CH1_ENABLE D3
UPP_CH1_START D5
UPP_CH1_CLK D7
DIR
EN
UPP_2XTXCLK WAIT_N
EN
UPPD[7:0] D[23:16]
DIR
EN
UPPD[15:8] D[31:24]
DIR
EN
UPPXD[7:0] A[8:1]
DIR
EN
UPPXD[15:8] A[16:9]
DIR
P0 P3 P4 P1 P2 D.Module2 BUS1,
C6657 I2C BUS2 connector
RESET TCA6408
BUSCONFIG.UPPRES
For detailed information about the EMIF please refer to the Texas
Instruments KeyStone Architecture External Memory Interface
(EMIF16) User Guide SPRUGZ3.
EMIF_CE2 CS0_N
EMIF_CE3 CS1_N
EMIF_OE OE_N
EMIF_RD RD_N
EMIF_WR WR_N
EMIF_R/W
DIR
EMIF_D[15:0] D[31:16]
EN
&
EMIF_A[23] A[0]
EMIF_A[18:0] A[19:1]
EMIF_WAIT1 WAIT_N
SYCLKOUT BUSCLK
BUSCONFIG.RESOUT RESOUT_N
D.Module2 BUS1,
C6657 BUS2 connector
Care must be taken if the GPIO pins are mapped to DSP timer
inputs: Only one GPIO pin is allowed to drive the DSP timer input,
do not assign more than one GPIO signal to the same timer input! A
timer output may however be mapped to multiple Bus GPIO pins.
Use BIOS function DM2_gpioMap to assign signals to the Bus
GPIO pins. This function will also configure the DSP GPIO peri-
pheral accordingly. Use the CSL functions to read and write DSP
GPIO signals.
GPIO.MUXLO
DSP_GPIO[4]
3.3V
DSP_GPIO[5]
DSP_GPIO[6]
GPIO0
DSP_GPIO[7]
+3.3V
0V
GPIO1
C6657
GPIO2
3.3V
DSP_TIMI0
DSP_TIMI1
GPIO3
DSP_TIMO0
DSP_TIMO1
GPIO.MUXHI
BUSCLK (BUS1-6)
In EMIF mode all external bus signals switch synchronously to this
clock output. Can be used to interface synchronous logic, or as a
general purpose clock source. The BUSCLK frequency is fixed to
1/6 CPU Core clock, e.g. 166.67MHz on a 1GHz TMS320C6657
7 McBSP
The two C6657 Multi-Channel Buffered Serial Ports are available
on the BUS-2 and EXP connectors. These ports are buffered by
auto-direction sensing level shifters to achieve 3.3V LVCMOS level
compliance.
8 SPI
The C6657 provides a single SPI master port with two Slave Select
outputs. SPICS0 is connected to the on-board SPI NOR Flash.
SPICS1 is available to enable external SPI slave devices. SPI slave
select signals are active-low, I.e. a low level activates a slave
device. Slave devices must disable (3-state) their MISO output if
not selected. The external SPI signals are fed through level shifters
and are 3.3V LVCMOS compliant.
The C6657 SPI peripheral uses four SPIFMT registers. These
registers allow to pre-define different formats (clock, phase, polarity,
word-lenght) to match the slave device. SPIFMT0 is reserved for
use with the on-board SPI NOR Flash, no restrictions apply to SPI-
FMT1..3. Please use the DM2.BIOS SPI functions or the Texas
Instruments Chip Support Library to program the SPI port.
If more than one external slave select lines are required, you can
use the PRGIO signals as slave select. These signals must be
enabled before the slave device is accessed, and disabled if the
transfer is complete by using DM2.BIOS function DM2_prgioWrite().
You may add external OR-gates to logically combine a PRGIO sig-
nal with SPICS1 to assure the slave select line is automatically
enabled and disabled with the timing defined in the SPIFMT
register.
9 I²C
The I²C bus is available on the COM connector. It is 3.3V LVCMO
compliant.
Pin Signal
COM-37 SCL
COM-39 SDA
I2C clock must be 100kHz to communicate with the AVR, all other
devices support 400kHz clock.
The Si5338 clock synthesizer is programmed by the AVR at system
start-up. The DSP must not re-program this device.
10 PRGIO
The 16 PRGIO signals PRGIO[15:0] on the D.Module2 COM con-
nector can be used for various functions, e.g. read input keys, drive
LEDs, or configure external peripheral devices.
PRGIO[7:0] are controlled by registers in the board logic. Since the
board logic is connected to the DSP EMIF, these PRGIO ports are
not accessible if the DSP uses the UPP peripheral. (please refer to
"External Bus Interface").
PRGIO[15:8] are connected to the DSP GPIO[15:8] signals and can
be used without restrictions in both EMIF and UPP mode.
PRGIO[15:8] can also be used as additional interrupts or EDMA
trigger events if the DSP is configured accordingly.
3.3V
DSP_GPIO[15:8] PRGIO[15:8]
PROGIO.DIRHI
C6657
3.3V
D.Module2 COM
PRGIO.DIRLO Connector
All PRGIO pins use 3.3V LVCMOS I/O levels and have internal pull-
up resistors (approx. 25K). If long connections are used on inputs, it
is advisable to add lower value external pullup resistors for better
noise margin. If an input requires a pull-down resistor, this must be
11 Interrupts
All 6657 GPIO signals are able to generate interrupts and/or EDMA
trigger events. The mapping of the predefined interrupt signals is:
BUS INT0_N -> DSP_GPIO[0]
BUS INT1_N -> DSP_GPIO[1]
BUS INT2_N -> DSP_GPIO[2]
ETH PHY INT -> DSP_GPIO[3]
Additional interrupts can be generated from BUS GPIO[3:0] if these
are routed to the DSP GPIO signals GPIO[7:4], see "External Bus
Interface" for more information about BUS GPIO pin routing.
It is also possible to use the PRGIO[15:8] pins on the COM con-
nector as interrupt sources if the corresponding input is configured
as an input. The PRGIO[15:8] signals are connected to DSP
GPIO[15:8].
GPIO0 INT0_N
GPIO1 INT1_N
GPIO2 INT2_N
88E1112
GPIO3 ETH PHY D.Module2 BUS1
INT Connector
3.3V
NMI ALERT
D.Module2 EXP
TMP101 ATMega Connector
C6657
ALERT ALERT
I2C
LRESETNMIEN DSP.LRESETNMIEN
CORESEL0 DSP.CORESEL0
CORESEL1 DSP.CORESEL1
The dedicated BUS INTx pins have 10K pull-up resistors on board,
all others use internal pull-up resistors, approx. 25K. This configura-
tion assumes default falling-edge triggered interrupts. If the interrupt
polarity is reversed to rising-edge triggered, and the signals are
driven from open source or 3-state logic, external pull-down resist-
ors are required. These must be sufficiently low to override the pull-
up resistors: For BUS INT[2:0]_N, the minimum value is 1K, for all
other signals the minimum value is 3K3.
The 6657 NMI (non maskable interrupt) input is connected to the
on-board ALERT signal. An NMI is generated if the board temperat-
ure threshold is exceeded, or if an attached fan fails. The board
temperature threshold is programmed in the TMP101 temperature
sensor. If a fan is used for forced convection cooling, the AtMega
controller on the D.Module2.C6657 board can be instructed to con-
trol the fan speed and monitor the fan tacho output. The ALERT
signal will be asserted if a fan speed > 0 is requested, but no tacho
pulses are detected.
ALERT is an open-drain signal. It is also accessible on the EXP
connector pin 31. The open-drain configuration allows to connect
external sources with open-drain outputs, which can also trigger an
NMI. The NMI must be enabled and routed to one of the two DSP
cores, or to both cores. This is a hardware setting which is done in
the Board Configuration Logic. Use BIOS function DM2_dspConfig:
DM2_dspConfig(
DM2_DSPGPIOENABLE
| DM2_LRESETNMIENABLE
| DM2_CORESEL0);
will enable NMI and route NMI events to Core 0. It is also required
to configure the 6657 interrupt subsystem to handle NMI events.
Use the CSL functions to configure the DSP appropriately. Please
refer to the “temperature” and “fan” support software example pro-
jects. Detailed information is found in the Texas Instruments Key-
Stone Architecture Interrupt Controller (INTC) User Guide
SPRUGW4.
result = DM2_flashIhexUpload(
uart_readline,
h_uart);
switch (result)
{
// evaluate result:
// 0 success
// 1 terminated
// 2 Intel-Hex format error
// 3 Intel-Hex checksum error
// 4 Flash Erase or Write Error
}
}
14 Ethernet
The D.Module2.C6657 provides a 1000Base-T Ethernet Port. Mag-
netics are included on-board. Alternatively a fibre-optic transceiver
can be connected. To use the Ethernet port the PHY has to be
taken out of reset by calling BIOS function DM2_phyReset(); The
PHY is a Marvell 88E1112. It is connected to the DSP via the
SGMII and MDIO ports. The PHY address is 0.
The SGMII reference clock on the D.Module2.C6657 is 156.25MHz.
The SGMII port PLL has to be programmed accordingly. Please
refer to the sample software.
The PHY status LEDs are included on board. If you prefer to use
external status LEDs the on-board LEDs should be de-soldered.
MDI0P ETH_DA_P
MDI0N ETH_DA_N
100Base-Tx
MDI1P ETH_DB_P
CS1_N
MDI1N ETH_DB_N
1000Base-T
MDI2P ETH_DC_P
MDI2N ETH_DC_N
MDI3P ETH_DD_P
MDI3N ETH_DD_N
ETH_GND
ETH.INT INT
240R
STATUS0 ETH_LED0
240R
STATUS1 ETH_LED1
R1315 R1316
0R 0R
100R
FINP ETH_FIN_P
FINN ETH_FIN_N
R1310 NP
FOUTP ETH_FOUT_P
CS1_N
FOUTN ETH_FOUT_N
R1311 NP
SIGDET ETH_SD
82R
D.Module2 EXP
88E1112 ETH PHY Connector
SRIO_TX0_P SRIO_TX0_P
SRIO_TX0_N SRIO_TX0_N
SRIO_RX0_P SRIO_RX0_P
SRIO_RX0_N SRIO_RX0_N
SRIO_TX1_P SRIO_TX1_P
SRIO_TX1_N SRIO_TX1_N
SRIO_RX1_P SRIO_RX1_P
SRIO_RX1_N SRIO_RX1_N
PCIE_TX0_P PCIE_PERp0
PCIE_TX0_N PCIE_PERn0
PCIE_RX0_P PCIE_PETp0
PCIE_RX0_N PCIE_PETn0
PCIE_TX1_P PCIE_PERp1
PCIE_TX1_N PCIE_PERn1
PCIE_RX1_P PCIE_PETp1
PCIE_RX1_N PCIE_PETn1
PCIE.SIDE0DAT PCIE_SIDE0
DIR
PCIE.SIDE0DIR
PCIE.SIDE1DAT PCIE_SIDE1
DIR
PCIE.SIDE1DIR
PCIE_REFCLK_P
PCIE_REFCLK_N
PCIE_CLK_P
PCIE_CLK_N
D.Module2 GTP
Connector
C6657 PCIE.CLKSEL 100MHz
16 Real-Time Clock
The RTC is implemented in the ATmega48 controller on the D.Mod-
ule2.C6657 board. The DSP writes or reads the RTC via I2C.
The slave address is 0x49
The RTC_READ command is 0x10
The RTC_WRITE command is 0x20
Data is transferred in six bytes using the C struct tm format:
sec(ond) 0..59
min(ute) 0..59
hour 0..23
mday 1..31
mon(th) 0..11
year 0..255 offset from 1900
Read RTC:
.---.--------------.--.----------.---.---.---------------.---.
| S | SLAVEADDR +W | a| RTC_READ | a | S | SLAVEADDR + R | a |
'---'--------------'--'----------'---'---'---------------'---'
.-----.--.-----.--.-----.--.-----.--.-----.--.-----.----.---.
| sec | A| min | A| hour| A| mday| A| mon | A| year| NA | P |
'-----'--'-----'--'-----'--'-----'--'-----'--'-----'----'---'
Write RTC:
.---.---------------.--.-----------.---.
| S | SLAVEADDR + W | a| RTC_WRITE | a | ...
'---'---------------'--'-----------'---'
.----.---.----.---.-----.---.-----.---.----.---.-----.---.---.
| SEC| a | MIN| a | HOUR| a | MDAY| a | MON| a | YEAR| a | P |
'----'---'----'---'-----'---'-----'---'----'---'-----'---'---'
Legend:
S = start, generated by master
P = stop, generated by master
A = Acknowledge, generated by master
NA = Not Acknowledge, generated by master
Read Revolutions:
.---.---------------.--.------------.---.---.---------------.
| S | SLAVEADDR + W | a| FAN_GETREV | a | S | SLAVEADDR + R |
'---'---------------'--'------------'---'---'---------------'
---.-----.----.---.
a | rev | NA | P |
---'-----'----'---'
Write PWM:
.---.---------------.--.------------.---.-----.---.---.
| S | SLAVEADDR + W | a| FAN_SETPWM | a | PWM | a | P |
'---'---------------'--'------------'---'-----'---'---'
Legend:
1K
FAN_PWMO (EXP-27)
alerts. Please note that in case of a blocked fan, or if the PWM out-
put is too low to startup the fan, most fans will wobble back and
forth and thereby generate tacho pulses. Do not expect the revolu-
tion count to be exactly 0 if the fan is blocked. Many fans generate
about 16 tacho pulses per second when blocked, so 9 might be a
suitable alert threshold (alert if less than 9 pulses per 1/2 second).
This value might differ with fan type and must be empirically
determined.
The alert function checks the revolution count each second (two
measurement periods) to avoid false alarms caused by sporadic
loss of tacho pulses. If failure recovery is not possible, e.g. by
increasing the PWM output, new NMI events will be generated each
second. Send the FAN_SETALERT command with a value of 0 to
stop further NMIs.
You can use the sample project in the support software to control
your fan and determine the limits for minimum PWM duty cycle and
ALERT threshold.
18 Power Supply
The D.Module2.C6657 requires a single 3.3V +/-5% power supply.
The power supply must be connected to the COM connector pins 1-
4 (0V) and 5-8 (+3.3V).
All additionally required power rails for the DSP, Ethernet, DDR3,
etc. are generated on-board. The board logic ensures the proper
power supply sequencing. A power fail will reset the DSP. The
DSP will be re-started if the power supply rises above the minimum
level.
Power consumption mainly depends on the CPU usage and the
amount of external data transfers (e.g. to and from DDR3). In a typ-
ical application it will be 5-6W. Since short term power requirements
may be higher, we recommend to use a power supply which is able
to retain the 3.3V up to 3A peak current.
19 Thermal Considerations
In a typical application the DSP itself will dissipate about 3.5W
power. A part of this heat is dissipated via the PCB board, but the
majority is dissipated via the heatsink. The large heatsink used on
the D.Module2.C6657 is suitable for convection cooling up to 55°C
environment temperature. If the environment temperature is higher,
forced cooling is required. Therefore the board provides a PWM
output to control a fan. The fan can be set to a suitable speed to
keep the board temperature within limits while keeping acoustic
noise as low as possible.
The board temperature can be read via I2C from a TMP101 sensor.
This sensor can be programmed to generate an alert signal and
send an NMI interrupt to the DSP if a temperature limit is exceeded.
Please refer to the “temperature” sample project in the support soft-
ware.
We strongly recommend to add temperature supervision to your
projects. High-speed processors are prone to thermal runaway, i.e.
if the CPU temperature rises, the baseline power consumption,
even without any CPU activity, will rise and hence increase the
power dissipation and CPU temperature even more.
20 Reset
On board power-supply supervisors provide a clean power-on reset
and reset the board if a power rail falls below its limit. A manual
reset input is available on the COM connector pin 11. Do not keep
the board in reset for prolonged time (several minutes), the silicon
technology of the 6657 does not allow this.
22 Setup Utility
The Setup Utility is a utility program for field maintenance and soft-
ware updates. It is permanently stored in the SPI NOR Flash and
can be invoked by holding the SETUPN input on the COM con-
nector low during a system reset or at power-on. Setup communi-
cates via UART and/or USB. Both interfaces are enabled by
default. Setup uses the communication settings specified in the
Module Configuration File. If the UART port is connected to system
hardware, e.g. a sensor, you can disable UART transfers in Setup
by changing the “quietsetup” parameter in the Module Config file to
'1'.
b boot-load a program from the SPI NOR Flash. You are prompted
for the core number to boot (0 or 1) and the address of the pro-
gram file in the Flash Memory. This command can be used to
start auxiliary programs, e.g. diagnostic or calibration programs.
To test this mode enter 10000 – this will restart the Setup Utility
r read memory. Enter the data format <b>yte (8-bit), <h>alfword
(16-bit) or <w>ord (32-bit), followed by a <,> and the address or
address range. An address range is entered as <start>..<end>.
Example: r ↵ b,800000..8000ff ↵
w write memory. Enter the data format <b>yte (8-bit), <h>alfword
(16-bit) or <w>ord (32-bit), followed by a <,>, the address or
address range, a <,>, and the data. An address range is entered
as <start>..<end>. If an address range is specified, the entire
range is filled with the data pattern.
Example: w ↵ h,800000..8000ff,12ab ↵
i Information. This commands prints serial number, hardware and
firmware revisions and CPU configuration and revision data.
h help, print an overview of the available commands.
23 Getting Support
D.SignT Support:
http://www.dsignt.de/support/ or mailto:support@disgnt.de
Keystone processors:
http://processors.wiki.ti.com/index.php/Keystone_Device_Architec-
ture
Emulation:
http://processors.wiki.ti.com/index.php/Category:Emulation
Document History:
1.0 first release 2013-05-03
1.1 added NAND Flash 2013-05-16