ARMite I/O not working after upgrade
Posted: Wed Jul 23, 2014 9:27 pm
After upgrading to BasicTools with floating point (Kernel[7.53], ARMbasic[9.33a]), I can no longer control the I/O pins on my ARMite boards. Programs are flashed without errors, but simple toggle output routines can not change the state of the pins - they stay low, except for IO(15) which stays high.
DIM i AS INTEGER
MAIN:
i=0
FOR i=0 TO 15
output(i)
PRINT "Set pin ";i;" as output"
NEXT i
While 1
For i=0 to 15
out(i)=1
next i
wait(500)
for i=0 to 15
out(i)=0
Next i
wait(500)
loop
A simple read SPDT switch bank routine always reads 00100010 regardless of switch position
DIM i AS INTEGER
DIM x AS INTEGER
MAIN:
FOR i=0 TO 7
INPUT(i)
NEXT i
WHILE 1
x=0
FOR i=7 DOWNTO 0
x <<= 1
x += (IN(i) AND 1)
PRINT IN(i) AND 1;
NEXT i
PRINT " ";x
WAIT(1000)
LOOP
Do I need to work with the LPC2103 registers directly or I am missing something obvious like an Include file?
DIM i AS INTEGER
MAIN:
i=0
FOR i=0 TO 15
output(i)
PRINT "Set pin ";i;" as output"
NEXT i
While 1
For i=0 to 15
out(i)=1
next i
wait(500)
for i=0 to 15
out(i)=0
Next i
wait(500)
loop
A simple read SPDT switch bank routine always reads 00100010 regardless of switch position
DIM i AS INTEGER
DIM x AS INTEGER
MAIN:
FOR i=0 TO 7
INPUT(i)
NEXT i
WHILE 1
x=0
FOR i=7 DOWNTO 0
x <<= 1
x += (IN(i) AND 1)
PRINT IN(i) AND 1;
NEXT i
PRINT " ";x
WAIT(1000)
LOOP
Do I need to work with the LPC2103 registers directly or I am missing something obvious like an Include file?