Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: holm@unicorn.tsht.lan (Holm Tiffe)
Subject: Re: Problems w. PDP11/23
Date: Tue, 25 Jan 2011 21:17:53 +0000 (UTC)	[thread overview]
Message-ID: <ihnem0$8d5$1@news.freibergnet.de> (raw)
In-Reply-To: a50bedc3-a920-42a7-8548-26e61c4df70f@y2g2000prf.googlegroups.com

In article <a50bedc3-a920-42a7-8548-26e61c4df70f@y2g2000prf.googlegroups.com>,
	jjh <jjhudak@gmail.com> writes:
> On Jan 25, 2:59�am, h...@freibergnet.de (Holm Tiffe) wrote:
>> Hi,
>> I've got some PDP11 Modules �from them I want to build a little
>> Computer. I've got an H9278-A Backplane, an M8186 CPU, an M8047
>> Multifunction module, a Dilog DQ614 controller, An M8639 RQDX1,
>> a M8043 an last but not least a 11/53 front paneel and a DEC PSU.
>>
>> I've plugged this thogether and I get an ODT Promt out of the console.
>>
>> So far so good.
>>
>> The Problem is, that the little test programms that I've typed in with
>> the ODT are all stopping unregularly with bus error traps.
>>
>> As Example:
>>
>> 1 000000 ; > ASCII prints all the ASCII characters on the console
>> 2 000000 ; Uses polling to check UART is free
>> 3 000000 ;
>> 4
>> 00000 ORG O1000
>> 5 001000 012706 MOV #O1000,R6 ; init stack
>> 5 001002 001000
>> 6 001004 012702 MOV #96,R2 ; set limit
>> - highest possible character
>> 6 001006 000140
>> 7 001010 012701 CRLF: MOV #13,R1 ; do <CR>
>> 7 001012 000015
>> 8 001014 004737 JSR R7,@#SND
>> 8 001016 001050
>> 9 001020 012701 MOV #10,R1 ; do <LF>
>> 9 001022 000012
>> 10 001024 004737 JSR R7,@#SND
>> 10 001026 001050
>> 11 001030 012701 MOV #&20,R1 ; space character
>> 11 001032 000040
>> 12 001034 004737 LOOP: JSR R7,@#SND
>> 12 001036 001050
>> 13 001040 005201 INC R1
>> 14 001042 020102 CMP R1,R2
>> 15 001044 001373 BNE LOOP
>> 16 001046 000760 BR CRLF
>> 17 001050 033727 SND: BIT @#O177564,#200 ; test CSR - bit7=ready
>> 17 001052 177564
>> 17 001054 000310
>> 18 001056 001774 BEQ SND
>> 19 001060 010137 MOV R1,@#O177566 ; send character
>> 19 001062 177566
>> 20 001064 000207 RTS R7
>>
>> this program stops every time I've run it on other locations:
>>
>> @1000g
>> !"#$%&'
>> 000004
>> @1000g
>> !"#$%&'()*+,-
>> 000004
>> @1000g
>>
>> 000004
>> @1000g
>> !"#
>> 000004
>> @1000g
>> !"#$%&'()*+,-./0
>> 000004
>> @1000g
>> !"#$%&'
>> 000004
>> @1000g
>> !"#$%&'()*+,-
>> 000004
>>
>> Same with an Memory sizing program from the net.
>>
>> I have no clue where to look for the error, is this the MXV-11CA or
>> is it the KDF11 that makes this happen? That are currently the only
>> 2 boards I've mounted. The MVX11 has 32Kbytes aof 4116 Memory.
>>
>> Who can I ask for help? I'm a electronican and want to fix this.
>> No Proplems with soldering and measuring, but I don't know much of the
>> PDP11 architecture..
>>
>> Kind Regards,
>>
>> Holm
> lets see, lots of places to start. First of all, lets make sure of the
> identification and setup of the two boards you will need for a minimum
> system:
> M8186 CPU - KDF11-AA - How is it configured with the jumpers?  I would
> suggest PowerUp Mode 1, which will immediately bring up ODT.  (W5-6),
> W7 is OUT to allow entering of console ODT on halt, W1-master clock is
> IN, W2 - factory installed-dont remove, W4-Event enable line is IN
> (disabling bus event- may want to enable it later).
> M8047-?? MXV11  Check configuration the -AA has 8K RAM, the CA has 32K
> RAM.  I would set the board at factory defaults.
> This ref may help you: http://www.fpns.net/willy/pdp11/BOARDS.HTM
> Also, if you have not already done it, go to www.bitsavers.org and
> look under digital directory (or maybe it is DEC, don't recall)
> for .pdf versions of the board manuals, they are invaluable.
> Once you have verified the jumper settings on both boards, I'd try
> very simple operations:
> 1) Check the registers: store values in R1, R2, add them, verify the
> the results by single stepping in ODT.  Do similar operations with R3,
> R4, R5.
> 2) Try similar operations on memory, beginning at 1000.  Load A5 hex
> into 1000 through 1020 and examine all the locations, then load 5A hex
> and examine all locations.
> If these operations turn out correct, the the CPU operation by itself
> and the CPU+memory combination seem to work (at least over our simple
> test set).
> 3) write a simple program, beginning at 1000, to increment a memory
> location, perhaps 10 (decimal) times, run it, examine the memory
> location to see if it is correct.
> 4) write a simple program to load a  memory location with 10 decimal,
> decrement it, BEQ to zero to another location (perhaps 1020) which
> contains a halt.
> If all this works OK, then you can try talking to the serial port on
> the MXV11.  You program above seems correct. I'd double check the base
> address setting of the MXV11 and make sure the CSR and data buffer
> registers in your program are correct for this board.  I believe they
> are but I haven't done this in a looong time and memory is a little
> rusty.
> Good luck.


