LC PDS card design -- FC0/1/2?

Plan to used for : I have a couple of Tektronix bench devices and an HP Logic analyzer to play with. All from the same era as the Macintosh.

So I just got all the parts to start the prototype and by accident I found a tech article by Apple [Technote HW 07] on the internet saying you should only use CMOS devices on a PDS for the LC or you can get bus errors.
So the uPd7210 is pure NMOS, adding a CMOS buffer would fix it but will make timing more complex.
A possible solution would be to use the TMS9914A, need to check if I can find some stock of it.

I'm struggling to write code, possible because I'm totally new to the Macintosh and could use some help.
First I used Chipmunk Basic peek/poke function to access any I/O registers, but I only get illegal instruction errors or basic crashes ...
So now I installed Think C (only works in 32bit mode), does anyone have some example code (C, pascal or ASM) how to read / write
I/O registers of the chips (for example the VIA) ?

PS : it's known that the LC and LC II are limited in speed because they 'only' access the RAM in 16 bits.
What if you add 32bits SRAM on the PDS card, can you make the OS use it without the memory controller controlling it.
This last is important so it want generate 16 bits memory acknowledge for it.
 
Need some help ... please

So I made a wire--wrap board, programmed a PAL as address decoder (nAS=L, A31=H, A24=L) that generates nDSACK0 signal and seems to be working. Used Chipmunk basic poke 0x0e0000000,0 and peek to test it and works fine, without the board the SW crashes as expected.

But now I added my GPIB controller chip to the board and wanted to write / read the chip but only got strange data back.
Starting debugging with the scoop, all looked fine, nDS, nCS, Data lines, .... until I got to the address lines.
Seems whatever address I used in basic for the poke or peek, on the real HW all address lines (except A31) are ALWAYS LOW !

I checked if I was really in 32bit address mode, and yes FC3 is high (in 24 bit mode the board simply doesn't work).

Does anybody has any idea what I'm doing wrong here ? Is this an OS issue or basic maybe ? For now I'm really blocked.

setup : LC II machine , OS 7.1, Chipmunk basic 3.5.6
 
Back
Top