CR16MBR5VJE8Y [ETC]
Microcontroller ; 微控制器\n型号: | CR16MBR5VJE8Y |
厂家: | ETC |
描述: | Microcontroller
|
文件: | 总8页 (文件大小:104K) |
中文: | 中文翻译 | 下载: | 下载PDF数据表文档文件 |
January 2001
CR16MBR5 CompactRISC 16-Bit ROM Microcontroller
1.0 General Description
The CR16MBR5 CompactRISC™ microcontroller is a gen-
eral-purpose 16-bit microcontroller based on a Reduced
Instruction Set Computer (RISC) architecture. The device
operates as a complete microcomputer with all system tim-
ing, interrupt logic, ROM program memory, RAM, EE-
PROM data memory, and I/O ports included on-chip. It is
ideally suited to a wide range of embedded controller appli-
cations because of its high performance, on-chip integrat-
ed features and low power consumption resulting in
decreased system cost.
The CR16MBR5 offers the high performance of a RISC ar-
chitecture while retaining the advantages of a traditional
Complex Instruction Set Computer (CISC): compact code,
on-chip memory and I/O, and reduced cost. The CPU uses
a three-stage instruction pipeline that allows execution of
up to one instruction per clock cycle, or up to 25 million in-
structions per second (MIPS) at a clock rate of 25 MHz.
The CR16MBR5 device contains a FullCAN class, CAN
serial interface for low/high speed applications with 15 or-
thogonal message buffers, each supporting standard as
well as extended message identifiers.
Block Diagram
Fast Clk Slow Clk
CR16B
Processing
Unit
RISC Core
CR16CAN
FullCAN 2.0B
Clock Generator
Power-on-Reset
Core Bus
Bus
Interface
Unit
Power
Manage-
ment
32K-Byte
ROM
Memory
Peripheral
Interrupt
Control
2176-Byte
Timing and
Watchdog
3k-Byte
RAM
Bus
EEPROM
Data
Memory
Controller
Peripheral Bus
2x
USART
2 Analog
Comparators
ACCESS
bus
4x
VTU
2x
MFT
12-ch
8-bit A/D
I/O
MIWU
µWire/SPI
CompactRISC™ is a trademark of National Semiconductor Corporation.
©2001 National Semiconductor Corporation
1.0 General Description (Continued)
•
•
Power Supply
— 4.5V to 5.5V single-supply operation
Temperature Range
— –40°C to +85°C
— –40°C to +125°C
Development Support
— Real-time emulation and full program debug capabili-
ties available
The CR16MBR5 device has 32K bytes of ROM program
memory, 3K bytes of static RAM, two USARTs, two 16-bit
multi-function timers, one SPI/MICROWIRE-PLUS™ serial
interface, a 12-channel A/D converter, two analog compara-
tors, WATCHDOG™ protection mechanism, and up to 56
general-purpose I/O pins.
•
The CR16MBR5 device operates with a high-frequency crys-
tal as the main clock source and either the prescaled main
clock source or with a low frequency (32.768 kHz) oscillator
in Power Save mode. The device supports several Power
Save modes which are combined with multi-source interrupt
and wake-up capabilities.
— CompactRISC tools provide C programming and de-
bugging support
This device also has a Versatile Timer Unit (VTU) with four
timer sub-systems, a CAN interface, and ACCESS.bus syn-
chronous serial bus interface.
Powerful cross-development tools are available from Nation-
al Semiconductor and third party suppliers to support the de-
velopment and debugging of application software for the
CR16MBR5. These tools let you program the application
software in C and are designed to take full advantage of the
CompactRISC architecture.
2.0 Features
•
CPU Features
— Fully static core, capable of operating at any rate from
0 to 25 MHz (4 MHz minimum in active mode)
— 40 ns instruction cycle time with a 20 MHz external
clock frequency
— Multi-source vectored interrupts (internal, external, and
on-chip peripheral)
— Dual clock and reset
•
•
On-chip power-on reset
On-Chip Memory
— 32K bytes ROM memory
— 3K bytes of static RAM data memory
— 2K bytes of non-volatile EEPROM data memory with
low endurance (25K cycles) and 128 bytes with high
endurance (100K cycles)
•
On-Chip Peripherals
— Two Universal Synchronous/Asynchronous Receiver/
Transmitter (USART) devices
— Two dual 16-bit multi-function timers (MFT1 and MFT2)
— 8/16-bit SPI/MICROWIRE-PLUS serial interface
— 12-channel, 8-bit Analog-to-Digital (A/D) converter with
external voltage reference, programmable sample-
and-hold delay, and programmable conversion fre-
quency
— ACCESS.bus synchronous serial bus
— FullCAN interface with 15 message buffers complaint
to CAN specification 2.0B active
— Versatile Timer Unit with four subsystems (VTU)
— Two analog comparators
— Integrated WATCHDOG logic
•
I/O Features
— Up to 56 general-purpose I/O pins (shared with on-chip
peripheral I/O pins)
— Programmable I/O pin characteristics: TRI-STATE out-
put, push-pull output, weak pull-up input, high-imped-
ance input
— Schmitt triggers on general purpose inputs
2
CR16 CompactRISC Microcontroller with CAN Interface Family Selection Guide
ROM devices
EEPROM
Speed
ROM
Data
SRAM
Temp.
Range
Package
Type
NSID
USART Timer I/Os
Peripherals
(MHz) (KByte) Memory (kBytes)
(Bytes)
2MFT
VTU
ADC, CAN,
Comparators
CR16MBR5VJExy
25
32
2176
3
2
56
E, I
80PQFP
Note:
•
Suffix x in the NSID is defined below:
Temperature Ranges:
I = Industrial
E = Extended
-40°C to +85°C is represented when x is 8
-40°C to +125°C is represented when x is 7
•
Suffix y in the NSID defines the ROM code.
Note: All devices contains Access.bus (ACB), Clock and
Reset, MICROWIRE/API, Multi-Input Wake-Up (MIWU),
Power Management (PMM), and the Real-Time Timer and
Watchdog (TWM) modules. Access.bus is compatible with
I2C bus offered by Philips Semiconductor.
CR16 CompactRISC Microcontroller with CAN Interface
Family Devices
National Semiconductor currently offers a variety of the
CR16 CompactRISC Microcontrollers with CAN interface.
The CR16MCS offer complete functionality in an 80-pin
PQFP package. The CR16MBR5 offers the reduced func-
tionality with 32K ROM memory.
3
3.0 Device Overview
The CR16MBR5 CompactRISC microcontroller is a com-
plete microcomputer with all system timing, interrupt logic,
program memory, data memory, and I/O ports included on-
chip, making it well-suited to a wide range of embedded con-
troller applications. The block diagram on page 1 of the data
sheet shows the major on-chip components of the
CR16MBR5.
The 3K bytes of static RAM are used for temporary storage
of data and for the program stack and interrupt stack. Read
and write operations can be byte-wide or word-wide, depend-
ing on the instruction executed by the CPU. Each memory
access requires one clock cycle; no wait cycles or hold cycles
are required.
There are two types of flash EEPROM data memory storage.
The 2K bytes of EEPROM data memory with low endurance
(25K cycles) and 128 bytes of flash EEPROM data memory
with high endurance (100K cycles) are used for non-volatile
storage of data, such as configuration settings entered by the
end-user.
3.1
CR16B CPU CORE
The CR16MBR5 uses a CR16B CPU core module. This is
the same core used in other CompactRISC family member
designs, like DECT or GSM chipsets.
The high performance of the CPU core results from the im-
plementation of a pipelined architecture with a two-bytes-per-
cycle pipelined system bus. As a result, the CPU can support
a peak execution rate of one instruction per clock cycle.
The 32K bytes of flash EEPROM program memory are used
to store the application program. It has security features to
prevent unintentional programming and to prevent unautho-
rized access to the program code.
Compared with conventional RISC processors, the
CR16MBR5 differs in the following ways:
3.3
INPUT/OUTPUT PORTS
The CR16MBR5 device has 56 software-configurable I/O
pins, organized into seven 8-pin ports called Port B, Port C,
Port F, Port G, Port H, Port I, and Port L. Each pin can be con-
figured to operate as a general-purpose input or general-pur-
pose output. In addition, many I/O pins can be configured to
operate as a designated input or output for an on-chip periph-
eral module such as the USART, timer, A/D converter, or MI-
CROWIRE/SPI interface.
— The CPU core can use on-chip rather than external
memory. This eliminates the need for large and com-
plex bus interface units.
— Most instructions are 16 bits, so all basic instructions
are just two bytes long. Additional bytes are sometimes
required for immediate values, so instructions can be
two or four bytes long.
— Non-aligned word access is allowed. Each instruction
can operate on 8-bit or 16-bit data.
The I/O pin characteristics are fully programmable. Each pin
can be configured to operate as a TRI-STATE output, push-
pull output, weak pull-up input, or high-impedance input.
— The device is designed to operate with a clock rate in
the 10 to 25 MHz range rather than 100 MHz or more.
Most embedded systems face EMI and noise con-
straints that limit clock speed to these lower ranges. A
lower clock speed means a simpler, less costly silicon
implementation.
— The instruction pipeline uses three stages. A smaller
pipeline eliminates the need for costly branch predic-
tion mechanisms and bypass registers, while maintain-
ing adequate performance for typical embedded
controller applications.
3.4
BUS INTERFACE UNIT
The Bus Interface Unit (BIU) controls the interface between
the on-chip modules to the internal core bus. It determines
the configured parameters for bus access (such as the num-
ber of wait states for memory access) and issues the appro-
priate bus signals for each requested access.
The BIU uses a set of control registers to determine how
many wait states and hold states are to be used when ac-
cessing flash EEPROM program memory, ISP memory and
the I/O area (Port B and Port C). Upon start-up the configu-
ration registers are set for slowest possible memory access.
To achieve fastest possible program execution, appropriate
values should be programmed. These settings vary with the
clock frequency and the type of on-chip device being access-
ed.
For more information, please refer to the CR16B Program-
mer’s Reference Manual, Literature #: 633150.
3.2
MEMORY
The CompactRISC architecture supports a uniform linear ad-
dress space of 2 megabytes. The CR16MBR5 implementa-
tion of this architecture uses only the lowest 128K bytes of
address space. Three types of on-chip memory occupy spe-
cific intervals within this address space:
3.5
INTERRUPTS
The Interrupt Control Unit (ICU31L) receives interrupt re-
quests from internal and external sources and generates in-
terrupts to the CPU. An interrupt is an event that temporarily
stops the normal flow of program execution and causes a
separate interrupt service routine to be executed. After the in-
terrupt is serviced, CPU execution continues with the next in-
struction in the program following the point of interruption.
•
•
•
32K bytes of flash EEPROM program memory
3K bytes of static RAM
2K bytes of EEPROM data memory with low endurance
(25K cycles)
•
128 bytes with high endurance (100K cycles)
Interrupts from the timers, USARTs, MICROWIRE/SPI inter-
face, multi-input wake-up, and A/D converter are all
maskable interrupts; they can be enabled or disabled by the
software. There are 32 of these maskable interrupts, orga-
nized into 32 predetermined levels of priority.
4
The highest-priority interrupt is the Non-Maskable Interrupt
(NMI), which is generated by a signal received on the NMI in-
put pin.
and which also provides a general-purpose timer/
counter.
— Dual Independent Timer mode, which generates sys-
tem timing signals or counts occurrences of external
events.
3.6
MULTI-INPUT WAKE-UP
The Multi-Input Wake-Up (MIWU16) module can be used for
either of two purposes: to provide inputs for waking up (exit-
ing) from the HALT, IDLE, or Power Save mode; or to provide
general-purpose edge-triggered maskable interrupts from
external sources. This 16-channel module generates four
programmable interrupts to the CPU based on the signals re-
ceived on its 16 input channels. Channels can be individually
enabled or disabled, and programmed to respond to positive
or negative edges.
— Single Input Capture and Single Timer mode, which
provides one external event counter and one system
timer.
3.10
VERSATILE TIMER UNIT
The Versatile Timer Unit (VTU) module contains four inde-
pendent timer subsystems, each operating in either dual 8-
bit PWM configuration, as a single 16-bit PWM timer, or a 16-
bit counter with two input capture channels. Each of the four
timer subsystems offer an 8-bit clock prescaler to accommo-
date a wide range of frequencies.
3.7
DUAL CLOCK AND RESET
The Dual Clock and Reset (CLK2RES) module generates a
high-speed main system clock from an external crystal net-
work. It also provides the main system reset signal and a
power-on reset function.
3.11
REAL-TIME TIMER AND WATCHDOG
The Timing and Watchdog Module (TWM) generates the
clocks and interrupts used for timing periodic functions in the
system. It also provides Watchdog protection against soft-
ware errors. The module operates on the slow system clock.
This module also generates a slow system clock (32.768
kHz) from another external crystal network. The slow clock is
used for operating the device in power-save mode. Without
a 32.768kHz external crystal network, the low speed system
clock can be derived from the high speed clock by a prescal-
er.
The real-time timer can generate a periodic interrupt to the
CPU at a software-programmed interval. This can be used
for real-time functions such as a time-of-day clock. The real-
time timer can trigger a wake-up condition from power-save
mode via the Multi-Input Wake-Up module.
Also, two independent clocks divided down from the high
speed clock are available on output pins.
The Watchdog is designed to detect program execution er-
rors such as an infinite loop or a “runaway” program. Once
Watchdog operation is initiated, the application program
must periodically write a specific value to a Watchdog regis-
ter, within specific time intervals. If the software fails to do so,
a Watchdog error is triggered, which resets the device.
3.8
POWER MANAGEMENT
The Power Management Module (PMM) improves the effi-
ciency of the CR16MBR5 device by changing the operating
mode and therefore the power consumption according to the
required level of activity.
3.12
USART
The CR16MBR5 device can operate in any of four power
modes:
The USART supports a wide range of programmable baud
rates and data formats, and handles parity generation and
several error detection schemes. The baud rate is generated
on-chip, under software control.
— Active: The device operates at full speed using the
high-frequency clock. All device functions are fully op-
erational.
— Power Save: The device operates at reduced speed
using the slow clock. The CPU and some modules can
continue to operate at this low speed.
There are two independent USARTs in the CR16MBR5 de-
vice and they offer a wake-up condition from the power-save
mode via the Multi-Input Wake-Up module.
— IDLE: The device is inactive except for the Power Man-
agement Module and Timing and Watchdog Module,
which continue to operate using the slow clock.
— HALT: The device is inactive but still retains its internal
state (RAM and register contents).
3.13
MICROWIRE/SPI
The MICROWIRE/SPI (MWSPI) interface module supports
synchronous serial communications with other devices that
conform to MICROWIRE or Serial Peripheral Interface (SPI)
specifications. It supports 8-bit and 16-bit data transfers.
3.9
MULTI-FUNCTION TIMER
The MICROWIRE interface allows several devices to com-
municate over a single system consisting of four wires: serial
in, serial out, shift clock, and slave enable. At any given time,
the MICROWIRE interface operates as the master or a slave.
The CR16MBR5 supports the full set of slave select for multi-
slave implementation.
The Multi-Function Timer (MFT16) module contains two inde-
pendent timer/counter units called MFT1 and MFT2, each
containing a pair of 16-bit timer/counter registers. Each timer/
counter unit can be configured to operate in any of the follow-
ing modes:
— Processor-Independent Pulse Width Modulation
(PWM) mode, which generates pulses of a specified
width and duty cycle, and which also provides a gener-
al-purpose timer/counter.
In master mode, the shift clock is generated on chip under
software control. In slave mode, a wake-up out of power-
save mode is triggered via the Multi-Input Wake-Up module.
— Dual Input Capture mode, which measures the
elapsed time between occurrences of external events,
5
software in C and is designed to take full advantage of the
CompactRISC architecture.
3.14
CR16CAN
The CR16CAN device contains a FullCAN class, CAN serial
bus interface for applications that require a high speed (up to
1MBits per second) or a low speed interface with CAN bus
master capability. The data transfer between CAN and the
CPU is established by 15 memory mapped message buffers,
which can be individually configured as receive or transmit
buffers. An incoming message is filtered by two masks, one
for the first 14 message buffers and another one for the 15th
message buffer to provide a basic CAN path. A priority de-
coder allows any buffer to have the highest or lowest transmit
priority. Remote transmission requests can be processed au-
tomatically by automatic reconfiguration to a receiver after
transmission or by automated transmit scheduling upon re-
ception. In addition, a time stamp counter (16-bits wide) is
provided to support real time applications.
There are In-System Emulation (ISE) devices available for
the CR16MBR5 from iSYSTEM™, as well as lower-cost eval-
uation boards. See your National Semiconductor sales rep-
resentative for current information on availability and
features of emulation equipment and evaluation boards.
4.0 Memory Map
The CompactRISC architecture supports a uniform linear ad-
dress space of 2 megabytes. The device implementation of
this architecture uses only the lowest 128K bytes of address
space, ranging from 0000 to 1FFFF hex. Table 1 is a memory
map showing the types of memory and peripherals that occu-
py this memory space. Address ranges not listed in the table
are reserved and should not be read or written.
The CR16CAN device is a fast core bus peripheral, which al-
lows single cycle byte or word read/write access. A set of di-
agnostic features (such as loopback, listen only, and error
identification) support the development with the CR16CAN
module and provide a sophisticated error management tool.
Table 1 Device Memory Map
Address
Description
Range (hex)
a
0000-7FFF
C000-CBFF
E000-E5FF
E800-EFFF
ROM Program Memory
Static RAM (3K bytes)
ISP Memory(1.5K bytes)
The CR16CAN receiver can trigger a wake-up condition out
of the power-save modes via the Multi-Input Wake-Up mod-
ule.
Lower Endurance Flash EEPROM Data
Memory (2K bytes)
3.15
ACCESS.BUS INTERFACE
The ACCESS.bus interface module (ACB) is a two-wire seri-
al interface with the ACCESS.bus physical layer. It is also
compatible with Intel’s System Management Bus (SMBus)
F000-F07F
High Endurance Flash EEPROM Data
Memory (128 bytes)
2
and Philips’ I C bus. The ACB module can be configured as
F400-F7FF
F800-FAFF
FB00-FB06
FB00-FBFF
FB10-FB16
FC00-FFFF
FC40-FC8A
CAN buffers and registers (1K bytes)
BIU Peripherals (768 bytes)
Port B registers
a bus master or slave, and can maintain bi-directional com-
munications with both multiple master and slave devices.
The ACCESS.bus receiver can trigger a wake-up condition
out of the power-save modes via the Multi-Input Wake-Up
module.
I/O Expansion + Ports PB & PC (256 bytes)
Port C registers
3.16
A/D CONVERTER
Peripherals and other I/O Ports (1K bytes)
The A/D Converter (ADC) module is a 12-channel multi-
plexed-input analog-to-digital converter. The A/D Converter
receives an analog voltage signal on an input pin and con-
verts the analog signal into an 8-bit digital value using suc-
cessive approximation. The CPU can then read the result
from a memory-mapped register. The module supports four
automated operating modes, providing single-channel or 4-
channel operation in single or continuous mode.
Clock, Power Management, and Wake-Up
registers
FCA0-FCA8 Port G registers
FCC0-FCC8 Port H registers
FF00-FF08
FD20-FD28
FE00-FE1E
FE40-FE4E
FE60-FE66
FE80-FE8E
Port L registers
Port F registers
Interrupt Control Unit registers
USART 1 registers
MICROWIRE registers
USART 2 registers
3.17
ANALOG COMPARATORS
The Dual Analog Comparator (ACMP2) module contains two
independent analog comparators with all necessary control
logic. Each comparator unit compares the analog input volt-
ages applied to two input pins and determines which voltage
is higher. The CPU uses a memory-mapped register to con-
trol the comparator and to obtain the comparison results. The
comparison result can also be applied to comparator output
pins.
FEC0-FECA ACCESS.bus registers
FEE0-FEE8
FF20-FF2A
FF40-FF50
FF60-FF70
FF80-FFA4
FFC0-FFD0
FFE0-FFE0
Port I registers
Timer and WATCHDOG registers
Multi-function Timer1 registers
Multi-function Timer2 registers
Versatile Timer Unit registers
A/D Converter registers
3.18
DEVELOPMENT SUPPORT
A powerful cross-development tool set is available from Na-
tional Semiconductor and third parties to support the devel-
opment and debugging of application software for the
CR16MBR5. The tool set lets you program the application
Analog Comparator register
6
5.0 Device Pinouts
The CR16MBR5 is available in the 80-pin PQFP package.
Figure 1 shows the pin assignments for this package.
1
PC0
PC1
PC2
PC3
PC4
PC5
PC6
21
PL7
PL6
PL5
PL4
PL3
PL2
PL1
PL0
GND
Vcc
PC7
PG7
PG6
PG5
PG4
PG3
GND
PH3
PH2
PH1
PH0
AVcc
AGND
Vref
PI7
PG2
PG1
PG0
ENV1
PF7
PF6
61
PI6
PF5
41
•
•
Suffix x in the NSID is defined below:
Temperature Ranges:
x = 7 is -40°C to +125°C
= 8 is -40°C to +85°C
Suffix y in the NSID defines the ROM code.
Top View
Order Number CR16MBR5VJExy
See NS Package Number VJE80A
Figure 1 .80-Pin PQFP Package Connection Diagram
7
6.0
Physical Dimensions inches (millimeters) unless otherwise noted
80 Lead Molded Plastic Quad Flat Package
Order Number CR16MBR5VJExy
See NS Package Number VJE80A
LIFE SUPPORT POLICY
NATIONAL’S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT
DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF THE PRESIDENT AND GENERAL
COUNSEL OF NATIONAL SEMICONDUCTOR CORPORATION. As used herein:
1. Life support devices or systems are devices or systems 2. A critical component is any component of a life support
which, (a) are intended for surgical implant into the body,
or (b) support or sustain life, and whose failure to per-
form, when properly used in accordance with instructions
for use provided in the labeling, can be reasonably ex-
pected to result in a significant injury to the user.
device or system whose failure to perform can be rea-
sonably expected to cause the failure of the life support
device or system, or to affect its safety or effectiveness.
National Semiconductor
Corporation
National Semiconductor
Europe
National Semiconductor
Asia Pacific
National Semiconductor
Japan Ltd.
Tel: 1-800-272-9959
Fax: 1-800-737-7018
Email: support@nsc.com
Customer Response Group
Tel: 65-254-4466
Fax: 65-250-4466
Tel: 81-3-5639-7560
Fax: 81-3-5639-7507
Fax:
+49 (0) 180-530 85 86
Email: europe.support@nsc.com
Deutsch Tel:
+49 (0) 69 9508 6208
+44 (0) 870 24 0 2171
+33 (0) 1 41 91 8790
English Tel:
Francais Tel:
Email: ap.support@nsc.com
www.national.com
National does not assume any responsibility for use of any circuitry described, no circuit patent licenses are implied, and Nati onal reserves the right, at any time without notice, to change said circuitry or specifications.
相关型号:
©2020 ICPDF网 联系我们和版权申明