I'm replying here to all that helped. Many Thanks Guys!

Bridging W4  on the KDF11-AA (disabling the event line) has done
the trick.
I've found out before with the trap catcher program:
(http://www.psych.usyd.edu.au/pdp-11/hints.html)

[This slightly more complicated version will identity the trap location,
[with the processor halting with the trap location + 6 in the PC register. 
[
[	Location	Contents        Opcode          Comment
[
[	001000		012706		mov #770,sp	set the stack pointer
[	001002		000770
[	001004		005000		clr r0		memory pointer
[	001006		012701		mov #2,r1	trap value
[	001010		000002
[	001012		010120	loop:	mov r1,(r0)+	set trap vector value
[	001014		005020		clr (r0)+	set halt instruction
								 in trap
[	001016		062701		add #4,r1	update r1 for next trap
[	001020		000004
[	001022		020600		cmp sp,r0	load up to stack pointer
[	001024		001372		bne loop
[	001026		000000		halt
[
[After loading memory with the trap catcher, deposit 777 into location
[	 1000 as start (at location 1000). The processor should loop at 1000. 
[

..taht the machine traps to 104 consistently which is after substracting
6 the address 76 octal.
I've found no documentation for a trap to 76 somewhere on the net.
Also not in the KDF11-AA User Manual.
Whats this?

I have a Front Panel from an 11/53 plugged into the H9278-A Backplane,
PSU is an H7864A. There are 2 dip switches and at least two jumpers on the
PCB from the Front Paneel, Does anyone know what the do?
There are six pushbuttons on the paneel, 2 for write protecting drives
and 2 for set them ready, two others are for halt and for restart,
an DC OK LED and one for RUN.

I've checket the line BR1 with a scope, there is a constant Low,
but it seems not to be connected on the KDF11-AA PCB.
Where are that events coming from?

Kind Regards,

Holm

LED


  reply	other threads:[~2011-01-25 21:17 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-25  7:59 Problems w. PDP11/23 Holm Tiffe
2011-01-25 15:41 ` jjh
2011-01-25 21:17   ` Holm Tiffe [this message]
2011-01-25 21:42     ` Holm Tiffe
2011-01-25 22:03       ` glen herrmannsfeldt
2011-01-25 23:27         ` Bob Eager
2011-01-26  9:10     ` Johnny Billquist
2011-01-25 16:10 ` Roger Ivie
2011-01-25 17:40 ` chrisj.doran
2011-01-28 23:24 ` Holm Tiffe
2011-01-29  0:33   ` glen herrmannsfeldt
2011-01-29  8:00     ` Holm Tiffe
2011-01-29 11:56       ` glen herrmannsfeldt
2011-01-29 12:56         ` Holm Tiffe
2011-01-29 15:00           ` Holm Tiffe
2011-01-30  3:39           ` glen herrmannsfeldt
2011-01-30 16:21             ` Bill Gunshannon
2011-01-31  0:20               ` glen herrmannsfeldt
2011-01-29 14:35       ` chrisj.doran
2011-01-29 16:28         ` Holm Tiffe
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox