Sign In
New User? Sign Up
tatung_einstein · Tatung Einstein Computer Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
You can set the sort order of messages? Just click on the link in the date column. Your preferences will be remembered, so you don't have to do it again when you return.

Messages

  Messages Help
Advanced
PC/EINEY printer port connection.   Message List  
Reply | Forward Message #281 of 328 |
Re: PC/EINEY printer port connection. Thanks Geoff

damn the computer crashed and I have to re-type.

Einey running in X5 (XTAL Basic V5)

10 OUT &33,&4F
20 A=INP(&32)
30 PRINT A
40 GOTO 20

I made a 16 way IDC lead with a PC floppy lead, a hacksaw and some
superglue. It works well.

I connected all the data lines of the user port together (looking into
the user port from the back D7, 5v, D6, 0v, D5, STB, D4, 0v, D3, 0v,
D2, RDY, D1, 0v, D0, 5v ) and stripped back the 5v, 0v and STB
(strobe) lines.

NOTE; the program streams data from the user port regardless of
whether the input has been updated or not.

The program streams 255, 255, 255, etc.
I connected all the date lines to 0v and tapped the STB to 0v.
The program streams 0, 0, 0, etc.
I connected all the data lines to 5v and tapped the STB to 0v
The program streams 255, 255, 255, etc.

I believe the RDY line goes high after the data has been read once (or
many times) but I can't test that at this time on night after this
amount of Gin.

Your previous program in BBC Basic should be fine
10 PUT &33,&4F
20 N=GET(&32)
30 PRINT N
40 GOTO 20

..but your assumption that pulling STB high would stop the stream was
incorrect. As you can test from the above example the handshaking
works as you can spend time setting the bits high and low as you
desire (try "High, High, High, High, Low, Low, Low, Low") and only
register the changes when you pulse the STB line low.

I'll look into setting the port to cause an interrupt when data is
received, but not after this amount of Gin :)

Hope this helps.

Regards
Geoff




Sun Apr 6, 2008 12:22 am

id_fugu_is_u...
Offline Offline
Send Email Send Email

Forward
Message #281 of 328 |
Expand Messages Author Sort by Date

Hi, Does anyone have programming examples of using the Einstein user ports in mode 1 (eight bit import) in their Einey Docs. From the Z80 PIO tech doc (can be...
Chris Coxall
bbcchris2000
Offline Send Email
Mar 24, 2008
10:37 am

Hi Chris, Mode 0 Either A or B as 8-bit output (active strobe after output) Mode 1 Either A or B as 8-bit input (triggering interrupt request if enabled) Mode...
Geoff Latham
id_fugu_is_u...
Offline Send Email
Mar 25, 2008
9:28 am

Hi Chris, I think I was was wildly wrong earlier (depending on how things were implemented in the Einstein). Mode 1 should handle the handshaking. I did,...
geoff
id_fugu_is_u...
Offline Send Email
Mar 25, 2008
4:18 pm

Hi Geoff, A bit map of Einey mother board can be downloaded from the web site. http://mysite.wanadoo-members.co.uk/retrocomputer/download.htm ...
Chris Coxall
bbcchris2000
Offline Send Email
Mar 25, 2008
10:25 pm

damn the computer crashed and I have to re-type. Einey running in X5 (XTAL Basic V5) 10 OUT &33,&4F 20 A=INP(&32) 30 PRINT A 40 GOTO 20 I made a 16 way IDC...
geoff
id_fugu_is_u...
Offline Send Email
Apr 6, 2008
12:22 am

Hi Chris, Further to my tests with the User Port, there's some code here http://www.alioth.net/Projects/Z80/piotest-intr.asm to use the interrupts from the PIO...
geoff
id_fugu_is_u...
Offline Send Email
Apr 6, 2008
11:01 am
Advanced

Copyright © 2009 Yahoo! UK. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help