National CP3BT26 User Manual

Browse online or download User Manual for Hardware National CP3BT26. National CP3BT26 User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 278
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
©2004 National Semiconductor Corporation www.national.com
CP3BT26 Connectivity Processor with Bluetooth and Dual CAN Interfaces
PRELIMINARY
MAY 2004
CP3BT26 Reprogrammable Connectivity Processor with
Bluetooth
®
, USB, and CAN Interfaces
1.0 General Description
The CP3BT26 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, hardware communications peripherals provide high-
I/O bandwidth, and an external bus provides system ex-
pandability.
On-chip communications peripherals include: Bluetooth
Lower Link Controller, Universal Serial Bus (USB) 1.1 node,
CAN, Microwire/Plus, SPI, ACCESS.bus, quad UART, 12-bit
A/D converter, and Advanced Audio Interface (AAI). Addi-
tional on-chip peripherals include Random Number Gener-
ator (RNG), DMA controller, CVSD/PCM conversion
module, Timing and Watchdog Unit, Versatile Timer Unit,
Multi-Function Timer, and Multi-Input Wake-Up (MIWU)
unit.
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 CP3BT26 is
backed up by the software resources designers need for
rapid time-to-market, including an operating system, Blue-
tooth protocol stack implementation, peripheral drivers, ref-
erence designs, and an integrated development
environment. Combined with a Bluetooth radio transceiver
such as National’s LMX5252, the CP3BT26 provides a com-
plete Bluetooth system solution.
National Semiconductor offers a complete and industry-
proven application development environment for CP3BT26
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
Bus
Interface
Unit
Peripheral
Bus
Controller
Serial
Debug
Interface
DMA
Controller
Interrupt
Control
Unit
CVSD/PCM
Converter
Power
Manage-
ment
Timing and
Watchdog
Unit
8-Channel
12-bit ADC
Versatile
Timer Unit
Muti-Func-
tion Timer
Multi-Input
Wake-Up
GPIO
Audio
Interface
Microwiire/
SPI
Quad UART
Clock Generator
Protocol
Core
RF Interface
Bluetooth Lower
Link Controller
4.5K Bytes
Data RAM
1K Byte
Sequencer RAM
DS202
256K Bytes
Flash
Program
Memory
8K Bytes
Flash
Data
32K Bytes
Static
RAM
CR16C
CPU Core
ACCESS
.bus
CAN 2.0B
Controller
Random
Number
Generator
USB
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.
Page view 0
1 2 3 4 5 6 ... 277 278

Summary of Contents

Page 1 - , USB, and CAN Interfaces

©2004 National Semiconductor Corporation www.national.comCP3BT26 Connectivity Processor with Bluetooth and Dual CAN InterfacesPRELIMINARYMAY 2004CP3BT

Page 2 - Table of Contents

www.national.com 10CP3BT26ADC31 I/O ADC Input Channel 3 TSY- Touchscreen Y- contactADC41 I/O ADC Input Channel 4 MUXOUT0 Analog Multiplexer Output 0AD

Page 3 - 2.0 Features

www.national.com 100CP3BT26MF The Missed SOF bit is set when the framenumber in a valid received SOF does notmatch the expected next value, or when an

Page 4 - 3.0 Device Overview

101 www.national.comCP3BT26DTGL The DMA Toggle bit is used to determine theinitial state of Automatic DMA (ADMA) opera-tions. Software initially sets

Page 5

www.national.com 102CP3BT2618.3.20 DMA Mask Register (DMAMSK)Any set bit in the DMAMSK register enables automatic set-ting of the DMA bit in the ALTEV

Page 6

103 www.national.comCP3BT26receive the next packet. The erroneouspacket is ignored and not transferred viaDMA. If this bit is cleared, automatic error

Page 7 - 3.24 DEVELOPMENT SUPPORT

www.national.com 104CP3BT26FLUSH Writing a 1 to the Flush FIFO bit flushes alldata from the control endpoint FIFOs, resetsthe endpoint to Idle state,

Page 8 - 4.0 Signal Descriptions

105 www.national.comCP3BT26FLUSH Writing 1 to the Flush bit flushes all data fromthe control endpoint FIFOs, resets the end-point to Idle state, clear

Page 9 - 9 www.national.com

www.national.com 106CP3BT26ACK_STAT The Acknowledge Status bit is valid when theTX_DONE bit is set. The meaning of theACK_STAT bit differs depending o

Page 10

107 www.national.comCP3BT26TFWL The Transmit FIFO Warning Limit bits specifyhow many more bytes can be transmitted fromthe respective FIFO before an u

Page 11 - 11 www.national.com

www.national.com 108CP3BT2618.3.36 Receive Command Register n (RXCn)Each of the receive endpoints (2, 4, and 6) has one RXCnregister. The registers pr

Page 12

109 www.national.comCP3BT2619.0 CAN ModuleThe CAN module contains a Full CAN class, CAN (Control-ler Area Network) serial bus interface for low/high s

Page 13 - 13 www.national.com

11 www.national.comCP3BT26PG41 I/O Generic I/O SDAT BT Serial I/F DataPG51 I/O Generic I/O SLE BT Serial I/F Load Enable OutputPG61 I/O Generic I/OWUI

Page 14

www.national.com 110CP3BT26Figure 34. CAN Block Diagram19.2 BASIC CAN CONCEPTSThis section provides a generic overview of the basic con-cepts of the C

Page 15 - 5.0 CPU Architecture

111 www.national.comCP3BT26The CAN protocol allows several transmitting modules tostart a transmission at the same time as soon as they detectthe bus

Page 16

www.national.com 112CP3BT26Data Length Code (DLC)The DLC field indicates the number of bytes in the data field.It consists of four bits. The data fiel

Page 17

113 www.national.comCP3BT26A CAN data frame consists of the following fields: Start of Frame (SOF) Arbitration Field + Extended Arbitration Control

Page 18 - 5.5 ADDRESSING MODES

www.national.com 114CP3BT26Error FrameAs shown in Figure 40, the Error Frame consists of the errorflag and the error delimiter bit fields. The error f

Page 19 - 5.7 INSTRUCTION SET

115 www.national.comCP3BT26Figure 42. Interframe Space19.2.4 Error TypesBit ErrorA CAN device which is currently transmitting also monitorsthe bus. If

Page 20

www.national.com 116CP3BT26Error ActiveAn error active unit can participate in bus communicationand may send an active (“dominant”) error flag.Error W

Page 21 - 21 www.national.com

117 www.national.comCP3BT2619.2.6 Bit Time LogicIn the Bit Time Logic (BTL), the CAN bus speed and theSynchronization Jump Width can be configured by

Page 22

www.national.com 118CP3BT26Figure 45. Resynchronization (e > SJW)Figure 46. Resynchronization (e < -SJW)19.2.7 Clock GeneratorThe CAN prescaler

Page 23 - 23 www.national.com

119 www.national.comCP3BT26independent filtering procedure, which provides the possi-bility to establish a BASIC-CAN path.For reception of data frame

Page 24 - 6.0 Memory

www.national.com 12CP3BT26Table 3 CP3BT26 LQFP-144 Signal DescriptionsName Pins I/O Primary FunctionAlternate NameAlternate FunctionX1CKI 1Input 12 MH

Page 25

www.national.com 120CP3BT26buffer status field. With this lock function, software has thecapability to save several messages with the same identifiero

Page 26

121 www.national.comCP3BT26All contents of the hidden receive buffer are always copiedinto the respective receive buffer. This includes the receivedme

Page 27

www.national.com 122CP3BT26Figure 54. Buffer Read Routine (BUFFLOCK Disabled)The first step is only applicable if polling is used to get thestatus of

