dp8344b National Semiconductor Corporation, dp8344b Datasheet - Page 14

no-image

dp8344b

Manufacturer Part Number
dp8344b
Description
Biphase Communications Processor?bcp
Manufacturer
National Semiconductor Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
dp8344bV
Manufacturer:
NSC
Quantity:
5 510
Part Number:
dp8344bV
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
dp8344bV
Manufacturer:
NS/国半
Quantity:
20 000
2 0 CPU Description
Registers in the R0 – R11 address space are allocated in a
manner that minimizes the need to switch banks
Main A
Alternate A
Main B
Alternate B
Most of the BCP’s instructions with register operand(s) can
access all 32 register locations Only instructions with an
immediate operand are limited to the first sixteen register
locations (R0 – R15) These instructions however still have
access to all registers required for transceiver operation
CPU status and control registers 12 general purpose regis-
ters and two of the index registers
The general purpose registers are used for the majority of
BCP operations There are 8 general purpose registers in
Main Bank B (R4 – R11) 4 in Alternate Bank B (R8 – R11)
and 8 more (R20 – R27) that are always accessible but are
outside the limited register range Since these registers are
internal to the BCP they can be accessed without data
memory wait states speeding up processing time The in-
dex registers may also be used as general purpose registers
if required
For those instructions that require two operands an accu-
mulator (R8 one in each bank) serves as the second oper-
and The result of such an operation is stored back in the
accumulator only if it is specified as the destination thus
allowing three operand operations such as R5
R8
planation
Most registers have a predetermined state following a reset
to the BCP Refer to Section 6 2 Register Set Reference for
a detailed summary
2 1 1 1 Banked Registers
The CPU register set was designed to optimize CPU per-
formance in an environment which supports multiple tasks
Generally the most important and time critical of these tasks
will be maintaining the serial link (servicing the transceiver
section) which often requires real time processing of com-
mands and data Therefore all transceiver functions have
been mapped into special function registers which the CPU
can access quickly and easily Switching between this task
and other tasks has been facilitated by dedicating a register
bank (Alternate B) to transceiver functions Alternate Bank
B provides access to all transceiver status control and
data in addition to four general purpose registers for proto-
col related storage Main Bank B contains eight general pur-
pose registers for use by other tasks Having general pur-
pose registers in both B banks allows for quick context
switching and also helps eliminate some of the overhead of
saving general purpose registers The main objective of this
banked register structure is to expedite servicing of the
transceiver as a background (interrupt driven) task allowing
the CPU to efficiently interleave that function with other
background and foreground operations
To facilitate using the transceiver in a polled fashion (in-
stead of using interrupts) many of the status flags neces-
sary to handshake with the transceiver are built into the
conditional jump instructions with others available in the
Main A bank (normally active) so that Alternate Bank B does
x
R20 See Section 2 1 3 Instruction Set for further ex-
CPU control and transceiver status
CPU and transceiver configuration
8 general purpose
4 transceiver access 4 general purpose
(Continued)
a
14
Communication Processor
not have to be switched in to poll the transceiver Timer and
BIRQ tasks may also be run using polling techniques to
Main A bank
In general the registers have been arranged within the
banks so as to minimize the need to switch banks The pow-
er-up state is Alternate bank A Alternate bank B allowing
access to configuration registers Again the banks switch
by using the EXX instruction which explicitly specifies which
bank is active (Main or Alternate) for each register group (A
and B) The EXX instruction allows selecting any of four
possible bank settings with a single two T-state instruction
This instruction also has the option of enabling or disabling
the maskable interrupts
The contents of the special function registers can be divid-
ed into several groups for general discussion timing con-
trol interrupt control the transceiver the condition codes
the index registers the timer the stacks and remote inter-
face
2 1 1 2 Timing Control Registers
The BCP provides a means to configure its external timing
through setting bits in the Device Control Register
and the Auxiliary Control Register
configuration registers to be initialized on power-up reset is
the BCP is functioning Specifically
clock select logic for both the CPU and transceiver in addi-
tion to the number of wait states to be used for instruction
and data memory accesses
The BCP allows either one clock source operation for the
CPU and the transceiver from the on-chip oscillator or an
independent clock source can run the transceiver from the
eXternal Transceiver CLocK input X-TCLK The Transceiv-
er Clock Select bits TCS1 0 select the clock source for
the transceiver which is either the on-chip Oscillator CLocK
OCLK or X-TCLK Options for selecting divisions of the on-
chip oscillator frequency are also provided (see the descrip-
tion of DCR in Section 6 2 Register Set Reference The
CPU Clock Select bit CCS allows the CPU to run at the
OCLK frequency or at half that speed The clock output at
the pin CLK-OUT however is never divided and always re-
flects the crystal frequency OCLK The frequency selected
for the transceiver (referred to as TCLK) should always be
eight times the desired serial data rate The frequency se-
lected for the CPU defines the length of each T-state (e g
20 MHz implies 50 ns T-states)
There are two independent fields for defining wait states
one for instruction memory access (n
memory access (n
many wait states to insert to meet the access time require-
ments of both memory systems The Instruction memory
Wait-state select bits IW1 0 and the Data memory Wait-
state select bits DW2 – 0 control the number of inserted
wait states for instruction and data memory respectively
After a reset the maximum number of wait states are set in
states are discussed in more detail in Section 2 2 2 Timing
For a complete discussion on choosing your memory and
determining the number of wait states required please refer
to the application note Choosing Your RAM for the Biphase
DCR which defines the hardware environment in which
DCR
n
IW
e
3 T-states and n
DW
) These fields specify to the BCP how
DW
ACR
IW
e
DCR
) and one for data
7 T-states Wait-
One of the first
controls the
DCR

Related parts for dp8344b