View Single Post
Old 22 November 2015, 21:15   #1
thec
 
Posts: n/a
Serial programming, hardware handshaking

Hey. Beginner Amiga (and Motorola) coder here.

I have some serial communication going on in assembler on the Amiga, and some send/receive on my PC. It's running in 9600 baud on a 040 accelerated Amiga 1200 with minor problems, but it's without hardware handshaking, checking the register SERDATR for incoming data and resetting INTREQ bit 11. When sending, writing to SERDAT with stop bit and waiting for bit 13 of SERDATR to clear (though I should probably switch those two operations )

The PC side was quite straight forward, but when I turn on hardware handshaking the transfer just hangs. Questions:

* Is the Amiga capable of this?
* Do I need to do something else than what is described in the hardware manual from page 250 and onward (what I described above).
* Any idea why it halts?

The Amiga code:
http://pastebin.com/1BYjr01P

The PC code:
http://pastebin.com/yR7isyxv

Would be cool with faster baud rates but also to run on slower Amigas...

Why? Why not? :-)

PS. If somebody has some serial programming reference code I would love to see it! Ds.

Last edited by thec; 23 November 2015 at 08:02.
 
 
Page generated in 0.04322 seconds with 11 queries