Name:
high portc
Syntax:

HIGH PORTC pin {,pin,pin...}

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

Description:

Make pin on portc output high.

This command is only used on older 14M and 28X/28X1 parts. For newer M2 and X2 parts use the PORT.PIN notation directly e.g. high C.2.

The high portc command switches a portc output on (high).

Applies To:
14M, 28X, 28X1
See Also:
Related Create:
Share:
Print:

Flash an LED

Repeatedly turn an LED on portc on for 5 seconds and off for 5 seconds

Code Example:
main:	high portc 1	; switch on output portC 1
	pause 5000	; wait 5 seconds
	low portc 1	; switch off output portC 1
	pause 5000	; wait 5 seconds
	goto main	; loop back to start
Copy Code Submit an Example

Submit Your Own Code!

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