Freescale Semiconductor, Inc.

Freescale Semiconductor, Inc.

4.4.3 SIM40 Example Configuration Code

The following code is an example configuration sequence for the SIM40 module.

***************************************************************************

*MC68340 basic SIM40 register initialization example code:

*This code is used to initialize the MC68340's internal SIM40 registers,

*providing basic functions for operation.

*It includes chip select programming for external devices.

*This code would be programmed beginning at offset $0 into ROM which is

*relocated to address $60000 by the initialization code.

*The SSP_VEC and RST_VEC vectors used to initialize the system stack

*pointer and initial PC, respectively, are located at offset $0 after

*reset.

***************************************************************************

*equates

***************************************************************************

SSP_INIT

EQU

$10000

Stack pointer initial value - top of RAM

MBAR

EQU

$0003FF00

Address of Module Base Address Reg.

MODBASE

EQU

$FFFFF000

Default Module Base address value

****************************************

* SIM40 register offsets from MBAR base address

MCR

EQU

$00

SYNCR

EQU

$04

SYPCR

EQU

$21

CSAM0

EQU

$40

CSBAR0

EQU

$44

CSAM1

EQU

$48

CSBAR1

EQU

$4c

CSAM2

EQU

$50

CSBAR2

EQU

$54

CSAM3

EQU

$58

CSBAR3

EQU

$5c

***************************************************************************

*Reset vectors

*These two vectors should be located at addresses $0 and $4 after a processor

*hardware reset.

***************************************************************************

ORG $60000

SSP_VEC

DC.L

SSP_INIT

Supervisor stack pointer - initial value

RST_VEC

DC.L

INIT340

Reset vector pointing to initialization code

4- 38MC68340 USER’S MANUALMOTOROLA

For More Information On This Product,

Go to: www.freescale.com

Page 135
Image 135
Motorola MC68340 manual Sspinit EQU, Mbar EQU, Modbase EQU $FFFFF000, Mcr Equ, Syncr EQU, Sypcr EQU, CSAM0 EQU, CSBAR0 EQU

MC68340 specifications

The Motorola MC68340 is a highly integrated microprocessor that was introduced in the early 1990s. It belongs to the 68000 family of microprocessors and is designed to cater to the demands of embedded systems, particularly in telecommunications and networking applications. This chip represents a significant evolution in microprocessor technology by combining a microprocessor core with additional peripherals on a single chip, making it an attractive solution for engineers looking to design compact and efficient systems.

One of the key features of the MC68340 is its 32-bit architecture, which allows for significant processing power and data handling capabilities. This architecture enables the processor to handle larger data sizes and perform more complex calculations compared to its 16-bit predecessors. The MC68340 operates at clock speeds typically ranging from 16 MHz to 25 MHz. Its dual instruction pipeline enhances throughput, allowing for simultaneous instruction fetches and executions, which significantly boosts performance.

A notable characteristic of the MC68340 is the inclusion of integrated peripherals, which help reduce the overall component count in a system. Key integrated components include a memory management unit (MMU), a direct memory access (DMA) controller, and various communication interfaces such as serial ports. The memory management capabilities enhance the processor's ability to manage memory resources efficiently, enabling it to support multitasking environments commonly found in modern computing.

In terms of connectivity, the MC68340 features connections for both synchronous and asynchronous serial communication, making it well-suited for networking tasks. The processor supports a range of bus standards, including address and data buses, which facilitate seamless interaction with peripheral devices.

Another important aspect of the MC68340 is its flexibility. The processor supports multiple operating modes, including multiple CPU configurations and compatibility with the Motorola 68000 family, allowing for easier integration into existing systems.

Moreover, the MC68340 boasts low power consumption compared to many of its contemporaries, making it an excellent choice for battery-operated applications, enhancing its appeal in sectors like telecommunications, industrial control, and automotive systems. Its combination of performance, integration, versatility, and efficiency has secured the MC68340 a reputable position in the annals of embedded systems technology, proving to be a valuable asset for developers and engineers alike.