After 3 weeks of waiting my ARC-32 board arrived last week. Everything is fine except there are some things to highlight:
- transferring data to the board is quite long, up to 3-4 minutes, which is quite long comparing with other MCU even using serial connection. Is this normal?
- I managed to write some code to connect to PS2 controller, control a 3 servo robotic arm, etc. However, trying to read an analog value is a no go. I tried few different ways like using ADIN:
Code:
Pot var word
Main
adin P8, pot
serout s_out, i9600, [0, “Analog Value = “, dec pot, 13]
Pause 50
Goto Main
or
Code:
irDist var byte
Main
irDist = HSERVOSTATE P8
serout s_out, i19200, [0, "Analog Value = ", dec irDist, 13]
Pause 50
Goto Main
But always the result is 0. I am using a Sharp IR sensor (2Y0A21) and I am able to see on the scope the VD changing direct proportional with the distance, but I can not read it with ARC32. Any idea what I am doing wrong?
- When I am trying to run the SSC-32 emulator code, it get stuck at:
Code:
...
index var word
eekey var word
readdm REGKEY,[eekey.byte1,eekey.byte0]
if(eekey<>0xA55A)then
gosub ResetRegisters
endif
...
Any suggestion is really appreciated.
Btw, this is my first experience with Atom MCU and BasicMicro environment.