English
Language : 

COP413C Datasheet, PDF (8/16 Pages) National Semiconductor (TI) – Single-Chip CMOS Microcontrollers
Functional Description (Continued)
The SIO register functions as a 4-bit serial-in serial-out shift
register or as a binary counter depending upon the con-
tents of the EN register (See EN register description be-
low ) Its contents can be exchanged with A allowing
it to input or output a continuous serial data stream With
SIO functioning as a serial-in serial-out shift register and SK
as a sync clock the COP413C is MICROWIRE compatible
The XAS instruction copies C into the SKL latch In the
counter mode SK is the output of SKL in the shift register
mode SK is a sync clock inhibited when SKL is a logic ‘‘0’’
The EN register is an internal 4-bit register loaded under
program control by the LEI instruction The state of each bit
of this register selects or deselects the particular feature
associated with each bit of the EN register (EN3–EN0)
1 The least significant bit of the enable register EN0 se-
lects the SIO register as either a 4-bit shift register or as a
4-bit binary counter With EN0 set SIO is an asynchro-
nous binary counter decrementing its value by one upon
each low-going pulse (‘‘1’’ to ‘‘0’’) occurring on the SI
input Each pulse must be at least two instruction cycles
wide SK outputs the value of SKL The SO output is
equal to the value of EN3 With EN0 reset SIO is a serial
shift register shifting left each instruction cycle time The
data present at SI is shifted into the least significant bit of
SIO SO can be enabled to output the most significant bit
of SIO each instruction cycle time (See 4 below ) The
SK output becomes a logic-controlled clock
2 EN 1 is not used it has no effect on the COP413C
3 With EN2 set the L drivers are enabled to output the data
in Q to the L I O ports Resetting EN2 disables the L
drivers placing the L I O ports in a high impedance input
state
4 EN3 in conjunction with EN0 affects the SO output With
EN0 set (binary counter option selected) SO will output
the value loaded into EN3 With EN0 reset (serial shift
register option selected) setting EN3 enables SO as the
output of the SIO shift register outputting serial shifted
data each instruction time Resetting EN3 with the serial
shift register option selected disables SO as the shift
register output data continues to be shifted through SIO
and can be exchanged with A via an XAS instruction but
SO remains reset to ‘‘0’’
INITIALIZATION
The external RC network shown in Figure 5 must be con-
nected to the RESET pin The RESET pin is configured as a
Schmitt trigger input If not used it should be connected to
VCC Initialization will occur whenever a logic ‘‘0’’ is applied
to the RESET input providing it stays low for at least three
instruction cycle times
Upon initialization the PC register is cleared to 0 (ROM ad-
dress 0) and the A B C EN and G registers are cleared
The SK output is enabled as a SYNC output providing a
pulse each instruction cycle time Data memory (RAM) is
not cleared upon initialization The first instruction at ad-
dress 0 must be a CLRA (clear A register)
RC l 5 c Power Supply Rise Time
and RC l 100 c CKI Period
TL DD 8537 – 5
FIGURE 5 Power-Up Clear Circuit
TABLE I Enable Register Modes Bits EN0 and EN3
EN0 EN3
SIO
SI
SO
SK
0
0
Shift Register
Input to Shift
0
If SKL e 1 SK e clock
Register
If SKL e 0 SK e 0
0
1
Shift Register
Input to Shift
Serial If SKL e 1 SK e clock
Register
out
If SKL e 0 SK e 0
1
0
Binary Counter Input to Counter
0
SK e SKL
1
1
Binary Counter Input to Counter
1
SK e SKL
8