Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!cmcl2!lanl!dlc From: dlc@lanl.ARPA (Dale Carstensen) Newsgroups: net.micro.mac Subject: Re: Arbitrary Serial Output Message-ID: <9144@lanl.ARPA> Date: Sun, 2-Nov-86 13:08:33 EST Article-I.D.: lanl.9144 Posted: Sun Nov 2 13:08:33 1986 Date-Received: Tue, 4-Nov-86 00:31:51 EST References: <821@bnrmtv.UUCP> Distribution: net Organization: Los Alamos National Laboratory Lines: 20 > 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). Versaterm and MacTep (vintage mid-1984) will both do what you want. Kermit will not. I haven't used any other terminal emulators, but I imagine about two thirds of them will work. Microsoft BASIC should send binary out the modem port (called device COM1:) if you open it with no parity and eight bits. See page 42 of the version 2.0 manual, or look up device in the index of other revisions. Use PRINT #n, CHR$(BYTE) to send a binary byte. Use INPUT$(1,#m) to read a binary byte from your 8051 executable file on the Mac. How do you get the 8051 code on the Mac? Do you have a cross-assembler for the 8051 that runs on the Mac? (Just curious, you don't have to answer, but if your cross-assembler is on a machine you access with the Mac via a terminal emulator, you were able to get some form of binary transmission to work, but it could have been XMODEM or Kermit, true enough.)