
Description of Selected Instructions
(Continued)
SKT INSTRUCTION
The SKT (Skip On Timer) instruction tests the state of the T
counter overflow latch (see internal logic, above), executing
the next program instruction if the latch is not set. If the
latch has been set since the previous test, the next program
instruction is skipped and the latch is reset. The features
associated with this instruction allow the processor to gen-
erate its own time-base for real-time processing, rather than
relying on an external input signal
Note: If the most significant bit of the T counter is a 1 when
a CAMT instruction loads the counter, the overflow flag will
be set. The following sample of codes should be used when
loading the counter:
CAMT
; load T counter
SKT
; skip if overflow flag is set and reset it
NOP
IT INSTRUCTION
The IT (idle till timer) instruction halts the processor and
puts it in an idle state until the time-base counter overflows.
This idle state reduces current drain since all logic (except
the oscillator and time base counter) is stopped.
INIL INSTRUCTION
INIL (Input IL Latches to A) inputs 2 latches, IL3 and IL0,
CKOI and 0 into A. The IL3 and IL0 latches are set if a low-
going pulse (‘‘1’’ to ‘‘0’’) has occurred on the IN3 and IN0
inputs since the last INIL instruction, provided the input
pulse stays low for at least two instruction cycles. Execution
of an INIL inputs IL3 and IL0 into A3 and A0 respectively,
and resets these latches to allow them to respond to subse-
quent low-going pulses on the IN3 and IN0 lines. The state
of CKOI is input into A2. A 0 is input into A1. IL latches are
cleared on reset.
Instruction Set Notes
a. The first word of a program (ROM address 0) must be a
CLRA (Clear A) instruction.
b. Although skipped instructions are not executed, they are
still fetched from the program memory. Thus program
paths take the same number of cycles whether instruc-
tions are skipped or executed except for JID, and LQID.
c. The ROM is organized into pages of 64 words each. The
Program Counter is a 11-bit binary counter, and will count
through page boundaries. If a JP, JSRP, JID, or LQID is
the last word of a page, it operates as if it were in the next
page. For example: a JP located in the last word of a
page will jump to a location in the next page. Also, a JID
or LQID located in the last word of every fourth page (i.e.
hex address 0FF, 1FF, 2FF, 3FF, 4FF, etc.) will access
data in the next group of four pages.
Power Dissipation
The lowest power drain is when the clock is stopped. As the
frequency increases so does current. Current is also lower
at lower operating voltages. Therefore, for minimum power
dissipation, the user should run at the lowest speed and
voltage that his application will allow. The user should take
care that all pins swing to full supply levels to insure that
outputs are not loaded down and that inputs are not at
some intermediate level which may draw current. Any input
with a slow rise or fall time will draw additional current. For
example, an RC oscillator on D0 will draw more current than
a square wave clock input since it is a slow rising signal.
If using an external square wave oscillator, the following
equation can be used to calculate the COP404C operating
current drain:
I
co
e
Iq
a
V
c
40
c
F
i
a
V
c
1400
c
F
i
/ 4
where:
I
co
e
chip operating current drain in microamps
I
q
e
quiescent leakage current (from curve)
F
i
e
CKI frequency in MegaHertz
V
e
chip V
CC
in volts
For example at 5 volts V
CC
and 400 kHz:
I
co
e
20
a
5
c
40
c
.4
a
5
c
1400
c
.4 / 4
I
co
e
20
a
80
a
700
e
800
m
A
at 2.4 volts V
CC
and 30 kHz:
I
co
e
6
a
2.4
c
40
c
.03
a
2.4
c
1400
c
.0
*/4
I
co
e
6
a
2.88
a
25.2
e
34.08
m
A
If an IT instruction is executed, the chip goes into the IDLE
mode until the timer overflows. In IDLE mode, the current
drain can be calculated from the following equation:
I
ci
e
I
q
a
V
c
40
c
F
i
For example, at 5 volts V
CC
and 400 kHz
I
ci
e
20
a
5
c
40
c
.4
e
100
m
A
The total average current will then be the weighted average
of the operating current and the idle current:
Ita
e
Ico
c
To
To
a
Ti
a
Ici
c
Ti
To
a
Ti
where:
I
ta
e
total average current
I
co
e
operating current
I
ci
e
idle current
T
o
e
operating time
T
i
e
idle time
I/O OPTIONS
COP404C outputs have the following configurations, illus-
trated in Figure 12.
a. Standard D A CMOS push-pull buffer with an N-channel
device to ground in conjunction with a P-channel device
to V
CC
, compatible with CMOS and LSTTL. (Used on SO,
SK, AD/DATA, SKIP, A10:8 and D outputs.)
b. Low Current D This is the same configuration as a.
above except that the sourcing current is much less.
(Used on G outputs.)
c. Standard TRI-STATE L Output D A CMOS output buffer
similar to a. which may be disabled by program control.
(Used on L outputs.)
All inputs have the following configuration:
d. Input with on chip load device to V
CC
. (Used on CKOI.)
e. HI-Z input which must be driven by the users logic. (Used
on CKI, RESET, IN, SI, DUAL, MB, SEL10 and SEL20
inputs.)
All output drivers use one or more of three common devices
numbered 1 to 3. Minimum and maximum current (I
OUT
and
V
OUT
) curves are given inFigure 13 for each of these devic-
es to allow the designer to effectively use these I/O configu-
rations.
14