Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ll-xn!cit-vax!amdahl!bnrmtv!west From: west@bnrmtv.UUCP (Andrew West) Newsgroups: net.micro.mac Subject: Arbitrary Serial Output Message-ID: <821@bnrmtv.UUCP> Date: Tue, 28-Oct-86 12:40:24 EST Article-I.D.: bnrmtv.821 Posted: Tue Oct 28 12:40:24 1986 Date-Received: Wed, 29-Oct-86 09:08:31 EST Distribution: net Organization: Bell Northern Research, Mtn. View, CA Lines: 35 I am planning to use the Macintosh serial port (i.e. modem) to send a block of data to an asynch. interface which will read the data into a small RAM. I will be using some sort of standard start/stop, parity and baud rate setup (I'll worry about the details later when I am actually programing everything). The RAM data will be used as an external routine for an 8051H microcontroller (don't ask--it wasn't my choice). I would like to set up a short file on the Mac with the program already in binary (the routines are short enough that entering a few 1's and 0's is not a big deal) and send the data to the RAM. I would also like to use an existing modem program or perhaps write a quick and dirty routine (at the highest level possible; I'm not proficient in C but do have access to MSBasic and MacPascal). The problem I am having at the moment is that all my modem programs and the poorly documented routine in the MSBasic manual are for sending ASCII characters. I need to be able to send arbitrary bytes, consisting of whatever arrangement of 1's and 0's I need (i.e. if 10101010 were a JMP, I need to download that exactly (along with the normal extra protocol overhead which the Mac should add and the receiving Asycnh chip should strip off), not the ASCII 1, ASCII 0, ASCII 1, etc. that most programs send). Can anyone offer a suggestion as to a existing program I might be able to use, a short code segment that might accomplish this, or a reference that might be helpful. My primary responsiblity for this is the hardware so I would prefer not to spend a lot of time with Inside Macintosh to figure out a bunch of toolbox routines. Thanks for any help or suggestions. Andy West ...bnrmtv!west