Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpl-opus!hpspdra!ric From: ric@hpspdra.HP.COM (Ric Peregrino) Newsgroups: comp.sys.amiga Subject: Re: Come on PEOPLE... Message-ID: <13570019@hpspdra.HP.COM> Date: 14 Feb 90 00:31:44 GMT References: <1990Feb12.223912.7167@ug.cs.dal.ca> Organization: HP Stanford Park - Palo Alto, CA Lines: 35 Concerning the serial port. I have an Amiga 2000 and more importantly I have the hardware manual. In the manual you'll find the information needed to interface to the serial port. Personally, I was able to write code to read from the serial port and output to the screen- string to tell if data "ok" or if "overrun" occured; number of bytes received before timeout (if no overrun); data received; I used this to get MIDI data from a sampler. It entailed: 1. setting baud rate - writing number to SERPER register (114) 2. storing interupt enables in temp storage from INTENAR 3. disabling all interupts 0x7fff to INTENA 4. loop that a. get data from SERDATR b. check receive buffer full bit RBF if not goto a. if yes check for overrun bit OVR if yes leave with error if not strip off lower 8 bits and save in memory and increment stuff c. loop times out with a counter 5. replace temp OR 0x8000 into INTENA and end Rhe program can be used with redirection into a file to get serial data into a file. I don't have the manual with me so I can't give you the specific addresses of these hardware registers. They are all in 0xdffxxx though. If you're going to be doing anything specific for your own needs, get the manual. I'd be happy to send you source for the above mentioned program which I wrote in Lattice 5.04 C. The manual also tells you about the rest of the hardware if you ever need to know. ric@hpspd