CLR, -

Set pointed pins to 0. Logical NAND.

Syntax

clr [<mask> [count]]
- [<mask> [count]]

Parameters

<mask>
  • 1) Sequense of 0 or 1, for ex. 111000111000.
  • 2) Enum of bit-numbers at bracket, for ex. (1), (2,3,4) or (8,12,5,11), its accordingly to 100000000000, 011100000000 or 000010010011. First left bit is 1 (but not zero).

count
  • Decimal number from 2 to 100, tells how many times next command or block will be retried.

Example

sleeps 500 ; Set sleeps = 500 ms
 
CYCLE:  ; Deine Label
 
1110    ; Set pointed outputs to HIGH
-(1)    ; Clear bit N1
-(2)    ; Clear bit N2
-(3)    ; Clear bit N3
 
1110    ; Set pointed outputs to HIGH
-001    ; Clear bit N1
-01     ; Clear bit N2
-1      ; Clear bit N3
 
1110    ; Set pointed outputs to HIGH
clr(1)  ; Clear bit N1
clr(2)  ; Clear bit N2
clr(3)  ; Clear bit N3
 
1110    ; Set pointed outputs to HIGH
clr 001 ; Clear bit N1
clr 01  ; Clear bit N2
clr 1   ; Clear bit N3
 
goto CYCLE ; Infinite cycle
exclr.mlh_c.gif