Hello,
I try to bring my car to run correctly.
First of all, i am not able to read out the version from the board with the LynxTerm. Also i am not able to connect to the board from the PowerPod program.
But i can write data to the SSC-32 from the LynxTerm (also from other terminals)
My first problem was that i cant move all servers to 1500 once at all.
I changed the power supplies and now it works fine. But i can still not read the version and use PowerPod. But this is ok for me!
Now i send a simple command from an Atmega 128 to the board.
LED is blinking, but nothing moves.
I connect my PC to the Atmega 128 to see the output. Everything is fine (also the cr/13)
Here is my very simple code for testing
[code]'Main config
$regfile = “m128def.dat”
$framesize = 32
$swstack = 32
$hwstack = 32
$crystal = 16000000
$baud = 9600 'EasyRadio
$baud1 = 9600 'Max232
'Com config
config com2 = 9600 , synchrone = 0 , parity = none , stopbits = 1 , databits = 8 , clockpol = 0
open “com2:” for binary as #2
’ ---------------------------------------------------
sound Portg.2 , 400 , 250
waitms 50
sound Portg.2 , 400 , 250
'Core loop
do
print #2 , "#0 P1600 " ; Chr(13);
wait 1
loop
return
end[/code]
I can use
print #2 , "#0 P1600 " ; Chr(13);
or
print #2 , "#0 P1600 "
This is the same. Bascom sends a CR (13) at end of print if i dont use a semicolon. I tried a lot of versions (this includes the space behind P1600). Nothing changed.
Do you have some ideas?
update
Port config is correct, i use 9600.
update
Maybe my Max 232 is trash or the used output is damaged. An other output with no Max 232 works finde