Apple ll mouse card PAL chip logic diagram

10 posts / 0 new
Last post
Online
Last seen: 32 min 37 sec ago
Joined: Mar 12 2023 - 16:49
Posts: 22
Apple ll mouse card PAL chip logic diagram

I am looking to try and make a USB wireless mouse card to act like the standard Apple ll mouse card.

I do not have a mouse card but I do have the schematics and most of the rom and firmware information, but I am unable to find anything about the chip U2A excepth that it is a PAL type I6R4. 

Does anyone have any idea as to what logic  states the chip is providing  in the form of  a schematic or diagram.

If anyone has done this already can you point me to their project.

 

regards Crusty

 

 

CVT
CVT's picture
Offline
Last seen: 1 hour 7 min ago
Joined: Aug 9 2022 - 00:48
Posts: 1141
An interface for a serial PC
Online
Last seen: 32 min 37 sec ago
Joined: Mar 12 2023 - 16:49
Posts: 22
Apple ll mouse card PAL chip logic diagram
CVT wrote:

An interface for a serial PC mouse: https://maceffects.com/products/maceffects-bitmouse-serial-mouse-card-for-the-apple-ii

I had seen this but I had not looked in detail in the picture.

I see that they are using the same PAL chip and I do have the code to load to the PAL chip.

So the next step is to see who has stock of I6R4 chip. and find some equipment to burn the fuses.

 

Regards Crusty

Offline
Last seen: 19 hours 51 min ago
Joined: Apr 1 2020 - 16:46
Posts: 982
Recommendation: use GALs instead of PALs

In post #3, Crusty wrote:

 

"So the next step is to see who has stock of 16R4 chip. and find some equipment to burn the fuses."

 

Uncle Bernie comments:

 

good luck finding a "virgin" PAL16R4 (or any other fuse link PAL for other projects). Beware that Chinese sellers on Alibaba who peddle these long obsolete parts often pull them out of electronics scrap, and so they are already programmed and useless.

 

I would go for GAL16V8 which you still can buy for $1.95 upwards from various vendors catering hobbyists, and the programmers for those are reasonabley cheap when you buy a used one (such as a GALEP-4), but make sure you get the software with it. GALs are very universal PLDs and based on EEPROM technology they can be erased and reprogrammed many times. So unlike fuse link PALs, you could use pulls / salvaged ones.

 

For a programmer able to program fuse link PROMs and which still works and is in calibration you are looking at $1000 and upwards. Oh, and the software probably only runs on DOS. And might require a "dongle" on a parallel printer port which is extinct on modern computers. But if you had one, you could buy a fuse link PAL16R4 from Anchor Electronics in Santa Clara for  $1.75 ea., according to their Y2022 price list.

 

- Uncle Bernie

Online
Last seen: 32 min 37 sec ago
Joined: Mar 12 2023 - 16:49
Posts: 22
UncleBernie wrote:In post #3,
UncleBernie wrote:

In post #3, Crusty wrote:

 

"So the next step is to see who has stock of 16R4 chip. and find some equipment to burn the fuses."

 

Uncle Bernie comments:

 

good luck finding a "virgin" PAL16R4 (or any other fuse link PAL for other projects). Beware that Chinese sellers on Alibaba who peddle these long obsolete parts often pull them

Thanks for the heads up on this

I am fairly OK with programming PSoC 4 & 5 chips so I may do most of my analysis of what the logic is doing in the PAL with a PSoC 5 before going to a GAL

 

Offline
Last seen: 5 months 2 weeks ago
Joined: Jul 5 2018 - 09:44
Posts: 2587
I agree the Uncle Bernie on

I agree the Uncle Bernie on the GAL16V8, both the Atmel and Lattice versions are readily available and easily programmed using an inexpensive programmer like the Minipro TL866.  I've programmed quite a few of those.  They are often used as a substitute for the older PAL16R4 chips in designs because they are so similar. 

 

