English
Language : 

NS32CG16-10 Datasheet, PDF (35/82 Pages) National Semiconductor (TI) – High-Performance Printer / Display Processor
3 0 Functional Description (Continued)
TABLE 3-2 Summary of Exception Processing
Exception
Instruction
Ending
Cleared before
Saving PSR
Interrupt
Before Instruction
None P
UND
SLAVE SVC DVZ FLG BPT ILL
TRC
Suspended
Suspended
Before Instruction
P
None
P
Cleared after
Saving PSR
TUSPI
TUS
TUSP
TUS
3 3 DEBUGGING SUPPORT
The NS32CG16 provides features to assist in program de-
bugging
Besides the Breakpoint (BPT) instruction that can be used
to generate soft breaks the CPU also provides the instruc-
tion tracing capability
3 3 1 Instruction Tracing
Instruction tracing is a very useful feature that can be used
during debugging to single-step through selected portions of
a program Tracing is enabled by setting the T-bit in the PSR
Register When enabled the CPU generates a Trace Trap
(TRC) after the execution of each instruction
At the beginning of each instruction the T-bit is copied into
the PSR P (Trace ‘‘Pending’’) bit If the P-bit is set at the end
of an instruction then the Trace Trap is activated If any
other trap or interrupt request is made during a traced in-
struction its entire service procedure is allowed to complete
before the Trace Trap occurs Each interrupt and trap se-
quence handles the P-bit for proper tracing guaranteeing
only one Trace Trap per instruction and guaranteeing that
the Return Address pushed during a Trace Trap is always
the address of the next instruction to be traced
The beginning of the execution of a TRAP(UND) is not con-
sidered to be a beginning of an instruction and hence the
T-bit is not copied into the P-bit
Due to the fact that some instructions can clear the T- and
P-bits in the PSR in some cases a Trace Trap may not
occur at the end of the instruction This happens when one
of the privileged instructions BICPSRW or LPRW PSR is
executed
In other cases it is still possible to guarantee that a Trace
Trap occurs at the end of the instruction provided that spe-
cial care is taken before returning from the Trace Trap Serv-
ice Procedure In case a BICPSRB instruction has been ex-
ecuted the service procedure should make sure that the
T-bit in the PSR copy saved on the Interrupt Stack is set
before executing the RETT instruction to return to the pro-
gram being traced If the RETT or RETI instructions have to
be traced the Trace Trap Service Procedure should set the
P- and T-bits in the PSR copy on the Interrupt Stack that is
going to be restored in the execution of such instructions
While debugging the NS32CG16 instructions which have in-
terior loops (BBOR BBXOR BBAND BBFOR EXTBLT
MOVMP SBITPS TBITS) special care must be taken with
the single-step trap If an interrupt occurs during a single-
step of one of the graphics instructions the interrupt will be
serviced Upon return from the interrupt service routine the
new NS32CG16 instruction will not be re-entered due to a
single-step trap Both the NMI and INT interrupts will cause
this behavior Another single-step operation (S command in
DBG16 MONCG) will resume from where the instruction
was interrupted There are no side effects from this early
termination and the instruction will complete normally
For all other Series 32000 instructions a single-step opera-
tion will complete the entire instruction before traping back
to the debugger On the instructions mentioned above serv-
eral single-step commands may be required to complete the
instruction ONLY when interrupts are occurring
There are some methods to give the appearance of single-
stepping for these NS32CG16 instructions
1 MON16 MONCG monitors the return from single-step
trap vector PC value If the PC has not changed since
the last single-step command was issued the single-step
operation is repeated It is also advisable to ensure that
one of the NS32CG16 instructions is being single-
stepped by inspecting the first byte of the address point-
ed to by the PC register If it is 0x0E then the instruction
is an NS32CG16-specific instruction
2 A breakpoint following the instruction would also trap af-
ter the instruction had completed
Note If instruction tracing is enabled while the WAIT instructioin is execut-
ed the Trap (TRC) occurs after the next interrupt when the interrupt
service procedure has returned
3 4 SYSTEM INTERFACE
This section provides general information on the
NS32CG16 interface to the external world Descriptions of
the CPU requirements as well as the various bus character-
istics are provided here Details on other device characteris-
tics including timing are given in Chapter 4
3 4 1 Power and Grounding
The NS32CG16 requires a single 5V power supply applied
on 5 pins The logic voltage pin (VCCL) supplies the power
to the on-chip logic The buffer voltage pins VCCCTTL
VCCFCLK VCCAD and VCCIO supply the power to the on-
chip output drivers
Grounding connections are made on 6 pins The Logic
Ground Pin (VSSL) provides the ground connection to the
on-chip logic The buffer ground pins VSSFCLK VSSNTSO
VSSHAD VSSLAD VSSIO are the ground pins for the on-
chip output drivers
For optimal noise immunity the power and ground pins
should be connected to VCC and ground planes respective-
ly If VCC and ground planes are not used single conductors
should be run directly from each VCC pin to a power point
and from each GND pin to a ground point Daisy-chained
connections should be avoided
Decoupling capacitors should also be used to keep the
noise level to a minimum Standard 0 1 mF ceramic capaci-
tors can be used for this purpose In addition a 1 0 mF
tantalum capacitor should be connected between VCCL and
ground They should attach to VCC VSS pairs as close as
possible to the NS32CG16
35