Name:
srset
Syntax:

SRSET

Description:

Set the hardware SR latch.

The srset commands along with srreset can set or reset the SR latch via the PICAXE program. Note that the SR latch can also be configured to be set or reset by hardware peripherals See the srlatch command for more details.

Applies To:
08M2, 14M2, 18M2, 20M2, 20X2
See Also:
Related Create:
Share:
Print:

Setting and resetting the latch output

This program configures the SR latch for use and then repeatedly sets and resets the latch.

Code Example:
init:	low B.1
	high C.4
	srlatch %10001100, %00000000

main:	srset				; set the latch
	pause 5000
	srreset				; reset the latch
	pause 5000
	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.

Comments

  • Login to leave a comment.