More On Serial Comms

Discussion about the ZBasic language including the System Library. If you're not sure where to post your message, do it here. However, do not make test posts here; that's the purpose of the Sandbox.
Post Reply
jburrow
Posts: 11
Joined: 03 January 2011, 15:27 PM

More On Serial Comms

Post by jburrow »

I need some help with serial comms on my ZX1280 dev board please.

This works just fine. I have verified the incoming data is correct.
call DefineCom(2, 0, 0, &H08)
call OpenQueue(LNIn, SizeOf(LNIn))
call OpenQueue(LNOut, SizeOf(LNOut))
Call OpenCom(2, 16457, LNIn, LNOut)

This does not work. The incoming data makes no sense - missing bytes and bad
values.
I'm assuming I can use Port E for serial communication.
call DefineCom(3, e.6, e.7, &H08)
call OpenQueue(LNIn, SizeOf(LNIn))
call OpenQueue(LNOut, SizeOf(LNOut))
Call OpenCom(3, 16457, LNIn, LNOut)

I'm sure I'm missing the something, but I don't know what I don't know....

Thanks, John Burrow
San Diego
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: More On Serial Comms

Post by dkinzer »

jburrow wrote:Call OpenCom(3, 16457, LNIn, LNOut)
The specified baud rate is not supported on the software UART channels (3-6). The supported rates are 300, 600, 1200, 2400, 4800, 9600 and 19,200 baud.

I see that the documentation needs to be more clear on this point.
- Don Kinzer
jburrow
Posts: 11
Joined: 03 January 2011, 15:27 PM

Post by jburrow »

Thank you Don. I appreciate your speedy responses.

John Burrow
Post Reply