28.06.2013 Views

BBC Microcomputer Service Manual Oct 1985 Section 1 BBC Micro ...

BBC Microcomputer Service Manual Oct 1985 Section 1 BBC Micro ...

BBC Microcomputer Service Manual Oct 1985 Section 1 BBC Micro ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.5 Test programs and sample waveforms<br />

6.5.1 Test program<br />

The following program allows you to test the chip select lines of any<br />

of the devices on the computer. It sets up a machine code loop which<br />

accesses the address which you specify as hexadecimal number. Since it<br />

is a closed loop, the only way to escape is to use the break key which<br />

is programmed to re-enter the BASIC program. To escape, enter a zero<br />

address. If you are accessing a slow device, its chip select line<br />

should go low for a full microsecond, but with a fast device, it will<br />

only be low for 500 nanoseconds. In either case, the waveform should be<br />

high for 3 microseconds.<br />

10 *KEY10 OLD|M RUN|M<br />

20 CLS<br />

30 DIM' CODE 20<br />

40 P%=CODE<br />

50 INPUT "ADDRESS",M$<br />

60 M%=EVAL("&" + M$)<br />

70 IF M%=0 THEN END<br />

80 [SEI<br />

90 SEC<br />

100 .again<br />

110 LDA M%<br />

120 BCS again<br />

130 ]<br />

140 CALL CODE<br />

The following is a reproduction of a photograph showing the waveform on<br />

pin 23 of the ADC chip, IC73, when the above test program is running<br />

with address &FECO selected. Scope parameters are 1V/cm, 1us/cm.<br />

44

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!