Previous Thread
Next Thread
Print Thread
Page 2 of 8 1 2 3 4 5 6 7 8
Joined: Feb 2008
Posts: 173
Likes: 13
G
Senior Member
Offline
Senior Member
G
Joined: Feb 2008
Posts: 173
Likes: 13
Excellent! Yeah that's the self test at power-on, always does that. The boxes are supposed to be the 4 colors of the built-in pens, in order, blue, green, red, black.
Apparently this same mechanism was also used in the Sharp MZ-731 which has a built-in 4-pen plotter but that computer doesn't seem to be in MAME (and roms don't seem to be available). It would probably fit into sharp/mz700.cpp if roms can be found.
Edit: Found out the plotter was sold separately as Sharp MZ-1P01 (https://original.sharpmz.org/mz-700/useplot.htm and https://original.sharpmz.org/mz-700/plotterctrl.htm) and plugs into the MZ-700 motherboard to make it into a MZ-731.
That plotter rom is available on that site in the MZ-700 section but it uses a 8050 microcontroller so it appears only the plotter mechanism is the same not the controller board, although the schematic looks very similar to the Commodore one (https://original.sharpmz.org/mz-700/mz-1p01.htm). It could be added to the MZ-700 driver if it can be emulated since the motherboard can accept it as a standard peripheral add-on then basically it 'just works' hehe!
There's more technical info about the plotter in the service manual (https://original.sharpmz.org/mz-700/download/sm700.pdf) which may relate also to the Commodore version.

Last edited by Guru; 07/28/24 03:22 PM. Reason: added more info

Dumping ROMs for MAME since 1999!
https://gurudumps.otenko.com
1 member likes this: robcfg
Joined: Feb 2014
Posts: 1,124
Likes: 193
G
Very Senior Member
OP Offline
Very Senior Member
G
Joined: Feb 2014
Posts: 1,124
Likes: 193
[Linked Image from i.imgur.com]

I was able to get the colors right, but trying to connect with the 1520 just gives a ?DEVICE NOT PRESENT ERROR.

Joined: Feb 2014
Posts: 1,124
Likes: 193
G
Very Senior Member
OP Offline
Very Senior Member
G
Joined: Feb 2014
Posts: 1,124
Likes: 193
I decided to read up again on the commodore iec bus and try to grok what was happening. I looked at understanding the IEC bus awhile back and couldn't make head nor tails of it but it actually made some sense to me.

The 6500/1 looked like it wasn't reading from the port A properly.

After modifying a single line in 6500_1.cpp:

Code
u8 m6500_1_device::read_port(offs_t offset)
{
	if (!machine().side_effects_disabled() && !m_port_in_cb[offset].isunset())
	{
		u8 const prev(m_port_in[offset]);
		m_port_in[offset] = m_port_in_cb[offset]();
		if (!offset)
		{
			u8 const diff((prev ^ m_port_in[0]) & m_port_buf[0]);
			if (BIT(diff, 0) && BIT(m_port_in[0], 0))
				m_cr |= CR_A0ED;
			if (BIT(diff, 1) && !BIT(m_port_in[0], 1))
				m_cr |= CR_A1ED;
			update_irq();
		}
	}

//	return m_port_in[offset] & m_port_buf[offset];
	return m_port_in[offset];  // not seeing all of the data, try this
}


and boom it starts working!


Reading the code, it adds #$24 to the 3 bit IEC number from the jumpers, so it ends up getting device 11 since I'm returning 7 from the jumpers.
I've got the steppers going in the wrong direction, but it's doing something!

OPEN 4,11,0
PRINT #4,"HELLO"
PRINT #4,"IS THAT CYRILLIC?"


[Linked Image from i.imgur.com]


reversed the pf stepper:

[Linked Image from i.imgur.com]

2 members like this: Duke, robcfg
Joined: Feb 2014
Posts: 1,124
Likes: 193
G
Very Senior Member
OP Offline
Very Senior Member
G
Joined: Feb 2014
Posts: 1,124
Likes: 193
Fixed the IEC address to 6 (adjustable from 4 to 11 now by configuration)
and tried out the CBM LOGO.PRG program (from Paul Rickards)

[Linked Image from i.imgur.com]


[Linked Image from i.imgur.com]





If I run this:

OPEN 4,6,0
FOR I = 32 TO 127: PRINT#4,CHR$(I); : NEXT

it will give me a DEVICE NOT PRESENT error, but if I put a small delay inside, it will work.



OPEN 4,6,0
FOR I = 32 TO 127: PRINT#4,CHR$(I); : FOR J=1 TO 3000 : NEXT : NEXT

Seems to work better to build a string like:

A$=""
FOR I = 32 TO 127: A$=A$+CHR$(I): NEXT
PRINT#4,A$

5 members like this: Tim Stark, Guru, Duke, R. Belmont, robcfg
Joined: Feb 2008
Posts: 173
Likes: 13
G
Senior Member
Offline
Senior Member
G
Joined: Feb 2008
Posts: 173
Likes: 13
Excellent!! That demo program is a bit crap really, it's doing it as a bitmap. In reality the pen can draw proper arcs and lines very quickly. That whole demo shouldn't take more than 60 seconds if it was done using proper geometric shapes instead of little jagged lines.
Would be interesting to see it in action on a C128 using BASIC 7 or a Plus/4 with BASIC 3.5 as the newer basics have many graphic drawing commands.
But yeah great to see it working and I'm looking forward to trying it out in MAME.


Dumping ROMs for MAME since 1999!
https://gurudumps.otenko.com
1 member likes this: robcfg
Joined: Feb 2014
Posts: 1,124
Likes: 193
G
Very Senior Member
OP Offline
Very Senior Member
G
Joined: Feb 2014
Posts: 1,124
Likes: 193
Found some manuals for the Tandy CGP-115 (owner's and service manuals) which has both a serial and a parallel interface.

According to the page at http://tandy.wiki/CGP-115 there's a long list of printers that use the ALPS mechanism.

The schematic for the CGP-115 says that it uses an HD6805V1A08P with internal rom.

Joined: Feb 2008
Posts: 173
Likes: 13
G
Senior Member
Offline
Senior Member
G
Joined: Feb 2008
Posts: 173
Likes: 13
I read somewhere there's a similar plotter with the same mech for one of the early Atari computers too.
The Atari 1020 service manual with schematic is here....
https://www.atarimania.com/documents/atari_1020_Field_Service_manual.pdf
Looks like it has a 6805 and a 68705P3. Of course no dump because most people (especially the Atari collector crowd) believe their gear will last forever so there is no attempt to archive the ROMs etc.


Dumping ROMs for MAME since 1999!
https://gurudumps.otenko.com
1 member likes this: Tim Stark
Joined: Feb 2014
Posts: 1,124
Likes: 193
G
Very Senior Member
OP Offline
Very Senior Member
G
Joined: Feb 2014
Posts: 1,124
Likes: 193
Found a couple of schematics of the Atari 1029 dot matrix printer along with a rom and was able to get it to do the self test. It's very similar to the Amstrad DMP1 (seikosha uni-hammer) but also has significant differences (no 8243 i/o expander and no centronics interface). Hopefully I can get the SIO to work.


[Linked Image from i.imgur.com]


There was an issue with the a800 antic not liking multiple screens,

Ignoring MAME exception: No screen specified for device ':antic', but multiple screens found
Fatal error: No screen specified for device ':antic', but multiple screens found

Adding the line m_antic->set_screen seemed to fix it.

ATARI_ANTIC(config, m_antic, 0);
m_antic->set_gtia_tag(m_gtia);
m_antic->set_screen("screen");



=========

Doing research on other printers, I was interested in the Commodore MCS-801 (not to be confused with the MPS-801). This was a color printer that used a "4-hammer method."

Interestingly, it could do 4 colors in a single pass of the printhead. How is that possible? I came across a patent that's quite interesting.

https://patents.google.com/patent/US4553864

So it's just like the uni-hammer printer, only this time it has 4 hammers that will each print a specific color in a specific column as the printhead sweeps from left to right.

It's quite clever.

1 member likes this: robcfg
Joined: Feb 2008
Posts: 173
Likes: 13
G
Senior Member
Offline
Senior Member
G
Joined: Feb 2008
Posts: 173
Likes: 13
If you like simultaneous color have a look at the MCS-810/820
These are Commodore re-branded Okidata Okimate 20 which is a thermal printer. It can use thermal paper (printing in black only) or it can use a ribbon cartridge that has a 1-time-use plastic tape ribbon with some sort of wax 'ink' that gets heated and fused to plain paper.
I had an Okimate 20 around 1986 but the head went bad after a few years so I tossed it.

Firmware here...
https://www.zimmers.net/anonftp/pub/cbm/firmware/printers/mcs810-820/index.html

User manual here...
https://www.zimmers.net/anonftp/pub/cbm/manuals/printers/MCS-820_Printer_Handbook_(aka_Okimate_20).pdf

There's a bunch of board pics here....
https://www.the-liberator.net/site-...nter/commodore-mcs-810-printer-rev-5.htm
The most interesting pic is the Commodore IEC interface board for MCS-810....
https://www.the-liberator.net/site-...-MCS-810-Printer-020-Interface-Board.JPG

Looks like a 16kB EPROM, 8kB x8-bit RAM and a 8051 but maybe the 8051 is in external ROM mode and can be coaxed to do something just with the EPROM code.

It was hellishly slow so if you get it working insert some time delays and a bang noise every time the printer head moved forwards onto the paper then backwards off the paper to make it more real-life ;-P


Dumping ROMs for MAME since 1999!
https://gurudumps.otenko.com
1 member likes this: robcfg
Joined: Feb 2014
Posts: 1,124
Likes: 193
G
Very Senior Member
OP Offline
Very Senior Member
G
Joined: Feb 2014
Posts: 1,124
Likes: 193
Thought I'd try the MPS-801 and was able to get it to go into the self test. It wasn't working at all and that baffled me for a couple of days, then I had the idea to negate the dot sensor input and it started working!

[Linked Image from i.imgur.com]



There's also a Sams computerfacts on the okimate 20.

2 members like this: Waremonger, robcfg
Page 2 of 8 1 2 3 4 5 6 7 8

Link Copied to Clipboard
Who's Online Now
2 members (Reznor007, R. Belmont), 217 guests, and 1 robot.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,328
Posts122,128
Members5,074
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com