ChipFind - документация

Электронный компонент: CP3BT10G38

Скачать:  PDF   ZIP

Document Outline

2005 National Semiconductor Corporation
www.national.com
CP3
BT10 Repr
og
rammab
l
e Connectivity Pr
ocesso
r with Bluetooth and USB Interfaces
FINAL
APRIL 2005
CP3BT10 Reprogrammable Connectivity Processor
with Bluetooth
and USB Interfaces
1.0
General Description
The CP3BT10 connectivity processor combines high perfor-
mance with the massive integration needed for embedded
Bluetooth applications. A powerful RISC core with on-chip
SRAM and Flash memory provides high computing band-
width, communications peripherals provide high I/O band-
width, and an external bus provides system expandability.
On-chip communications peripherals include: Bluetooth
Lower Link Controller, USB, ACCESS.bus, Microwire/SPI,
UART, and Advanced Audio Interface (AAI). Additional on-
chip peripherals include DMA controller, CVSD/PCM con-
version module, Timing and Watchdog Unit, Versatile Timer
Unit, Multi-Function Timer, and Multi-Input Wakeup.
Bluetooth hand-held devices can be both smaller and lower
in cost for maximum consumer appeal. The low voltage and
advanced power-saving modes achieve new design points
in the trade-off between battery size and operating time for
handheld and portable applications.
In addition to providing the features needed for the next gen-
eration of embedded Bluetooth products, the CP3BT10 is
backed up by the software resources designers need for
rapid time-to-market, including an operating system, Blue-
tooth protocol stack implementation, reference designs, and
an integrated development environment. Combined with
National's LMX5252 Bluetooth radio transceiver, the
CP3BT10 provides a complete Bluetooth system solution.
National Semiconductor offers a complete and industry-
proven application development environment for CP3BT10
applications, including the IAR Embedded Workbench,
iSYSTEM winIDEA and iC3000 Active Emulator, Bluetooth
Development Board, Bluetooth Protocol Stack, and Applica-
tion Software.
Block Diagram
CPU Core Bus
12 MHz and 32 kHz
Oscillator
Peripheral Bus
PLL and Clock
Generator
Power-on-Reset
256K Bytes
Flash
Program
Memory
8K Bytes
Flash
Data
Bus
Interface
Unit
Peripheral
Bus
Controller
10K Bytes
Static
RAM
Serial
Debug
Interface
CR16C
CPU Core
DMA
Controller
Interrupt
Control
Unit
CVSD/PCM
Power
Manage-
ment
Timing and
Watchdog
Unit
ACCESS
.bus
Versatile
Timer Unit
Muti-Func-
tion Timer
Multi-Input
Wake-Up
GPIO
USB
Audio
Interface
Microwire/
SPI
UART
Clock Generator
Protocol
Core
RF Interface
Bluetooth Lower
Link Controller
4.5K Bytes
Data RAM
1K Byte
Sequencer RAM
DS144
Bluetooth is a registered trademark of Bluetooth SIG, Inc. and is used under license by National Semiconductor.
TRI-STATE is a registered trademark of National Semiconductor Corporation.
www.national.com
2
CP3BT10
Table of Contents
1.0
General Description . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2.0
CPU Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3.0
Device Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.1
CR16C CPU Core. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.2
Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.3
Input/Output Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.4
Bus Interface Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.5
Interrupt Control Unit (ICU) . . . . . . . . . . . . . . . . . . . . . . . 4
3.6
Bluetooth LLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.7
USB. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.8
Multi-Input Wake-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.9
Triple Clock and Reset . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.10
Power Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.11
Multi-Function Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.12
Versatile Timer Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.13
Timing and Watchdog Module . . . . . . . . . . . . . . . . . . . . 5
3.14
UART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.15
Microwire/SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.16
ACCESS.bus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.17
DMA Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.18
Advanced Audio interface . . . . . . . . . . . . . . . . . . . . . . . . 6
3.19
CVSD/PCM Conversion Module . . . . . . . . . . . . . . . . . . . 6
3.20
Serial Debug Interface . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.21
Development Support . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4.0
Device Pinouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4.1
Pin Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5.0
CPU Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.1
General-Purpose Registers . . . . . . . . . . . . . . . . . . . . . 16
5.2
Dedicated Address Registers . . . . . . . . . . . . . . . . . . . . 16
5.3
Processor Status Register (PSR) . . . . . . . . . . . . . . . . . 17
5.4
Configuration Register (CFG) . . . . . . . . . . . . . . . . . . . . 18
5.5
Addressing Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5.6
Stacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5.7
Instruction Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
6.0
Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.1
Operating Environment . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.2
Bus Interface Unit (BIU) . . . . . . . . . . . . . . . . . . . . . . . . 26
6.3
Bus Cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6.4
BIU Control Registers . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6.5
Wait and Hold States . . . . . . . . . . . . . . . . . . . . . . . . . . 29
7.0
System Configuration Registers . . . . . . . . . . . . . . . 30
7.1
Module Configuration Register (MCFG) . . . . . . . . . . . . 30
7.2
Module Status Register (MSTAT) . . . . . . . . . . . . . . . . . 30
8.0
Flash Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
8.1
Flash Memory Protection . . . . . . . . . . . . . . . . . . . . . . . 31
8.2
Flash Memory Organization . . . . . . . . . . . . . . . . . . . . . 31
8.3
Flash Memory Operations. . . . . . . . . . . . . . . . . . . . . . . 32
8.4
Information Block Words. . . . . . . . . . . . . . . . . . . . . . . . 33
8.5
Flash Memory Interface Registers . . . . . . . . . . . . . . . . 35
9.0
DMA Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
9.1
Channel Assignment. . . . . . . . . . . . . . . . . . . . . . . . . . . 41
9.2
Transfer Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
9.3
Operation Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
9.4
Software DMA Request . . . . . . . . . . . . . . . . . . . . . . . . 43
9.5
Debug Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
9.6
DMA Controller Register Set. . . . . . . . . . . . . . . . . . . . . 43
10.0
Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
10.1
Non-Maskable Interrupts. . . . . . . . . . . . . . . . . . . . . . . . 47
10.2
Maskable Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
10.3
Interrupt Controller Registers . . . . . . . . . . . . . . . . . . . . 47
10.4
Maskable Interrupt Sources . . . . . . . . . . . . . . . . . . . . . 49
10.5
Nested Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
11.0
Triple Clock and Reset . . . . . . . . . . . . . . . . . . . . . . . 51
11.1
External Crystal Network . . . . . . . . . . . . . . . . . . . . . . . 52
11.2
Main Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
11.3
Slow Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
11.4
PLL Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
11.5
System Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
11.6
Auxiliary Clocks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
11.7
Power-On Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
11.8
External Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
11.9
Clock and Reset Registers . . . . . . . . . . . . . . . . . . . . . . 55
12.0
Power Management . . . . . . . . . . . . . . . . . . . . . . . . . . 57
12.1
Active Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
12.2
Power Save Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
12.3
Idle Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
12.4
Halt Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
12.5
Hardware Clock Control . . . . . . . . . . . . . . . . . . . . . . . . 57
12.6
Power Management Registers . . . . . . . . . . . . . . . . . . . 58
12.7
Switching Between Power Modes. . . . . . . . . . . . . . . . . 59
13.0
Multi-Input Wake-Up . . . . . . . . . . . . . . . . . . . . . . . . . 61
13.1
Multi-Input Wake-Up Registers . . . . . . . . . . . . . . . . . . . 61
13.2
Programming Procedures . . . . . . . . . . . . . . . . . . . . . . . 63
14.0
Input/Output Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
14.1
Port Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
14.2
Open-Drain Operation. . . . . . . . . . . . . . . . . . . . . . . . . . 67
15.0
Bluetooth Controller . . . . . . . . . . . . . . . . . . . . . . . . . 68
15.1
RF Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
15.2
Serial Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
15.3
LMX5251 Power-Up Sequence . . . . . . . . . . . . . . . . . . . 72
15.4
LMX5252 Power-Up Sequence . . . . . . . . . . . . . . . . . . . 72
15.5
Bluetooth Sleep Mode . . . . . . . . . . . . . . . . . . . . . . . . . . 73
15.6
Bluetooth Global Registers . . . . . . . . . . . . . . . . . . . . . . 73
15.7
Bluetooth Sequencer RAM . . . . . . . . . . . . . . . . . . . . . . 73
15.8
Bluetooth Shared Data RAM . . . . . . . . . . . . . . . . . . . . . 74
16.0
USB Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
16.1
Functional States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
16.2
Endpoint Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
16.3
USB Controller Registers. . . . . . . . . . . . . . . . . . . . . . . . 78
16.4
Transceiver Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
17.0
Advanced Audio Interface . . . . . . . . . . . . . . . . . . . . . 94
17.1
Audio Interface Signals . . . . . . . . . . . . . . . . . . . . . . . . . 94
17.2
Audio Interface Modes . . . . . . . . . . . . . . . . . . . . . . . . . . 94
17.3
Bit Clock Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
17.4
Frame Clock Generation . . . . . . . . . . . . . . . . . . . . . . . . 97
17.5
Audio Interface Operation . . . . . . . . . . . . . . . . . . . . . . . 97
17.6
Communication Options. . . . . . . . . . . . . . . . . . . . . . . . . 99
17.7
Audio Interface Registers. . . . . . . . . . . . . . . . . . . . . . . 102
17.8
Usage Hints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
18.0
CVSD/PCM Conversion Module . . . . . . . . . . . . . . . 109
18.1
Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
18.2
PCM Conversions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
18.3
CVSD Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
18.4
PCM to CVSD Conversion. . . . . . . . . . . . . . . . . . . . . . 110
18.5
CVSD to PCM Conversion. . . . . . . . . . . . . . . . . . . . . . 110
18.6
Interrupt Generation. . . . . . . . . . . . . . . . . . . . . . . . . . . 110
18.7
DMA Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
18.8
Freeze . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
18.9
CVSD/PCM Converter Registers . . . . . . . . . . . . . . . . . 111
19.0
UART Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
19.1
Functional Overview . . . . . . . . . . . . . . . . . . . . . . . . . . 114
19.2
UART Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
19.3
UART Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
19.4
Baud Rate Calculations . . . . . . . . . . . . . . . . . . . . . . . . 122
20.0
Microwire/SPI Interface . . . . . . . . . . . . . . . . . . . . . . 124
20.1
Microwire Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . 124
20.2
Master Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
20.3
Slave Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
20.4
Interrupt Generation. . . . . . . . . . . . . . . . . . . . . . . . . . . 127
20.5
Microwire Interface Registers . . . . . . . . . . . . . . . . . . . 127
21.0
ACCESS.bus Interface . . . . . . . . . . . . . . . . . . . . . . . 130
21.1
ACB Protocol Overview . . . . . . . . . . . . . . . . . . . . . . . . 130
21.2
ACB Functional Description . . . . . . . . . . . . . . . . . . . . . 132
21.3
ACCESS.bus Interface Registers . . . . . . . . . . . . . . . . 134
21.4
Usage Hints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
22.0
Timing and Watchdog Module . . . . . . . . . . . . . . . . 139
22.1
TWM Structure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
22.2
Timer T0 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
22.3
Watchdog Operation . . . . . . . . . . . . . . . . . . . . . . . . . . 140
22.4
TWM Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
22.5
Watchdog Programming Procedure. . . . . . . . . . . . . . . 142
23.0
Multi-Function Timer . . . . . . . . . . . . . . . . . . . . . . . . 143
23.1
Timer Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
23.2
Timer Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . 144
23.3
Timer Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
23.4
Timer I/O Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
23.5
Timer Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
24.0
Versatile Timer Unit (VTU) . . . . . . . . . . . . . . . . . . . . 152
24.1
VTU Functional Description . . . . . . . . . . . . . . . . . . . . . 152
24.2
VTU Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
25.0
Register Map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
26.0
Register Bit Fields . . . . . . . . . . . . . . . . . . . . . . . . . . 171
27.0
Electrical Characteristics . . . . . . . . . . . . . . . . . . . . 182
27.1
Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . 182
27.2
DC Electrical Characteristics . . . . . . . . . . . . . . . . . . . 182
27.3
USB Transceiver Electrical Characteristics . . . . . . . . 183
27.4
Flash Memory On-Chip Programming . . . . . . . . . . . . . 184
27.5
Output Signal Levels . . . . . . . . . . . . . . . . . . . . . . . . . . 185
27.6
Clock and Reset Timing. . . . . . . . . . . . . . . . . . . . . . . . 185
27.7
I/O Port Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
27.8
Advanced Audio Interface (AAI) Timing. . . . . . . . . . . . 188
27.9
Microwire/SPI Timing . . . . . . . . . . . . . . . . . . . . . . . . . . 190
27.10
ACCESS.bus Timing . . . . . . . . . . . . . . . . . . . . . . . . . . 195
27.11
USB Port AC Characteristics . . . . . . . . . . . . . . . . . . . . 198
27.12
Multi-Function Timer (MFT) Timing . . . . . . . . . . . . . . . 198
27.13
Versatile Timing Unit (VTU) Timing . . . . . . . . . . . . . . . 199
27.14
External Bus Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . 200
28.0
Pin Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
29.0
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
30.0
Physical Dimensions . . . . . . . . . . . . . . . . . . . . . . . . 209
3
www.national.com
CP3
BT10
2.0
CPU Features
CPU Features
Fully static RISC processor core, capable of operating
from 0 to 24 MHz with zero wait/hold states
Minimum 41.7 ns instruction cycle time with a 24-MHz in-
ternal clock frequency, based on a 12-MHz external input
30 independently vectored peripheral interrupts
On-Chip Memory
256K bytes reprogrammable Flash program memory
8K bytes Flash data memory
10K bytes of static RAM data memory
Addresses up to 8 Mbytes of external memory
Broad Range of Hardware Communications Peripherals
Bluetooth Lower Link Controller (LLC) including a shared
4.5K byte Bluetooth RAM and 1K byte Bluetooth Se-
quencer RAM
Full-speed USB node including seven Endpoint-FIFOs
conforming to USB 1.1 specification
ACCESS.bus serial bus (compatible with Philips I
2
C bus)
8/16-bit SPI, Microwire/Plus serial interface
Universal Asynchronous Receiver/Transmitter (UART)
Advanced Audio Interface (AAI) to connect to external 8/
13-bit PCM Codecs as well as to ISDN-Controllers
through the IOM-2 interface (slave only)
CVSD/PCM converter supporting one bidirectional audio
connection
General-Purpose Hardware Peripherals
Dual 16-bit Multi-Function Timer
Versatile Timer Unit with four subsystems (VTU)
Four channel DMA controller
Timing and Watchdog Unit
Flexible I/O
Up to 37 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
Multi-Input Wakeup
Extensive Power and Clock Management Support
On-chip Phase Locked Loop
Support for multiple clock options
Dual clock and reset
Power-down modes
Power Supply
I/O port operation at 2.5V to 3.3V
Core logic operation at 2.5V
On-chip power-on reset
Temperature Range
-40C to +85C (Industrial)
Packages
CSP-48, LQFP-100
Complete Development Environment
Pre-integrated hardware and software support for rapid
prototyping and production
Integrated environment
Project manager
Multi-file C source editor
High-level C source debugger
Comprehensive, integrated, one-stop technical support
Bluetooth Protocol Stack
Applications can interface to the high-level protocols or
directly to the low-level Host Controller Interface (HCI)
Transport layer support allows HCI command-based in-
terface over UART or USB port
Baseband (Link Controller) minimizes the performance
demand on the CPU
Link Manager (LM)
Logical Link Control and Adaptation Protocol (L2CAP)
Service Discovery Protocol (SDP)
RFCOMM Serial Port Emulation Protocol
All packet types, piconet, and scatternet functionality
supported
CP3BT10 Connectivity Processor Selection Guide
NSID
Speed
(MHz)
Temp. Range
Program
Flash
(kBytes)
Data
Flash
(kBytes)
SRAM
(kBytes)
External
Address
Lines
I/Os
Package
Type
Pack
Method
CP3BT10G38
24
-40 to +85C
256
8
10
22
37
LQFP-100
Tray
CP3BT10G38X
24
-40 to +85C
256
8
10
22
37
LQFP-100 1000-T&R
CP3BT10K38X
24
-40 to +85C
256
8
10
0
21
CSP-48
2500-T&R
CP3BT10K38Y
24
-40 to +85C
256
8
10
0
21
CSP-48
250-T&R
T&R = Tape and Reel
www.national.com
4
CP3BT10
3.0
Device Overview
The CP3BT10 connectivity processor is complete micro-
computer with all system timing, interrupt logic, program
memory, data memory, I/O ports included on-chip, making
them well-suited to a wide range of embedded applications.
The block diagram on page 1 shows the major on-chip com-
ponents of the CP3BT10.
3.1
CR16C CPU CORE
The CP3BT10 implements the CR16C CPU core module.
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.
For more information, please refer to the CR16C Program-
mer's Reference Manual (document number 424521772-
101, which may be downloaded from National's web site at
http://www.national.com).
3.2
MEMORY
The CP3BT10 supports a uniform linear address space of
up to 16 megabytes. Three types of on-chip memory occupy
specific regions within this address space:
256K bytes of Flash program memory
8K bytes of Flash data memory
10K bytes of static RAM
Up to 8M bytes of external memory (100-pin devices)
The 256K bytes of Flash program memory are used to store
the application program, Bluetooth protocol stack, and real-
time operating system. The Flash memory has security fea-
tures to prevent unintentional programming and to prevent
unauthorized access to the program code. This memory
can be programmed with an external programming unit or
with the device installed in the application system (in-sys-
tem programming).
The 8K bytes of Flash data memory are used for non-vola-
tile storage of data entered by the end-user, such as config-
uration settings.
The 10K 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, de-
pending on the instruction executed by the CPU.
Up to 8M bytes of external memory can be added on an ex-
ternal bus. The external bus is only available on devices in
100-pin packages.
For Flash program and data memory, the device internally
generates the necessary voltages for programming. No ad-
ditional power supply is required.
3.3
INPUT/OUTPUT PORTS
The device has up to 37 software-configurable I/O pins, or-
ganized into five ports called Port B, Port C, Port G, Port H,
and Port I. Each pin can be configured to operate as a gen-
eral-purpose input or general-purpose output. In addition,
many I/O pins can be configured to operate as inputs or out-
puts for on-chip peripheral modules such as the UART, tim-
ers, or Microwire/SPI interface.
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.
3.4
BUS INTERFACE UNIT
The Bus Interface Unit (BIU) controls access to internal/ex-
ternal memory and I/O. It determines the configured param-
eters for bus access (such as the number of wait states for
memory access) and issues the appropriate bus signals for
each requested access.
The BIU uses a set of control registers to determine how
many wait states and hold states are used when accessing
Flash program memory, and the I/O area (Port B and Port
C). At start-up, the configuration registers are set for slowest
possible memory access. To achieve fastest possible pro-
gram execution, appropriate values must be programmed.
These settings vary with the clock frequency and the type of
off-chip device being accessed.
3.5
INTERRUPT CONTROL UNIT (ICU)
The ICU receives interrupt requests from internal and exter-
nal sources and generates interrupts to the CPU. An inter-
rupt is an event that temporarily stops the normal flow of
program execution and causes a separate interrupt handler
to be executed. After the interrupt is serviced, CPU execu-
tion continues with the next instruction in the program fol-
lowing the point of interruption.
Interrupts from the timers, UART, Microwire/SPI interface,
and Multi-Input Wake-Up, are all maskable interrupts; they
can be enabled or disabled by software. There are 32
maskable interrupts, assigned to 32 linear priority levels.
The highest-priority interrupt is the Non-Maskable Interrupt
(NMI), which is generated by a signal received on the NMI
input pin.
3.6
BLUETOOTH LLC
The integrated hardware Bluetooth Lower Link Controller
(LLC) complies to the Bluetooth Specification Version 1.1
and integrates the following functions:
4.5K-byte dedicated Bluetooth data RAM
1K-byte dedicated Bluetooth Sequencer RAM
Support of all Bluetooth 1.1 packet types
Support for fast frequency hopping of 1600 hops/s
Access code correlation and slot timing recovery circuit
Power Management Control Logic
BlueRF-compatible interface to connect with National's
LMX5252 and other RF transceiver chips
3.7
USB
The USB node is a Universal Serial Bus (USB) Node con-
troller compatible with USB Specification, 1.0 and 1.1. It in-
tegrates the required USB transceiver, the Serial Interface
Engine (SIE), and USB endpoint FIFOs. A total of seven
endpoint pipes are supported: one bidirectional pipe for the
mandatory control EP0 and an additional six pipes for unidi-
rectional endpoints to support USB interrupt, bulk, and iso-
chronous data transfers.
5
www.national.com
CP3
BT10
3.8
MULTI-INPUT WAKE-UP
The Multi-Input Wake-Up (MIWU) module can be used for
either of two purposes: to provide inputs for waking up (ex-
iting) 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
received on its 16 input channels. Channels can be individ-
ually enabled or disabled, and programmed to respond to
positive or negative edges.
3.9
TRIPLE CLOCK AND RESET
The Triple Clock and Reset module generates a high-speed
main System Clock from an external crystal network. It also
provides the main system reset signal and a power-on reset
function.
This module generates a slow System Clock (32.768 kHz)
from an optional external crystal network. The Slow Clock is
used for operating the device in power-save mode. The
32.768 kHz external crystal network is optional, because
the low speed System Clock can be derived from the high-
speed clock by a prescaler. Also, two independent clocks di-
vided down from the high speed clock are available on out-
put pins.
The Triple Clock and Reset module provides the clock sig-
nals required for the operation of the various CP3BT10 on-
chip modules. From external crystal networks, it generates
the Main Clock, which can be scaled up to 24 MHz from an
external 12 MHz input clock, and a 32.768 kHz secondary
System Clock. The 12 MHz external clock is primarily used
as the reference frequency for the on-chip PLL. Also the
clock for modules which require a fixed clock rate (e.g. the
Bluetooth LLC and the CVSD/PCM transcoder) is generat-
ed through prescalers from the 12 MHz clock. The PLL gen-
erates the input clock for the USB node and may be used to
drive the high-speed System Clock through a prescaler. Al-
ternatively, the high speed System Clock can be derived di-
rectly from the 12 MHz Main Clock.
In addition, this module generates the device reset by using
reset input signals coming from an external reset and vari-
ous on-chip modules.
3.10
POWER MANAGEMENT
The Power Management Module (PMM) improves the effi-
ciency of the device by changing the operating mode and
power consumption to match the required level of activity.
The device can operate in any of four power modes:
Active--The device operates at full speed using the high-
frequency clock. All device functions are fully operation-
al.
Power Save--The device operates at reduced speed us-
ing the Slow Clock. The CPU and some modules can
continue to operate at this low speed.
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.11
MULTI-FUNCTION TIMER
The Multi-Function Timer (MFT) module contains a pair of
16-bit timer/counter registers. Each timer/counter unit can
be configured to operate in any of the following modes:
Processor-Independent Pulse Width Modulation (PWM)
mode
--Generates pulses of a specified width and duty
cycle and provides a general-purpose timer/counter.
Dual Input Capture mode--Measures the elapsed time
between occurrences of external event and provides a
general-purpose timer/counter.
Dual Independent Timer mode--Generates system tim-
ing signals or counts occurrences of external events.
Single Input Capture and Single Timer mode--Provides
one external event counter and one system timer.
3.12
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 ac-
commodate a wide range of frequencies.
3.13
TIMING AND WATCHDOG MODULE
The Timing and Watchdog Module (TWM) contains a Real-
Time timer and a Watchdog unit. The Real-Time Clock Tim-
ing function can be used to generate periodic real-time
based system interrupts. The timer output is one of 16 in-
puts to the Multi-Input-Wake-Up module which can be used
to exit from a power-saving mode. The Watchdog unit is de-
signed to detect the application program getting stuck in an
infinite loop resulting in loss of program control or "runaway"
programs. When the watchdog triggers, it resets the device.
The TWM is clocked by the low-speed System Clock.
3.14
UART
The UART supports a wide range of programmable baud
rates and data formats, parity generation, and several error
detection schemes. The baud rate is generated on-chip, un-
der software control.
The UART offers a wake-up condition from the power-save
mode using the Multi-Input Wake-Up module.
3.15
MICROWIRE/SPI
The Microwire/SPI (MWSPI) interface module supports syn-
chronous serial communications with other devices that
conform to Microwire or Serial Peripheral Interface (SPI)
specifications. It supports 8-bit and 16-bit data transfers.
The Microwire interface allows several devices to communi-
cate 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 Microwire interface supports the full set of slave select
for multi-slave implementation.
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 using the Multi-Input Wake-Up mod-
ule.