PNUT issue with INA?
rjo__
Posts: 2,114
When I do this it works fine
when I do this it works fine
when I do this it works fine
BUT not when I do this...
Gives $FFFF FFFF
Using P123 A7 with fix
I have tried every addressing mode for INA... so that isn't it. So, what is it?
setb outa, #25 setb dira,#25
when I do this it works fine
mov temp,#0 wrlut ##$FFFFF,temp
when I do this it works fine
mov inna,##$FFFFF mov temp,#0 wrlut inna,temp
BUT not when I do this...
mov inna,INA mov temp,#0 wrlut inna,temp
Gives $FFFF FFFF
Using P123 A7 with fix
I have tried every addressing mode for INA... so that isn't it. So, what is it?
Comments
Do I have to declare pins as inputs? My understanding is "no" and that INB should show the states without any fuss... as on the P1.
INA is working Ok on my P123-A7 board
All pins tested Ok as inputs (INA 0..31)
This morning, I retried everything and get the same. I have to believe that it is the board. Problem is that every other time I have believed this (except once)... it wasn't the board; it was me.
Use QVECTOR to convert your x,y values to Ro,theta.
Use QFRAC to convert angles to 32 bit values.
and use QROTATE to get back x, y values from a R0,theta pair.
Something like this: Hope this helps
Brian
QVECTOR X,ANGLE
...
SETQ Y
QROTATE X,ANGLE
If the SETQ is missing, then 0 is used for Y.