Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site wateng.UUCP Path: utzoo!watmath!watdaisy!wateng!padpowell From: padpowell@wateng.UUCP (PAD Powell [Admin]) Newsgroups: net.unix-wizards Subject: Re: DR11-W to Model-1/20 on 4.1 BSD Message-ID: <595@wateng.UUCP> Date: Fri, 9-Dec-83 08:50:39 EST Article-I.D.: wateng.595 Posted: Fri Dec 9 08:50:39 1983 Date-Received: Sat, 10-Dec-83 06:56:23 EST References: <428@osu-dbs.UUCP> Organization: U of Waterloo, Ontario Lines: 24 The first thing you should do is take the far end of the device off, and put a loop-back cable on. This can be done by using a single ttl gate, 74ls00, with the data/out strobe being buffered and drive the acknowledge. Ask your local hardware type to whip this up, should take about 3 minutes, if you are crude, and vulgar. Now, tie a monostable onto the fool thing, to generate a pulse (drive an LED) each time you get a data transfer. If you put a counter on the end of it, you can also get a count of the number of pulses. Now, you are in shape to debug your driver. Work on DMA out first, then work on DMA in. If you are clever, your hardware guy will hook up a couple of counters to the input signals. Now you can do most of the debugging. Warning: Most of the times you hang is cause you are sending the wrong number of bytes to the destination. Read the documentation on the value to be loaded into the Byte/Word Count register carefully. MAKE DAMN SURE YOU HAVE NOT GOT SIGNED/UNSIGNED arithmetic problems. Finally, are you sure that you loaded the register? Check the compilation assembly for the instructions, and make sure you are loading with the right register. Patrick ("I hates DMA Devices forever") Powell