R32V2020 LED Ring

From Land Boards Wiki
Jump to navigation Jump to search
  • A4-CE6 and A4-CE10 have 12 LEDs in a ring configuration

Sample Code

;
; putValueToRingLEDs
; passed r8 - value to send to the ring LEDs
;

putValueToRingLEDs:
	push	PAR
	push	r8
	lix		PAR,0x4800		; Ring LED address
	spl		r8				; Write out LED bits
	pull	r8
	pull	PAR
	pull	PC