I also completely agree about any program-once chip from Chinese suppliers on places like Aliexpress...  The likelihood of getting one that has already been programmed and therefore useless is nearly 100%.  You might be able to find some new-old-stock PAL chips from specialty vendors like Uncle Bernie mentions.

 

Here's the pinouts for comparison...

 

 

 

 

In most designs the GAL chips are almost a drop in replacement.

 

 

 

 

 

 

 

Online
Last seen: 32 min 37 sec ago
Joined: Mar 12 2023 - 16:49
Posts: 22
softwarejanitor wrote:I agree
softwarejanitor wrote:

I agree the Uncle Bernie on the GAL16V8, both the Atmel and Lattice versions are readily available and easily programmed using an inexpensive programmer like the Minipro TL866.  I've programmed quite a few of those.  They are often used as a substitute for the older PAL16R4 chips in designs because they are so similar. 

 

I also completely agree about any program

Many thanks for all the advice.

Offline
Last seen: 5 months 2 weeks ago
Joined: Jul 5 2018 - 09:44
Posts: 2587
It just came to mind that a

It just came to mind that a good place to start if you are interested in programming a GAL chip for a very similar application as this one is the Mike Willegal "SuperProto".  It uses a 6522 which is a similar parallel chip to the 6520 on the Apple Mouse Interface Card and it also uses a GAL22V10 which is a slighly larger PLD but similar to the 16V8.  The application of selecting the parallel chip and the ROM image selection should be very similar.  If you look at Mike's project on his web site he includes the code for the GAL.  It is pretty understandable source code although you will ned to figure out tools to compile code for whatever platform you use.  Unfortunately I'm not able to access the SuperProto pages on Mike's web site right now.  Maybe someone has a mirror online.  If not, I have an archive of his site that I made and I could supply the source code files if needed.

 

 

Offline
Last seen: 5 months 2 weeks ago
Joined: Jul 5 2018 - 09:44
Posts: 2587
I think ReActive Micro is

I think ReActive Micro is selling SuperProto cards either assembled or as a kit.  That might be a good place to start as far as designing a USB mouse card.  I think that one that used a USB mouse would be a lot more useful these days than older designs that use serial mice because those are no longer widely available like they were 15-20 years ago.  Even PS/2 mice are just not common anymore, although still available new.  I don't think serial mice are even made anymore.

 

There are a few USB modules/chips or microcontrollers like some of the Arduino models that can handle a USB mouse.  If you essentially built a parallel interface card that looked to the Apple II like the Apple Mouse Card does, with the Apple Mouse ROM code on it, and then wrote code for the microcontroller that read the mouse and outputted the right signals for the mouse events, it should theoretically work and a cheap USB wired or wireless mouse would appear to the Apple II as if it was a vintage Apple mouse.

 

Online
Last seen: 32 min 37 sec ago
Joined: Mar 12 2023 - 16:49
Posts: 22
HobbyTronics.com USB host mouse
softwarejanitor wrote:

I think ReActive Micro is selling SuperProto cards either assembled or as a kit.  That might be a good place to start as far as designing a USB mouse card.  I think that one that used a USB mouse would be a lot more useful these days than older designs that use serial mice because those are no longer widely available like they were 15-20 years ago.  Even PS/2 mice are just not co

I am basically starting with this HobbyTronic PIC USB on a module board because I have previously used their host USB keyboard module.

The hobbytronic takes a few wirless mice so that cuts down on trailing wires.

 

The ROM as you say can be as is with the Apple mouse card along with the original PIA.

Probably the micro interface would be ATMega328 "Arduino chip" and probably a GAL for the glue logic, a Cypress PSoC could handle the glue logic and the microprocessor logic .

However I am not keen to use the PSoC except for experimentation as Cypess new owners do not seem so keen on PSoc 4 and 5 . .

 

Lots of ideas but at 75, may be not enough time to get the job done, "She who must be obeyed " only allows me 2 hours a day electronics development time.

 

Regards to all who have commented on this thread.

Crusty

Log in or register to post comments