
5. FUNCTIONAL INSTRUCTIONS
B–61863E/15
PMC SEQUENCE PROGRAM
190
The numeral data of this counter are all binary. This counter has the
following functions and can be used according to the application:
(a) Preset counter
Preset the count value and if the count reaches this preset value,
outputs to show that.
(b) Ring counter
This is the ring counter which is reset to the initial value when the
count signal is input after the count reaches the preset value.
(c) Up/down counter
This is the reversible counter to be used as both the up counter and
down counter.
(d) Selection of the initial value
Either 0 or 1 can be selected as the initial value.
Fig.5.11.2 and Table 5.11.2 show the expression format and the coding
format, respectively.
CN0
W1
UPDOWN
CTRC
SUB 55
RST
ACT
ffff
Counter
preset value
address
ffff
Counter
register
address
Fig. 5.11.2 CTRC expression format
Table 5.11.2 CRTC coding format
Step
Number
Instruction
Address
Number
Bit
Number
Remarks
1 RD ffff. f CN0
2 RD.STK ffff. f UPDOWN
3 RD.STK ffff. f RST
4 RD.STK ffff. f ACT
5 SUB 55 CTRC command
6 (PRM) ffff Counter preset address
7 (PRM) ffff Counter register address
8 WRT ffff. f W1
5.11
CTRC (COUNTER)
5.11.1
Functions
5.11.2
Format