Sorry, I've been too busy to work on this lately. My FIRST Lego League team won the November tourney and are going to state next weekend. Unless they win again, I'll have time after that, especially over the holidays.
bob1200xl, on Thu Dec 3, 2009 11:04 AM, said:
The first thing we need in CUPL is the blank form. (see LEM.PLD) It has the header, which has some required fields - particularly the DEVICE entry. This tells the compiler which chip we are using. You generate this startup file from the FILE/NEW dropdown. It will ask you for the number of INPUT pins, OUTPUT pins, and PINNODES. (pinnodes are the internal macrocells that do not connect to the Outside World as outputs) You probably don't know these quantities yet, so just put in a guess. It is easy to add or delete them later.
From here, we will enter the pin numbers of the various inputs and outputs. Which we don't know until we lay out the board.
Thanks for the primer. I'll study CUPL some more and flesh this out.
Quote
So, S14b3.pcb is a start on the layout. It shows just the 34 pin header, memory (512Kx8) and CPLD. The header plugs into the cartridge slot through the adaptor that I made for this project. The pins at the edges are spares that carry cart selection lines back to the socket on the adaptor and should be ignored. The pin at the upper-right (SECOND one down) is cart pin 1. The upper-left is cart pin A. The lower-right (SECOND pin up) is cart 15 and lower-left is S.
The parts I do not have are the clock circuit and the video summing circuit. Anybody got an idea for video summing?
As above, the clock circuit could be simple delay lines. If we add a clock gen chip then most of those sequential equations will change, and I think they'll be more complicated. If you layout the delay line IC described above, then we could solder in RC circuits for the first test boards, before we commit to buying the ICs.
As for the video summing, I still plan to experiment with the prototype to see if the simple resistor ladder and diode circuit works well.