R32V2020 I/O Latch

From Land Boards Wiki
Revision as of 12:55, 10 April 2022 by Blwikiadmin (talk | contribs) (Created page with "* This is an 8-bit latch * The 8-bits go to I/O pins on the card === Sample Code === <pre> ; ; writeDIGIO ; Write the DIGIO output lines ; value to write is passed in r8 ; w...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • This is an 8-bit latch
  • The 8-bits go to I/O pins on the card

Sample Code

;
; writeDIGIO
; Write the DIGIO output lines
; value to write is passed in r8
;

writeDIGIO:
	push	PAR
	lix	PAR,0x5000	; 8-bit Digital Output port
	spl	r8			; Output bit
	pull	PAR
	pull	PC