Name:
reverse
Syntax:

REVERSE pin,pin,pin...

Pin - is a variable/constant which specifies the i/o pin to use.

Description:

Make pin an output if now input and vice versa. This command is only required on microcontrollers with programmable input/ output pins. This command can be used to change a pin that has been configured as an input to an output. All pins are configured as inputs on first power-up (unless the pin is a fixed output). Fixed pins are not affected by this command. These pins are:

08, 08M, 08M2 0 = fixed output 3 = fixed input
14M2 B.0 = fixed output C.3 = fixed input
18M2 C.3 = fixed output C.4, C.5 = fixed input
20M2, 20X2 A.0 = fixed output C.6 = fixed input
28X2, 40X2 A.4 = fixed output  
Applies To:
08, 08M, 08M2, 14M2, 18M2, 20M2, 20X2, 28X2, 40X2
See Also:
Related Create:
Share:
Print:

Make a pin an input or output

Switch a pin between input and output

Code Example:
main:	input B.1	; make pin input
	reverse B.1	; make pin output
	reverse B.1	; make pin input
	output B.1	; make pin output
Copy Code Submit an Example

Submit Your Own Code!

You must be logged in to submit code examples. Login now.