Page 28

123 www.national.comCP3BT26CNSTAT status section will be 0101b, as the buffer wasRX_FULL (0100b) before. After finally reading the last re-ceived mess

Page 29

www.national.com 124CP3BT26ity is combined by the 4-bit TXPRI value and the 4-bit buffernumber (0...14) as shown below. The lowest resulting num-ber r

Page 30

125 www.national.comCP3BT2619.6.4 TX Buffer StatesThe transmission process can be started after software hasloaded the buffer registers (data, ID, DLC

Page 31 - 8.0 Flash Memory

www.national.com 126CP3BT2619.7.1 Highest Priority Interrupt CodeTo reduce the decoding time for the CIPND register, thebuffer interrupt request with

Page 32 - 8.3 FLASH MEMORY OPERATIONS

127 www.national.comCP3BT2619.9 MEMORY ORGANIZATIONThe CAN module occupies 144 words in the memory ad-dress space. This space is organized as 15 banks

Page 33 - 33 www.national.com

www.national.com 128CP3BT2619.10 CAN CONTROLLER REGISTERSTable 51 lists the CAN module registers.19.10.1 Buffer Status/Control Register (CNSTAT)The bu

Page 34 - 8.4 INFORMATION BLOCK WORDS

129 www.national.comCP3BT26Table 52 Buffer Status Section of the CNSTAT RegisterST3 (DIR) ST2 ST1 ST0 (BUSY) Buffer Status000 0RX_NOT_ACTIVE000 1Reser

Page 35 - REGISTERS

13 www.national.comCP3BT26ADC31 I/O ADC Input Channel 3 TSY- Touchscreen Y- contactADC41 I/O ADC Input Channel 4 MUXOUT0 Analog Multiplexer Output 0AD

Page 36

www.national.com 130CP3BT26PRI The Transmit Priority Code field holds thesoftware-defined transmit priority code for themessage buffer.DLC The Data Le

Page 37

131 www.national.comCP3BT2619.10.3 Storage of Messages with Less Than 8 Data BytesThe data bytes that are not used for data transfer are “don’tcares”.

Page 38

www.national.com 132CP3BT2619.10.5 Storage of Remote MessagesDuring remote frame transfer, the buffer registers DATA0–DATA3 are “don’t cares”. If a re

Page 39 - 39 www.national.com

133 www.national.comCP3BT2619.10.6 CAN Global Configuration Register (CGCR)The CAN Global Configuration Register (CGCR) is a 16-bitwide register used

Page 40

www.national.com 134CP3BT26Figure 61. Data Direction Bit ClearSetting the DDIR bit will cause the direction of the data stor-age to be reversed — the

Page 41 - 9.0 DMA Controller

135 www.national.comCP3BT26INTERNAL If the Internal function is enabled, the CANTXand CANRX pins of the CAN module are inter-nally connected to each o

Page 42 - 9.3 OPERATION MODES

www.national.com 136CP3BT26TSEG1 The Time Segment 1 field configures thelength of the Time Segment 1 (TSEG1). It isnot recommended to configure the ti

Page 43 - 9.5 DEBUG MODE

137 www.national.comCP3BT2619.10.9 Basic Mask Register (BMSKB/BMSKX)The BMSKB and BMSKX registers allow masking the buffer14, or “don’t care” the inco

Page 44 - The upper 8 bits of the AD

www.national.com 138CP3BT2619.10.12 CAN Interrupt Clear Register (CICLR)The CICLR register bits individually clear CAN interruptpending flags caused b

Page 45

139 www.national.comCP3BT2619.10.15 CAN Error Counter Register (CANEC)The CANEC register reports the values of the CAN ReceiveError Counter and the CA

Page 46 - – Channel inactive

www.national.com 14CP3BT26PF61 I/O Generic I/OSTD AAI Transmit Data OutputTIO7 Versatile Timer Channel 7PF71 I/O Generic I/OSRD AAI Receive Data Input

Page 47 - 10.0 Interrupts

www.national.com 140CP3BT26DRIVE The Drive bit shows the output value on theCANTX pin at the time of the error. Note thata receiver will not drive the

Page 48

141 www.national.comCP3BT26The critical path derives from receiving a remote frame,which triggers the transmission of one or more data frames.There ar

Page 49

www.national.com 142CP3BT2619.12 USAGE HINTUnder certain conditions, the CAN module receives a framesent by itself, even though the loopback feature i

Page 50 - 10.5 NESTED INTERRUPTS

143 www.national.comCP3BT2620.0 Advanced Audio InterfaceThe Advanced Audio Interface (AAI) provides a serial syn-chronous, full duplex interface to co

Page 51 - 11.0 Triple Clock and Reset

www.national.com 144CP3BT2620.2.2 Synchronous ModeIn synchronous mode, the receive and transmit paths of theaudio interface use the same shift clock a

Page 52 - 11.1 EXTERNAL CRYSTAL NETWORK

145 www.national.comCP3BT26On the receiver side, only the valid data bits which were re-ceived during the slots assigned to this interface are copiedi

Page 53 - 11.4 PLL CLOCK

www.national.com 146CP3BT26Figure 69. Accessing Three Devices in Network Mode20.3 BIT CLOCK GENERATIONAn 8-bit prescaler is provided to divide the aud

Page 54

147 www.national.comCP3BT26Figure 70 shows the interrupt structure of the AAI.Figure 70. AAI Interrupt Structure20.5.3 Normal ModeIn normal mode, each

Page 55

www.national.com 148CP3BT2620.5.6 Network ModeIn network mode, each frame sync signal marks the begin-ning of new frame. Each frame can consist of up

Page 56 - 12.0 Power Management

149 www.national.comCP3BT26If the corresponding Frame Sync Select (FSS) bit in the Au-dio Control and Status register is set, the receive and/ortransm

Page 57

15 www.national.comCP3BT265.0 CPU ArchitectureThe CP3BT26 uses the CR16C third-generation 16-bitCompactRISC processor core. The CPU implements a Re-du

Page 58

www.national.com 150CP3BT2620.6.4 IOM-2 ModeThe AAI can operate in a special IOM-2 compatible mode toallow to connect to an external ISDN controller d

Page 59

151 www.national.comCP3BT2620.6.6 Freeze ModeThe audio interface provides a FREEZE input, which allowsto freeze the status of the audio interface whil

Page 60

www.national.com 152CP3BT2620.7.1 Audio Receive FIFO Register (ARFR)The Audio Receive FIFO register shows the receive FIFOlocation currently addressed

Page 61 - 13.0 Multi-Input Wake-Up

153 www.national.comCP3BT2620.7.5 Audio Global Configuration Register (AGCR)The AGCR register controls the basic operation of the inter-face. The CPU

Page 62

www.national.com 154CP3BT26IOM2 The IOM-2 Mode bit selects the normal PCMinterface mode or a special IOM-2 mode usedto connect to external ISDN contro

Page 63

155 www.national.comCP3BT2620.7.7 Audio Receive Status and Control Register (ARSCR)The ARSCR register is used to control the operation of thereceiver

Page 64

www.national.com 156CP3BT2620.7.8 Audio Transmit Status and Control Register (ATSCR)The ASCR register controls the basic operation of the inter-face.

Page 65

157 www.national.comCP3BT2620.7.9 Audio Clock Control Register (ACCR)The ACCR register is used to control the bit timing of the au-dio interface. Afte

Page 66 - 13.2 PROGRAMMING PROCEDURES

www.national.com 158CP3BT2621.0 CVSD/PCM Conversion ModuleThe CVSD/PCM module performs conversion betweenCVSD data and PCM data, in which the CVSD enc

Page 67 - 14.0 Input/Output Ports

159 www.national.comCP3BT26If the module is only used for PCM conversions, the CVSDclock can be disabled by clearing the CVSD Clock Enablebit (CLKEN)

Page 68

www.national.com 16CP3BT265.2.4 Interrupt Base Register (INTBASE)The INTBASE register holds the address of the dispatch ta-ble for exceptions. The dis

Page 69

www.national.com 160CP3BT26The CVSD/PCM module only supports indirect DMA trans-fers. Therefore, transferring PCM data between the CVSD/PCM module and

Page 70 - – Fast slew rate

161 www.national.comCP3BT2621.9.5 Logarithmic PCM Data Input Register (LOGIN)The LOGIN register is an 8-bit wide write-only register. It isused to rec

Page 71 - 14.2 OPEN-DRAIN OPERATION

www.national.com 162CP3BT26DMAPI The DMA Enable for PCM In bit enables hard-ware DMA control for writing PCM data intothe PCMIN register. If cleared,

Page 72 - 15.0 Bluetooth Controller

163 www.national.comCP3BT2622.0 UART ModulesThe CP3BT26 provides four UART modules. Each UARTmodule is a full-duplex Universal Asynchronous Receiver/T

Page 73 - 15.2 SERIAL INTERFACE

www.national.com 164CP3BT26Data bits are sensed by taking a majority vote of three sam-ples latched near the midpoint of each baud (bit time). Nor-mal

Page 74 - D0D1A0A1A2A3A4RH0H1H2 D15

165 www.national.comCP3BT2622.2.2 Synchronous ModeThe synchronous mode of the UART enables the device tocommunicate with other devices using three com

Page 75 - 75 www.national.com

www.national.com 166CP3BT26parity bit is generated and transmitted following the eightdata bits.Figure 80. 8-Bit Data Frame OptionsThe format shown in

Page 76

167 www.national.comCP3BT26Figure 82 shows a diagram of the interrupt sources and as-sociated enable bits.Figure 82. UART InterruptsThe interrupts can

Page 77 - Description

www.national.com 168CP3BT2622.3 UART REGISTERSSoftware interacts with the UART modules by accessing theUART registers, as listed in Table 70.Table 70

Page 78

169 www.national.comCP3BT2622.3.1 UART Receive Data Buffer (UnRBUF)The UnRBUF register is a byte-wide, read/write registerused to receive each data by

Page 79 - 16.1 FUNCTIONAL DESCRIPTION

17 www.national.comCP3BT265.4 CONFIGURATION REGISTER (CFG)The CFG register is used to enable or disable various oper-ating modes and to control option

Page 80

www.national.com 170CP3BT26UPEN The Parity Enable bit enables or disables par-ity generation and parity checking. When theUART is configured to transm

Page 81 - 16.2 TOUCHSCREEN INTERFACE

171 www.national.comCP3BT26UBKD The Break Detect bit indicates when a linebreak condition occurs. This condition is de-tected if RXD remains low for a

Page 82

www.national.com 172CP3BT2622.3.10 UART Mode Select Register 2 (UnMDSL2)The UnMDSL2 register is a byte-wide, read/write registerthat controls the samp

Page 83 - 16.5 ADC REGISTER SET

173 www.national.comCP3BT2622.4.2 Synchronous ModeSynchronous mode is only available for the UART0 module.When synchronous mode is selected and the UC

Page 84

www.national.com 174CP3BT26Table 72 Baud Rate ProgrammingBaudRateSYS_CLK = 8 MHz SYS_CLK = 6 MHz SYS_CLK = 5 MHz SYS_CLK = 4 MHzO N P %err O N P %err

Page 85 - 85 www.national.com

175 www.national.comCP3BT2623.0 Microwire/SPI InterfaceMicrowire/Plus is a synchronous serial communicationsprotocol, originally implemented in Nation

Page 86

www.national.com 176CP3BT26Figure 84. Microwire Block Diagram23.1.2 ReadingThe enhanced Microwire interface implements a doublebuffer on read. As illu

Page 87 - 87 www.national.com

177 www.national.comCP3BT2623.2 MASTER MODEIn Master mode, the MSK pin is an output for the shift clock,MSK. When data is written to the MWDAT registe

Page 88 - 17.1 FREEZE

www.national.com 178CP3BT2623.3 SLAVE MODEIn Slave mode, the MSK pin is an input for the shift clockMSK. MDIDO is placed in TRI-STATE mode when MWCS i

Page 89 - REGISTER SET

179 www.national.comCP3BT2623.5 MICROWIRE INTERFACE REGISTERSSoftware interacts with the Microwire interface by accessingthe Microwire registers. Ther

Page 90 - 18.0 USB Controller

www.national.com 18CP3BT265.5 ADDRESSING MODESThe CR16C CPU core implements a load/store architec-ture, in which arithmetic and logical instructions o

Page 91 - 18.2 ENDPOINT OPERATION

www.national.com 180CP3BT26MWDAT register is transmitted on MDIDO,whether or not the data is valid. 0 – Echo back disabled.1 – Echo back enabled.EIO T

Page 92

181 www.national.comCP3BT2624.0 ACCESS.bus InterfaceThe ACCESS.bus interface module (ACB) is a two-wire se-rial interface compatible with the ACCESS.b

Page 93 - 18.3 USB CONTROLLER REGISTERS

www.national.com 182CP3BT26Acknowledge CycleThe Acknowledge Cycle consists of two signals: the ac-knowledge clock pulse the master sends with each byt

Page 94

183 www.national.comCP3BT2624.2 ACB FUNCTIONAL DESCRIPTIONThe ACB module provides the physical layer for an AC-CESS.bus compliant serial interface. Th

Page 95 - 95 www.national.com

www.national.com 184CP3BT26Master Bus StallThe ACB module can stall the ACCESS.bus between trans-fers while waiting for the core’s response. The ACCES

Page 96

185 www.national.comCP3BT26Power DownWhen this device is in Power Save, Idle, or Halt mode, theACB module is not active but retains its status. If the

Page 97 - 97 www.national.com

www.national.com 186CP3BT26NEGACK The Negative Acknowledge bit is set by hard-ware when a transmission is not acknowl-edged on the ninth clock. (In th

Page 98

187 www.national.comCP3BT26GCMTCH The Global Call Match bit is set in slave modewhen the ACBCTL1.GCMEN bit is set and theaddress byte (the first byte

Page 99 - 99 www.national.com

www.national.com 188CP3BT26INTEN The Interrupt Enable bit controls generatingACB interrupts. When the INTEN bit is clearedACB interrupt is disabled. W

Page 100

189 www.national.comCP3BT2624.3.7 ACB Own Address Register 1 (ACBADDR1)The ACBADDR1 register is a byte-wide, read/write registerthat holds the module’

Page 101 - 101 www.national.com

19 www.national.comCP3BT265.6 STACKSA stack is a last-in, first-out data structure for dynamic stor-age of data and addresses. A stack consists of a b

Page 102 - —Setting this bit al

www.national.com 190CP3BT2624.4.1 Avoiding Bus Error During Write TransactionA Bus Error (BER) may occur during a write transaction ifthe data registe

Page 103 - 103 www.national.com

191 www.national.comCP3BT26 acb->ACBctl1 |= ACBSTOP; /* Send STOP bit */

Page 104

www.national.com 192CP3BT2625.0 Timing and Watchdog ModuleThe Timing and Watchdog Module (TWM) generates theclocks and interrupts used for timing peri

Page 105 - 105 www.national.com

193 www.national.comCP3BT2625.3 WATCHDOG OPERATIONThe Watchdog is an 8-bit down counter that operates on therising edge of a specified clock source. A

Page 106 - —This bit is set if a

www.national.com 194CP3BT2625.4.1 Timer and Watchdog Configuration Register (TWCFG)The TWCFG register is a byte-wide, read/write register thatselects

Page 107 - —This bit reflects

195 www.national.comCP3BT2625.4.4 TWMT0 Control and Status Register (T0CSR)The T0CSR register is a byte-wide, read/write register thatcontrols Timer T

Page 108 - 18.4 TRANSCEIVER INTERFACE

www.national.com 196CP3BT2626.0 Multi-Function TimerThe Multi-Function Timer module contains a pair of 16-bittimer/counters. Each timer/counter unit o

Page 109 - 19.0 CAN Module

197 www.national.comCP3BT26Counter Clock Source SelectThere are two clock source selectors that allow software toindependently select the clock source

Page 110 - 19.2 BASIC CAN CONCEPTS

www.national.com 198CP3BT2626.2.1 Mode 1: Processor-Independent PWMMode 1 is the Processor-Independent Pulse Width Modula-tion (PWM) mode, which gener

Page 111 - 111 www.national.com

199 www.national.comCP3BT2626.2.2 Mode 2: Dual Input CaptureMode 2 is the Dual Input Capture mode, which measuresthe elapsed time between occurrences

Page 112

www.national.com 2CP3BT26Table of Contents1.0 General Description . . . . . . . . . . . . . . . . . . . . . . . . . . 12.0 Features . . . . . . . .

Page 113 - 113 www.national.com

www.national.com 20CP3BT26Table 5 Instruction Set SummaryMnemonic Operands DescriptionMOVi Rsrc/imm, Rdest MoveMOVXB Rsrc, Rdest Move with sign extens

Page 114

www.national.com 200CP3BT2626.2.3 Mode 3: Dual Independent Timer/CounterMode 3 is the Dual Independent Timer mode, which gener-ates system timing sign

Page 115 - 115 www.national.com

201 www.national.comCP3BT2626.2.4 Mode 4: Input Capture Plus TimerMode 4 is the Single Input Capture and Single Timer mode,which provides one external

Page 116

www.national.com 202CP3BT2626.3 TIMER INTERRUPTSThe Multi-Function Timer unit has four interrupt sources,designated A, B, C, and D. Interrupt sources

Page 117 - 117 www.national.com

203 www.national.comCP3BT2626.5 TIMER REGISTERSTable 79 lists the CPU-accessible registers used to controlthe Multi-Function Timers.26.5.1 Clock Presc

Page 118 - 19.3 MESSAGE TRANSFER

www.national.com 204CP3BT2626.5.5 Reload/Capture A Register (TCRA)The TCRA register is a word-wide, read/write register thatholds the reload or captur

Page 119 - 19.4 ACCEPTANCE FILTERING

205 www.national.comCP3BT2626.5.8 Timer Interrupt Control Register (TICTL)The TICTL register is a byte-wide, read/write register thatcontains the inte

Page 120 - 19.5 RECEIVE STRUCTURE

www.national.com 206CP3BT2627.0 Versatile Timer Unit (VTU)The Versatile Timer Unit (VTU) contains four fully indepen-dent 16-bit timer subsystems. Eac

Page 121 - 121 www.national.com

207 www.national.comCP3BT2627.1.1 Dual 8-bit PWM ModeEach timer subsystem may be configured to generate twofully independent PWM waveforms on the resp

Page 122

www.national.com 208CP3BT26The two I/O pins associated with a timer subsystem functionas independent PWM outputs in the dual 8-bit PWM mode.If a PWM t

Page 123 - + CONTROL

209 www.national.comCP3BT26Figure 108 illustrates the configuration of a timer subsystemwhile operating in capture mode. The numbering inFigure 108 re

Page 124

21 www.national.comCP3BT26ASHUD Rsrc/imm, RPdest Arithmetic left/right shiftLSHi Rsrc/imm, Rdest Logical left/right shiftLSHD Rsrc/imm, RPdest Logical

Page 125 - 19.7 INTERRUPTS

www.national.com 210CP3BT2627.2 VTU REGISTERSThe VTU contains a total of 19 user accessible registers, aslisted in Table 81. All registers are word-wi

Page 126 - 19.8 TIME STAMP COUNTER

211 www.national.comCP3BT2627.2.2 I/O Control Register 1 (IO1CTL)The I/O Control Register 1 (IO1CTL) is a word-wide read/write register. The register

Page 127 - 19.9 MEMORY ORGANIZATION

www.national.com 212CP3BT26IxCEN The Timer x Interrupt C Enable bit controls in-terrupt requests triggered on the correspond-ing IxCPD bit being set.

Page 128

213 www.national.comCP3BT2627.2.8 Counter Register n (COUNTx)The Counter (COUNTx) registers are word-wide read/writeregisters. There are a total of fo

Page 129 - → RX_BUSY2.)

www.national.com 214CP3BT2628.0 Register MapTable 82 is a detailed memory map showing the specificmemory address of the memory, I/O ports, and registe

Page 130

215 www.national.comCP3BT26WTPTC_1SLOT Word 0E F1B0h Write-OnlyWTPTC_3SLOT Word 0E F1B2h Write-OnlyWTPTC_5SLOT Word 0E F1B4h Write-OnlySEQ_RESET Byte

Page 131 - 131 www.national.com

www.national.com 216CP3BT26DMAEV Byte FF FDAAh Read/Write 00hDMAMSK Byte FF FDACh Read/Write 00hMIR Byte FF FDAEh Read/Write 1FhDMACNT Byte FF FDB0h R

Page 132

217 www.national.comCP3BT26CAN Module Message BuffersCMB0_CNSTAT Word 0E F000h Read/Write XXXXhCMB0_TSTP Word 0E F002h Read/Write XXXXhCMB0_DATA3 Word

Page 133 - 133 www.national.com

www.national.com 218CP3BT26CAN RegistersCGCR Word 0E F100h Read/Write 0000hCTIM Word 0E F102h Read/Write 0000hGMSKX Word 0E F104h Read/Write 0000hGMSK

Page 134

219 www.national.comCP3BT26BLTC1 Word FF F830h Read/Write 0000hBLTR1 Word FF F834h Read/Write 0000hDMACNTL1 Word FF F83Ch Read/Write 0000hDMASTAT1 B

Page 135 - 135 www.national.com

www.national.com 22CP3BT26RETX Return from exceptionPUSH imm, Rsrc, RA Push “imm” number of registers on user stack, starting with Rsrc and possibly i

Page 136

www.national.com 220CP3BT26System ConfigurationMCFG Byte FF F910h Read/Write 00hDBGCFG Byte FF F912h Read/Write 00hMSTAT Byte FF F914h Read Only ENV2:

Page 137 - 137 www.national.com

221 www.national.comCP3BT26FSMTRAN Byte FF F754h Read/Write 30hFSMPROG Byte FF F756h Read/Write 16hFSMPERASE Byte FF F758h Read/Write 04hFSMMERASE0 By

Page 138

www.national.com 222CP3BT26Power ManagementPMMCR Byte FF FC60h Read/Write 00hPMMSR Byte FF FC62h Read/Write 0000 0XXXbMulti-Input Wake-Up 0WK0EDG Word

Page 139 - 139 www.national.com

223 www.national.comCP3BT26PCDIR Byte FF FB12h Read Only 00hPCDIN Byte FF FB14h Read/Write XXhPCDOUT Byte FF FB16h Read/Write XXhPCWPU Byte FF FB18h R

Page 140

www.national.com 224CP3BT26PJDIN Byte FF F344h Read Only XXhPJDOUT Byte FF F346h Read/Write XXhPJWPU Byte FF F348h Read/Write 00hPJHDRV Byte FF F34Ah

Page 141 - 141 www.national.com

225 www.national.comCP3BT26Microwire/SPI InterfaceMWDAT Word FF F3A0h Read/Write XXXXhMWCTL1 Word FF F3A2h Read/Write 0000hMWSTAT Word FF F3A4h Read O

Page 142 - 19.12 USAGE HINT

www.national.com 226CP3BT26UART2U2TBUF Byte FF F240h Read/Write XXhU2RBUF Byte FF F242h Read Only XXhU2ICTRL Byte FF F244h Read/Write 01h Bits 0:1 rea

Page 143 - 20.0 Advanced Audio Interface

227 www.national.comCP3BT26ACCESS.busACBSDA Byte FF F2A0h Read/Write XXhACBST Byte FF F2A2h Read/Write 00hACBCST Byte FF F2A4h Read/Write 00hACBCTL1 B

Page 144 - RXDSA = 0

www.national.com 228CP3BT26Versatile Timer UnitMODE Word FF FF80h Read/Write 0000hIO1CTL Word FF FF82h Read/Write 0000hIO2CTL Word FF FF84h Read/Write

Page 145 - 145 www.national.com

229 www.national.comCP3BT26RNGRNGCST Word FF F280h Read/Write 0000hRNGD Word FF F282h Read/Write 0000hRNGDIVH Word FF F284h Read/Write 0000hRNGDIVL Wo

Page 146 - 20.4 FRAME CLOCK GENERATION

23 www.national.comCP3BT26STORMP imm3 Store 1 to 8 registers (R2-R5, R8-R11) to memory starting at (R7,R6)DI Disable maskable interruptsEI Enable mask

Page 147 - 147 www.national.com

www.national.com 230CP3BT2629.0 Register Bit FieldsThe following tables show the functions of the bit fields of the device registers. For more informa

Page 148 - 20.6 COMMUNICATION OPTIONS

231 www.national.comCP3BT26WTPTC_5SLOT[15:8] WTPTC_5SLOT[15:8]SEQ_RESET ReservedSEQ_RESETSEQ_CONTINUE ReservedSEQ_CONTINUERX_STATUS Reserved HEC Error

Page 149 - 149 www.national.com

www.national.com 232CP3BT26NAKEV OUT INNAKMSK OUT INFWEV RXWARN[3:1] Reserved TXWARN[3:1] ReservedFWMSK RXWARN[3:1] Reserved TXWARN[3:1] ReservedFNH M

Page 150

233 www.national.comCP3BT26RXS2 RX_ERR SETUP TOGGLE RX_LAST RCOUNTRXC2 Reserved RFWL Reserved FLUSHIGN_SETUPReserved RX_ENEPC5 STALL Reserved ISO EP_E

Page 151 - 151 www.national.com

www.national.com 234CP3BT26CANMemoryRegisters15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0CMBn.ID1XI28ID10XI27ID9XI26ID8XI25ID7XI24ID6XI23ID5XI22ID4XI21ID3XI2

Page 152

235 www.national.comCP3BT26System Configuration Registers76543210MCFGReservedMEM_IO_SPEEDMISC_IO_SPEEDUSB_ENABLESCLKOE MCLKOE PLLCLKOE EXIOEDBGCFG Res

Page 153 - 153 www.national.com

www.national.com 236CP3BT26FMPROG Reserved FTPROGFMPERASE Reserved FTPERFMMERASE0 Reserved FTMERFMEND Reserved FTENDFMMEND Reserved FTMENDFMRCV Reserv

Page 154

237 www.national.comCP3BT26FSMAR0 ReservedUSB_EN-ABLEFSMAR1 WRPROTRDPROT ISPE EMPTY BOOTAREAFSMAR2 CADR15:0Flash Data Memory Interface Registers15 14

Page 155 - 155 www.national.com

www.national.com 238CP3BT26PMM Register76543210PMMCR HCCH HCCM DHC DMC WBPSM HALT IDLE PSMPMMSR Reserved OHC OMC OLCMIWU16Registers15 14 13 12

Page 156

239 www.national.comCP3BT26ATDR1 ATDH ATDLATDR2 ATDH ATDLATDR3 ATDH ATDLAGCRCLKENAAIENIOM2 IFS FSL CTF CRF IEBC FSS IEFS SCS LPB DWL ASSAISCR Reserved

Page 157 - 157 www.national.com

www.national.com 24CP3BT266.0 MemoryThe CP3BT26 supports a uniform 16M-byte linear addressspace. Table 6 lists the types of memory and peripheralsthat

Page 158 - 21.2 PCM CONVERSIONS

www.national.com 240CP3BT26MWSPI16Registers15 . . . 9876543210MWDAT MWDATMWCTL1 SCDV SCIDL SCM EIW EIR EIO ECHO MOD MNS MWENMWSTAT Reserved OVR RBF BS

Page 159

241 www.national.comCP3BT26VTURegisters151413121110 9876543210MODE TMOD4T8RUNT7RUNTMOD3T6RUNT5RUNTMOD2T4RUNT3RUNTMOD1T2RUNT1RUNIO1CTLP4POLC4EDGP3PO

Page 160 - 21.8 FREEZE

www.national.com 242CP3BT26RNGRegisters15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0RNGCST Reserved IMSK ReservedDVALIDRNGERNGD RNGDRNGDIVH ReservedRNGDIV17:1

Page 161 - . If set, this bit en

243 www.national.comCP3BT2630.0 Electrical Characteristics30.1 ABSOLUTE MAXIMUM RATINGSIf Military/Aerospace specified devices are required, pleasecon

Page 162

www.national.com 244CP3BT26IO(Off)Output Leakage Current(I/O pins in input mode) 0V ≤ Vout ≤ Vcc -2.0 2.0 µAIcca1 Digital Supply Current Active Mode b

Page 163 - 22.0 UART Modules

245 www.national.comCP3BT2630.3 USB TRANSCEIVER ELECTRICAL CHARACTERISTICS (Temperature: -40°C ≤ TA ≤ +85°C)30.4 ADC ELECTRICAL CHARACTERISTICS (Tempe

Page 164

www.national.com 246CP3BT2630.5 FLASH MEMORY ON-CHIP PROGRAMMINGSymbol Parameter Conditions Min Max UnitstSTARTProgram/Erase to NVSTR Setup Timea(

Page 165 - 165 www.national.com

247 www.national.comCP3BT2630.6 OUTPUT SIGNAL LEVELSAll output signals are powered by the digital supply (VCC). Table 83 summarizes the states of the

Page 166

www.national.com 248CP3BT26Figure 110. Clock TimingFigure 111. NMI Signal TimingFigure 112. Non-Power-On ResetFigure 113. Power-On ResetX1CKItX1htX1lt

Page 167 - 167 www.national.com

249 www.national.comCP3BT2630.8 UART TIMINGFigure 114. UART Asynchronous Mode TimingTable 85 UART SignalsSymbolFigureDescription Reference Min (ns) Ma

Page 168 - 22.3 UART REGISTERS

25 www.national.comCP3BT266.2 BUS INTERFACE UNIT (BIU)The BIU controls the interface between the CPU core busand those on-chip modules which are mappe

Page 169 - 169 www.national.com

www.national.com 250CP3BT2630.9 I/O PORT TIMINGFigure 115. I/O Port TimingTable 86 I/O Port SignalsSymbolFigureDescription Reference Min (ns) Max (ns)

Page 170

251 www.national.comCP3BT2630.10 ADVANCED AUDIO INTERFACE (AAI) TIMINGFigure 116. Receive Timing, Short Frame SyncTable 87 Advanced Audio Interface (A

Page 171 - 171 www.national.com

www.national.com 252CP3BT26Figure 117. Transmit Timing, Short Frame SyncFigure 118. Receive Timing, Long Frame SyncFigure 119. Transmit Timing, Long F

Page 172 - 22.4 BAUD RATE CALCULATIONS

253 www.national.comCP3BT2630.11 MICROWIRE/SPI TIMINGTable 88 Microwire/SPI SignalsSymbolFigureDescription Reference Min (ns) Max (ns)Microwire/SPI In

Page 173 - 173 www.national.com

www.national.com 254CP3BT26Figure 120. Microwire Transaction Timing, Normal Mode, SCIDL = 0tMDOv120 Microwire Data Out ValidNormal Mode: After FE on M

Page 174

255 www.national.comCP3BT26Figure 121. Microwire Transaction Timing, Normal Mode, SCIDL = 1lsbmsbtMSKptMSKhtMDlhtMDlstMCSstMCShtMSKstMDOftMDOvtMDOftMD

Page 175 - 23.0 Microwire/SPI Interface

www.national.com 256CP3BT26Figure 122. Microwire Transaction Timing, Alternate Mode, SCIDL = 0MSKlsbmsbData InlsbmsbMDODO(master)lsbmsbMDIDO(slave)MCS

Page 176

257 www.national.comCP3BT26Figure 123. Microwire Transaction Timing, Alternate Mode, SCIDL = 1Figure 124. Microwire Transaction Timing, Data Echoed to

Page 177 - 23.2 MASTER MODE

www.national.com 258CP3BT2630.12 ACCESS.BUS TIMINGTable 89 ACCESS.bus SignalsSymbolFigureDescription Reference Min (ns) Max (ns)ACCESS.bus Input Signa

Page 178 - 23.4 INTERRUPT GENERATION

259 www.national.comCP3BT26Figure 125. ACB Signals (SDA and SCL) TimingFigure 126. ACB Start and Stop Condition TimingFigure 127. ACB Start Condition

Page 179 - 179 www.national.com

www.national.com 26CP3BT266.4.2 I/O Zone Configuration Register (IOCFG)The IOCFG register is a word-wide, read/write register thatcontrols the timing

Page 180

www.national.com 260CP3BT26Figure 128. ACB Data TimingtSCAvotSDAhtCSLlowtSDAsitSCLhighSCLSDANote: In the timing tables the parameter name is added wit

Page 181 - 24.0 ACCESS.bus Interface

261 www.national.comCP3BT2630.13 USB PORT AC CHARACTERISTICS30.14 MULTI-FUNCTION TIMER (MFT) TIMINGFigure 129. Multi-Function Timer Input TimingTable

Page 182

www.national.com 262CP3BT2630.15 VERSATILE TIMING UNIT (VTU) TIMINGFigure 130. Versatile Timing Unit Input TimingTable 92 Versatile Timing Unit Input

Page 183 - 183 www.national.com

263 www.national.comCP3BT2630.16 EXTERNAL BUS TIMINGTable 93 External Bus SignalsSymbolFigureDescription Reference Min (ns) Max (ns)External Bus Input

Page 184

www.national.com 264CP3BT26Figure 131. Early Write Between Normal Read Cycles (No Wait States)T1 T2 T1 T2 T3 T1 T2A[21:0]A22 ('13 only)CLKNormal

Page 185 - 185 www.national.com

265 www.national.comCP3BT26Figure 132. Late Write Between Normal Read Cycles (No Wait States)T1 T2 T1 T2 T1 T2CLKSELxD[15:0]In InOut(y ≠ x)RDNormal Re

Page 186

www.national.com 266CP3BT26Figure 133. Consecutive Normal Read Cycles (Burst, No Wait States)T1 T2 T2B T1 T2 T2BNormal Read Normal ReadCLKSELxSELyWR[1

Page 187 - 187 www.national.com

267 www.national.comCP3BT26Figure 134. Normal Read Cycle (Wait Cycle Followed by Hold Cycle)T1 TW T2 THCLKD[15:0]SELn,SELIOWR[1:0]RDt4t5, t12t5, t12t5

Page 188

www.national.com 268CP3BT26Figure 135. Early Write Between Fast Read CyclesTidleT1-2 T1 T1T2 T3 T1-2Fast Read Early WriteCLKSELxSELyWR[1:0]D[15:0](y ≠

Page 189 - 24.4 USAGE HINTS

269 www.national.comCP3BT2631.0 Pin Assignments31.1 LQFP-128 PACKAGEFor 128-pin devices, Figure 136 provides a pinout diagram, and Table 94 provides t

Page 190

27 www.national.comCP3BT26IPRE The Preliminary Idle bit controls whether anidle cycle is inserted prior to the current buscycle, when the new bus cycl

Page 191 - 191 www.national.com

www.national.com 270CP3BT26AVCC 29 PWRADGND 90 PWRADVCC 89 PWRUVCC 62 PWRUGND 63 PWRX2CKI 30 IX2CKO 31 OENV2 SLOWCLK 34 I/OENV1 CPUCLK 35 I/OENV0 PLLC

Page 192 - 25.2 TIMER T0 OPERATION

271 www.national.comCP3BT26PC5 D13 5 GPIOPC6 D14 3 GPIOPC7 D15 2 GPIOPE0 RXD0 87 GPIOPE1 TXD0 83 GPIOPE2 RTS86 GPIOPE3 CTS88 GPIOPE4 CKX/TB 40 GPIOPE5

Page 193 - 25.4 TWM REGISTERS

www.national.com 272CP3BT2631.2 LQFP-144 PACKAGEFor 144-pin devices, Figure 137 provides a pinout diagram, and Table 95 provides the pin assignments.

Page 194

273 www.national.comCP3BT26Table 95 Pin Assignments for LQFP-144 PackagePin Name Alternate Function(s) Pin Number TypeGND 23, 32, 58, 85, 91, 121 PWR

Page 195 - PROCEDURE

www.national.com 274CP3BT26PB4 D4 17 GPIOPB5 D5 15 GPIOPB6 D6 14 GPIOPB7 D7 13 GPIOPC0 D8 11 GPIOPC1 D9 10 GPIOPC2 D10 8 GPIOPC3 D11 7 GPIOPC4 D12 5 G

Page 196 - 26.0 Multi-Function Timer

275 www.national.comCP3BT26A22 62 OA21 61 OA20 60 OA19 54 OA18 53 OA17 45 OA16 42 OA15 40 OA14 39 OA13 143 OA12 142 OA11 141 OA10 139 OA9 132 OA8 131

Page 197 - 197 www.national.com

www.national.com 276CP3BT2632.0 Revision HistoryTable 96 Revision History Date Major Changes From Previous Version4/3/03 Original release.5/26/03Fixed

Page 198

277 www.national.comCP3BT2633.0 Physical Dimensions (millimeters) unless otherwise notedFigure 138. LQFP-128 PackageFigure 139. LQFP-144 Package

Page 199 - 199 www.national.com

National Semiconductor Americas CustomerSupport CenterEmail: [email protected]: 1-800-272-9959National Semiconductor Europe CustomerSupport Cent

Page 200

www.national.com 28CP3BT26FRE The Fast Read Enable bit controls whetherfast read bus cycles are used. A fast read op-eration takes one clock cycle. A

Page 201 - 201 www.national.com

29 www.national.comCP3BT267.0 System Configuration RegistersThe system configuration registers control and provide sta-tus for certain aspects of devi

Page 202 - 26.4 TIMER I/O FUNCTIONS

3 www.national.comCP3BT262.0 FeaturesCPU Features Fully static RISC processor core, capable of operatingfrom 0 to 24 MHz with zero wait/hold states

Page 203 - 26.5 TIMER REGISTERS

www.national.com 30CP3BT267.2 MODULE STATUS REGISTER (MSTAT)The MSTAT register is a byte-wide, read-only register thatindicates the general status of

Page 204

31 www.national.comCP3BT268.0 Flash MemoryThe flash memory consists of the flash program memoryand the flash data memory. The flash program memory isf

Page 205 - 205 www.national.com

www.national.com 32CP3BT268.2.1 Main Block 0 and 1Main Block 0 and Main Block 1 hold the 256K-byte programspace, which consists of the Boot Area and C

Page 206

33 www.national.comCP3BT268.3.3 Main Block Page EraseA flash erase operation sets all of the bits in the erased re-gion. Pages of a main block can be

Page 207 - 207 www.national.com

www.national.com 34CP3BT268.4 INFORMATION BLOCK WORDSTwo words in the information blocks are dedicated to holdsettings that affect the operation of th

Page 208

35 www.national.comCP3BT26RDPROT The RDPROT field controls the global readprotection mechanism for the on-chip flashprogram memory. If a majority of t

Page 209 - 209 www.national.com

www.national.com 36CP3BT268.5.1 Flash Memory Information Block Address Register (FMIBAR/FSMIBAR)The FMIBAR register specifies the 8-bit address for re

Page 210 - 27.2 VTU REGISTERS

37 www.national.comCP3BT268.5.5 Flash Data Memory 0 Write Enable Register (FSM0WER)The FSM0WER register controls write protection for theflash data me

Page 211 - 211 www.national.com

www.national.com 38CP3BT268.5.7 Flash Memory Status Register (FMSTAT/FSMSTAT)This register reports the currents status of the on-chip Flashmemory. The

Page 212

39 www.national.comCP3BT268.5.10 Flash Memory Transition Time Reload Register (FMTRAN/FSMTRAN)The FMTRAN/FMSTRAN register is a byte-wide read/writereg

Page 213 - 213 www.national.com

www.national.com 4CP3BT263.0 Device OverviewThe CP3BT26 connectivity processor is a complete micro-computer with all system timing, interrupt logic, p

Page 214 - 28.0 Register Map

www.national.com 40CP3BT268.5.16 Flash Memory Recovery Time Reload Register (FMRCV/FSMRCV)The FMRCV/FSMRCV register is a byte-wide read/writeregister

Page 215 - 215 www.national.com

41 www.national.comCP3BT269.0 DMA ControllerThe DMA Controller (DMAC) has a register-based program-ming interface, as opposed to an interface based on

Page 216

www.national.com 42CP3BT26Direct mode supports two bus policies: intermittent and con-tinuous. In intermittent mode, the DMAC gives bus master-ship ba

Page 217 - 217 www.national.com

43 www.national.comCP3BT26If the DMASTAT.VLD bit is clear:1. The transfer operation terminates.2. The channel sets the DMASTAT.OVR bit.3. The DMASTAT.

Page 218

www.national.com 44CP3BT269.6.1 Device A Address Counter Register (ADCAn)The Device A Address Counter register is a 32-bit, read/write register. It ho

Page 219 - 219 www.national.com

45 www.national.comCP3BT269.6.6 Block Length Register (BLTRn)The Block Length register is a 16-bit, read/write register. Itholds the number of DMA tra

Page 220

www.national.com 46CP3BT269.6.8 DMA Status Register (DMASTAT)The DMA status register is a byte-wide, read register thatholds the status information fo

Page 221 - 221 www.national.com

47 www.national.comCP3BT2610.0 InterruptsThe Interrupt Control Unit (ICU) receives interrupt requestsfrom internal and external sources and generates

Page 222

www.national.com 48CP3BT2610.3.1 Interrupt Vector Register (IVCT)The IVCT register is a byte-wide read-only register which re-ports the encoded value

Page 223 - 223 www.national.com

49 www.national.comCP3BT2610.3.4 Interrupt Enable and Mask Register 0 (IENAM0)The IENAM0 register is a word-wide read/write registerwhich holds bits t

Page 224

5 www.national.comCP3BT263.7 BLUETOOTH LLCThe integrated hardware Bluetooth Lower Link Controller(LLC) complies to the Bluetooth Specification Version

Page 225 - 225 www.national.com

www.national.com 50CP3BT2610.4 MASKABLE INTERRUPT SOURCESTable 20 shows the interrupts assigned to various on-chipmaskable interrupts. The priority of

Page 226

51 www.national.comCP3BT2611.0 Triple Clock and ResetThe Triple Clock and Reset module generates a 12 MHzMain Clock and a 32.768 kHz Slow Clock from e

Page 227 - 227 www.national.com

www.national.com 52CP3BT2611.1 EXTERNAL CRYSTAL NETWORKAn external crystal network is connected to the X1CKI andX1CKO pins to generate the Main Clock,

Page 228

53 www.national.comCP3BT26Choose capacitor component values in the tables to obtainthe specified load capacitance for the crystal when com-bined with

Page 229 - 229 www.national.com

www.national.com 54CP3BT2611.5 SYSTEM CLOCKThe System Clock drives most of the on-chip modules, in-cluding the CPU. Typically, it is driven by the Mai

Page 230 - 29.0 Register Bit Fields

55 www.national.comCP3BT26FCLK bit cannot be cleared until the PLL clockhas stabilized. After reset this bit is set.0 – PLL is active.1 – PLL is power

Page 231 - 231 www.national.com

www.national.com 56CP3BT2612.0 Power ManagementThe Power Management Module (PMM) improves the effi-ciency of the CP3BT26 by changing the operating mod

Page 232

57 www.national.comCP3BT2612.3 IDLE MODEIn Idle mode, the System Clock is disabled and therefore theclock is stopped to most modules of the device. Th

Page 233 - 233 www.national.com

www.national.com 58CP3BT26HALT The Halt Mode bit indicates whether the de-vice is in Halt mode. Before entering Haltmode, the WBPSM bit must be set. W

Page 234

59 www.national.comCP3BT2612.6.2 Power Management Status Register (PMMSR)The Management Status Register (PMMR) is a byte-wide,read/write register that

Page 235 - 235 www.national.com

www.national.com 6CP3BT263.14 RANDOM NUMBER GENERATOR RNG peripheral for use in Trusted Computer Peripheral Ap-plications (TCPA) to improve the authen

Page 236

www.national.com 60CP3BT2612.7.2 Entering Idle ModeEntry into Idle mode is performed by writing a 1 to the PM-MCR.IDLE bit and then executing a WAIT i

Page 237 - 237 www.national.com

61 www.national.comCP3BT2613.0 Multi-Input Wake-UpThe Multi-Input Wake-Up (MIWU) unit consists of two iden-tical 16-channel modules. Each module can a

Page 238

www.national.com 62CP3BT2613.1 MULTI-INPUT WAKE-UP REGISTERSTable 28 lists the MIWU registers.Table 27 MIWU SourcesMIWU Channel SourceWUI0 TWM T0OUTWU

Page 239 - 239 www.national.com

63 www.national.comCP3BT2613.1.1 Wake-Up Edge Detection Register (WK0EDG)The WK0EDG register is a word-wide read/write registerthat controls the edge

Page 240

www.national.com 64CP3BT2613.1.7 Wake-Up Interrupt Control Register 1 (WK0ICTL1)The WK0ICTL1 register is a word-wide read/write registerthat selects t

Page 241 - 241 www.national.com

65 www.national.comCP3BT2613.1.11 Wake-Up Pending Register (WK0PND)The WK0PND register is a word-wide read/write register inwhich the Multi-Input Wake

Page 242

www.national.com 66CP3BT2613.2 PROGRAMMING PROCEDURESTo set up and use the Multi-Input Wake-Up function, use thefollowing procedure. Performing the st

Page 243 - 30.1 ABSOLUTE MAXIMUM RATINGS

67 www.national.comCP3BT2614.0 Input/Output PortsEach device has up to 54 software-configurable I/O pins, or-ganized into 8-bit ports (not all bits ar

Page 244

www.national.com 68CP3BT26In the descriptions of the ports and port registers, the lower-case letter “x” represents the port designation, either B, C,

Page 245 - 245 www.national.com

69 www.national.comCP3BT26All of the port registers are byte-wide read/write registers,except for the port data input registers, which are read-onlyre

Page 246

7 www.national.comCP3BT263.21 POWER MANAGEMENTThe Power Management Module (PMM) improves the effi-ciency of the device by changing the operating mode

Page 247 - 30.7 CLOCK AND RESET TIMING

www.national.com 70CP3BT2614.1.6 Port High Drive Strength Register (PxHDRV)The PxHDRV register is a byte-wide, read/write register thatcontrols the sl

Page 248 - Figure 113. Power-On Reset

71 www.national.comCP3BT2614.2 OPEN-DRAIN OPERATIONA port pin can be configured to operate as an invertingopen-drain output buffer. To do this, the CP

Page 249 - 30.8 UART TIMING

www.national.com 72CP3BT2615.0 Bluetooth ControllerThe integrated hardware Bluetooth Lower Link Controller(LLC) complies to the Bluetooth Specificatio

Page 250 - 30.9 I/O PORT TIMING

73 www.national.comCP3BT26transmitter circuit of the radio chip is enabled, correspond-ing to the settings of the power control register in the radioc

Page 251 - 251 www.national.com

www.national.com 74CP3BT26Write OperationWhen the R/W bit is clear, the 16 bits of the data field areshifted out of the CP3BT26 on the falling edge of

Page 252

75 www.national.comCP3BT26Figure 18. 32-Bit Write TimingFigure 19. 32-Bit Read TimingAn example of a 32-bit write is shown in Table 31. In this ex-amp

Page 253 - 30.11 MICROWIRE/SPI TIMING

www.national.com 76CP3BT2615.3 LMX5251 POWER-UP SEQUENCETo power-up a Bluetooth system based on the CP3BT26and LMX5251 devices, the following sequence

Page 254

77 www.national.comCP3BT26Figure 22. LMX5252 Power-Up Sequence15.5 BLUETOOTH SLEEP MODEThe Bluetooth controller is capable of putting itself into asle

Page 255 - 255 www.national.com

www.national.com 78CP3BT2615.8 BLUETOOTH SHARED DATA RAMThe shared data RAM is a 4.5K memory-mapped section ofRAM that contains the link control data,

Page 256

79 www.national.comCP3BT2616.0 12-Bit Analog to Digital ConverterThe integrated 12-bit ADC provides the following features: 8-input analog multiplexe

Page 257 - 257 www.national.com

www.national.com 8CP3BT264.0 Signal DescriptionsFigure 1. CP3BT26 Device SIgnalsSome pins may be enabled as general-purpose I/O-portpins or as alterna

Page 258 - 30.12 ACCESS.BUS TIMING

www.national.com 80CP3BT26The output of the Input Multiplexer is available externally asthe MUXOUT0 and MUXOUT1 signals. In single-endedmode, only MUX

Page 259 - 259 www.national.com

81 www.national.comCP3BT2616.2 TOUCHSCREEN INTERFACEThe ADC provides an interface for 4-wire resistive touch-screens with the resolution necessary for

Page 260 - Figure 128. ACB Data Timing

www.national.com 82CP3BT2616.2.2 Measuring Pen ForceFigure 27 shows equivalent circuits for the driver modesused to measure the X, Y, and Z coordinate

Page 261 - 261 www.national.com

83 www.national.comCP3BT263. By extension, the ADC negative voltage reference canbe internally connected to the TSY- terminal, to recoverthe full 4096

Page 262

www.national.com 84CP3BT2616.5.1 ADC Global Configuration Register (ADCGCR)The ADCGCR register controls the basic operation of the in-terface. The CPU

Page 263 - 30.16 EXTERNAL BUS TIMING

85 www.national.comCP3BT26PREF_CFG The Positive Voltage Reference Configurationfield specifies the source of the ADC positivevoltage reference, accord

Page 264

www.national.com 86CP3BT2616.5.3 ADC Conversion Control Register (ADCCNTRL)The ADCCNTRL register specifies the trigger conditions foran ADC conversion

Page 265 - 265 www.national.com

87 www.national.comCP3BT2616.5.6 ADC Result Register (ADCRESLT)The ADCRESLT register includes the software-visible endof a 4-word FIFO. Conversion res

Page 266

www.national.com 88CP3BT2617.0 Random Number Generator (RNG)The RNG unit is a hardware “true random” number genera-tor. When enabled, this unit provid

Page 267 - 267 www.national.com

89 www.national.comCP3BT2617.2 RANDOM NUMBER GENERATOR REGISTER SETTable 34 lists the RNG registers.17.2.1 RNG Control and Status Register (RNGCST)The

Page 268

9 www.national.comCP3BT26Table 2 CP3BT26 LQFP-128 Signal DescriptionsName Pins I/O Primary FunctionAlternate NameAlternate FunctionX1CKI 1Input 12 MHz

Page 269 - 31.0 Pin Assignments

www.national.com 90CP3BT2618.0 USB ControllerThe CR16 USB node is an integrated USB node controllerthat features enhanced DMA support with many automa

Page 270

91 www.national.comCP3BT2618.2 ENDPOINT OPERATION18.2.1 Address Detection Packets are broadcast from the host controller to all nodeson the USB networ

Page 271 - 271 www.national.com

www.national.com 92CP3BT26Bidirectional Control Endpoint FIFO0 OperationFIFO0 should be used for the bidirectional control endpoint0. It can be config

Page 272 - (LQFP-144)

93 www.national.comCP3BT26Receive Endpoint FIFO Operation (RXFIFO1, RXFIFO2, RXFIFO3)The Receive FIFOs for endpoints 2, 4, and 6 support bulk,interrup

Page 273 - 273 www.national.com

www.national.com 94CP3BT2618.3.1 Main Control Register (MCNTRL)The MCNTRL register controls the main functions of theCR16 USB node. The MCNTRL registe

Page 274

95 www.national.comCP3BT26NAT The Node Attached indicates that this node isready to be detected as attached to USB.When clear, the transceiver forces

Page 275 - 275 www.national.com

www.national.com 96CP3BT2618.3.3 Main Event Register (MAEV)The Main Event Register summarizes and reports the mainevents of the USB transactions. This

Page 276 - 32.0 Revision History

97 www.national.comCP3BT26SD3 The Suspend Detect 3 ms bit is set after 3 msof IDLE have been detected on the upstreamport, indicating that the device

Page 277 - 277 www.national.com

www.national.com 98CP3BT2618.3.9 Receive Event Register (RXEV) The RXEV register reports the current status of the FIFO,used by the three Receive Endp

Page 278

99 www.national.comCP3BT2618.3.13 FIFO Warning Event Register (FWEV) The FWEV register signals whether a receive or transmitFIFO has reached its warni

Comments to this Manuals

No comments