Shop OBEX P1 Docs P2 Docs Learn Events
Button mappings — Parallax Forums

Button mappings

I'm not all that familiar with the guts of the FPGA setup...

What are the pin / button mappings for the A9 and DE2 boards?

Comments

  • ozpropdevozpropdev Posts: 2,791
    edited 2016-01-05 04:24
    For the A9 board
    dat	orgh	0
    	org
    
    	mov	dirb,#$f
    
    loop	testb	inb,#27 wz	'pb3
    	setbnz	outb,#3
    
    	testb	inb,#26 wz	'pb2
    	setbnz	outb,#2
    
    	testb	inb,#25 wz	'pb1
    	setbnz	outb,#1
    
    	testb	inb,#24 wz	'pb0
    	setbnz	outb,#0
    
    	jmp	#loop
    
    
  • Thanks!
Sign In or Register to comment.