MPC2000 Reference Manual [JAPANESE] [ENGLISH]
yCommandz   yIOz
yUSEz
FLIP_FLOP

FLIP_FLOP -1 IN(24)
FLIP_FLOP -1 IN(24) &H0F
yFORMATz yFUNCTIONz
FLIP_FLOP o_port IN(port) [pat]

RS-FLIP_FLOP
yEXPLANATIONz
This command gives a outport consisting 8 bits the function RS-FLIP_FLOP.
the function is like o_"port |= IN(n) xor pat"
When the 3rd argument is ignored, the value of the pat is 0.
It means that a bit of the input bank is activated then the out bit in the same position will be set until it will be turned off by OFF command.
The time required for setting a bit is 1 msec.
When the input is a negative logic, you should set the bit of the value of pat.




10 CLR_OUTP 15
20 FLIP_FLOP -1 IN(24)
30 DO
40 PRX IN(24) IN(-1)
50 TIME 500
60 LOOP
#RUN

00000000 00000000 © SW(194)=0,SW(193)=0,SW(192)=0
00000001 00000001 © SW(194)=0,SW(193)=0,SW(192)=1
00000000 00000001
00000002 00000003 © SW(194)=0,SW(193)=1,SW(192)=0
00000000 00000003
00000004 00000007 © SW(194)=1,SW(193)=0,SW(192)=0
00000000 00000007
[LASTMODIFY]2014-08-25 15:55:03 [CREATEDATE]2009-12-15 17:08:54
MPC2000 Reference Manual -R5.11-   (C)2007 ACCEL Corp. all right reserved.