Shop OBEX P1 Docs P2 Docs Learn Events
Propeller Demo.spin woof woof screen — Parallax Forums

Propeller Demo.spin woof woof screen

skylightskylight Posts: 1,915
edited 2013-01-11 20:24 in General Discussion
Using the quickstart and Human Interface Board(HIB) combo with optical two button and scrollwheel/button ps2 mouse and ps2 keyboard.

I've got the Woof Woof Meow screen up but moving the mouse shows no pointer although the optical led underneath is lit and the keyboard does nothing apart from lighting up the three leds for caps &num lock etc when I do a keypress.

Firstly with the mouse.spin code:
'***************************************
'* Assembly language PS/2 mouse driver *
'***************************************
                        org
'
'
' Entry
'
entry                   mov     x,par                   'load input parameters:
                        add     x,#5*4                  '_dpin/_cpin  <----  I tried changing here the 5 and 4 to 25 and 24 also tried 24 and 25 but still error
                        rdlong  _dpin,x
                        add     x,#4
                        rdlong  _cpin,x


I tried changing the dpin/cpin 5 and 4 to the pins 24 and 25 as on the HIB but when compiling and it gets to the mouse part I get an error

'Source register/constant cannot exceed $1FF'


How do I change the pin assignment to be compatible with the HIB? I believed that the HIB and Prop Demo Board were identical pin wise apart from a small difference (microphone changed for IR on pins 8&9).

Or am I looking at the wrong piece of code?






Ok I understand now it wasn't meant to drive a mouse or keyboard it's a demonstration of tiles(vgatest2), the mouse only works with the tv demo which i'm still waiting on a cable for (at the moment only using vga)

Comments

  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-01-11 19:04
    You'll likely need to make the numbers variables in the bottom of the PASM section and then use the variable names in within the code.

    I'll take a look and see if I can make the changes.

    Edit: I hadn't seen your edit. I had your post open in my browser for a while before trying to figure out what the mouse object was doing. There are objects with some problems when used with high pin numbers since the pin masks are hard coded into the code. If the pin mask for a pin is larger than $1FF, the compiler complains.

    "ADC.spin" is one of the object that doesn't work with high pin numbers.
  • skylightskylight Posts: 1,915
    edited 2013-01-11 20:24
    Thanks Duane, I realised my mistake and after playing all night had a bit of success( see prop forum) I also realise i posted this in the wrong section:frown:
Sign In or Register to comment.