I am currently building my university project
which is suppose to read the information gained from a 1490 compass and
send the information (which is a digital output) back to a picaxe 28x1 then ,by using LEDs, always show south.
I want to connect the compass to the input pins on the chip but i don't seem to be getting the right output from the chip.
At the moment I have written the progam ,as shown below.Its supposed to read whether pin7 is high or low and depending on that output six should be high.
The compass has 4 digital outputs one for each direction but at the moment I am only testing one direction.
-----------------------------------------
dirsc =%00000000 'should declare all port c as inputs
main:
if pin7=0 then label_11 ' reads the output frm the compass
low 6
label_11: high 6
goto main
-----------------------------------------------
Do I have to define port C (actual pins 15 to 18) as inputs???
No matter what I do output 6 is ALWAYS high.
Many Thanks ...
which is suppose to read the information gained from a 1490 compass and
send the information (which is a digital output) back to a picaxe 28x1 then ,by using LEDs, always show south.
I want to connect the compass to the input pins on the chip but i don't seem to be getting the right output from the chip.
At the moment I have written the progam ,as shown below.Its supposed to read whether pin7 is high or low and depending on that output six should be high.
The compass has 4 digital outputs one for each direction but at the moment I am only testing one direction.
-----------------------------------------
dirsc =%00000000 'should declare all port c as inputs
main:
if pin7=0 then label_11 ' reads the output frm the compass
low 6
label_11: high 6
goto main
-----------------------------------------------
Do I have to define port C (actual pins 15 to 18) as inputs???
No matter what I do output 6 is ALWAYS high.
Many Thanks ...