C02 Pocket SBC completed!
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: C02 Pocket SBC completed!
I meant to ask but forgot. What did you use to program the Atmel GAL? It seems many programmers won't work with Atmel's devices.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: C02 Pocket SBC completed!
BigDumbDinosaur wrote:
I meant to ask but forgot. What did you use to program the Atmel GAL? It seems many programmers won't work with Atmel's devices.
Bill
- floobydust
- Posts: 1394
- Joined: 05 Mar 2013
Re: C02 Pocket SBC completed!
telbee71 wrote:
That PCB is a work of art! Excellent project.
BigDumbDinosaur wrote:
I meant to ask but forgot. What did you use to program the Atmel GAL? It seems many programmers won't work with Atmel's devices.
Regards, KM
https://github.com/floobydust
https://github.com/floobydust
Re: C02 Pocket SBC completed!
This is a cool looking project. Nice clean layout. I like the fact that you've created a great monitor for it. Nice work.
What are the dimensions of the board?
Would you be able to produce a JPEG of the schematic?
What are the dimensions of the board?
Would you be able to produce a JPEG of the schematic?
Bill
- floobydust
- Posts: 1394
- Joined: 05 Mar 2013
Re: C02 Pocket SBC completed!
BillO wrote:
This is a cool looking project. Nice clean layout. I like the fact that you've created a great monitor for it. Nice work.
What are the dimensions of the board?
Would you be able to produce a JPEG of the schematic?
What are the dimensions of the board?
Would you be able to produce a JPEG of the schematic?
Note that the final board is using the newer low power version of the AT22V10CQZ and the main clock oscillator is at 6MHz, not 4MHz as shown. The SCC2691 is basically limited to a 6MHz CPU clock rate, albeit I have one DIP version that survives an 8MHz clock.
Regards, KM
https://github.com/floobydust
https://github.com/floobydust
Re: C02 Pocket SBC completed!
floobydust wrote:
It's a fairly simple circuit
Thanks for the schematic - I don't have Express PCB software.
Bill
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: C02 Pocket SBC completed!
floobydust wrote:
Note that the final board is using the newer low power version of the AT22V10CQZ...
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: C02 Pocket SBC completed!
BigDumbDinosaur wrote:
floobydust wrote:
Note that the final board is using the newer low power version of the AT22V10CQZ...
How would you even get 4mA load? TTL Iih is about 40uA @ 2.4V. 4Ma would be equivalent to driving more than 100 TTL loads or 4000 HC/AC loads.
I think we need to take some of these specs with a grain of salt, or at least a look at the entire story. GALs, DRAM, SRAM, EEPROM and EPROM chips of all sorts sport this 2.4V Voh spec, but are/were used all the time in CMOS environments. Not just by us 'amateurs' either, but also by designers of commercial and industrial equipment.
Bill
- floobydust
- Posts: 1394
- Joined: 05 Mar 2013
Re: C02 Pocket SBC completed!
BillO wrote:
BigDumbDinosaur wrote:
floobydust wrote:
Note that the final board is using the newer low power version of the AT22V10CQZ...
How would you even get 4mA load? TTL Iih is about 40uA @ 2.4V. 4Ma would be equivalent to driving more than 100 TTL loads or 4000 HC/AC loads.
I think we need to take some of these specs with a grain of salt, or at least a look at the entire story. GALs, DRAM, SRAM, EEPROM and EPROM chips of all sorts sport this 2.4V Voh spec, but are/were used all the time in CMOS environments. Not just by use 'amateurs' either, but also by designers of commercial and industrial equipment.
Regards, KM
https://github.com/floobydust
https://github.com/floobydust
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: C02 Pocket SBC completed!
BillO wrote:
It's a worst (nigh impossible) case scenario. The spec of 2.4V is a minimum guarantee when sourcing 4mA with Vcc at it's minimum. It's not for normal conditions. Look at the graph (page 10 on my datasheet) [labeled ATMEL ATF22V10CZ/CQZ OUTPUT SOURCE CURRENT VS. OUTPUT VOLTAGE (VCC = 5V, TA = 25°C)]...
Note that the GAL's Voh doesn't get anywhere CMOS logic 1 territory until Ioh is vanishingly small. While a CMOS input draws virtually no current when the circuit driving it is quiescent, the GAL has to contend with transitory loading by the circuit's parasitic capacitance. Although the above graph indicates that the 22V10 will produce 3.50+ volts as the load approaches the microampere range, much more current will be demanded while the parasitic capacitance is being charged to Voh. Unavoidably, signal edges will be rounded to some extent, creating the potential for unreliability at higher clock speeds. The result is the Fmax for any given circuit could be much less than what timing calculations suggest it should be.
Incidentally, the 65C816's data sheet indicates that Vih must be at least VDD × 0.8 to be recognized as a logic 1. That's 0.5 volts higher than the theoretical Voh of the 22V10 when loaded at the microampere level. On paper, it shouldn't work, an observation that gets back to a past topic concerning the true nature of the 65C02's and 65C816's inputs (TTL or CMOS).
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: C02 Pocket SBC completed!
I beg to differ BDD. That diagram is not accurate nor precise enough to see what is happening at the low uA range (~1-25uA) which is what we'd typically see in our little systems. I mentioned that diagram only to note that the spec of 2.4V is for unusual conditions. Vcc at minimum and Ioh at 4mA.
I'd be willing to bet the price of a shiny new W65C02 that if you loaded one of these GALs with 50K resistor (~20ua) you would see better than 4V at the output. I'd go further to let you test 1000 of them to see if you could find one that did not deliver better than 4V.
Honestly, I do understand the physics behind these devices and know how they work, my being a physicist and all.
It is interesting to note too, that you have in your own POC V2.1 several devices including an EPROM and an ATF1504AS CPLD that list that very same 2.4V Voh. The EPROM is actually at a much lower current too.
Both the enhanced Apple //e and 11gs used WDC CMOS CPUs and both employed DRAM and ROM chips that specified 2.4V Voh. It is a matter of record that 10s of thousands of those computers worked fine.
Also, the RCA COSMAC VIP utilized a CDP1802 cpu, which specified a Vih @ > 4.5V, yet employed 2114s for RAM memory, which specified .... Voh = 2.4V @ 1mA. Yet that system worked fine too.
Did the engineers at Apple and RCA get it wrong, or did they understand that specification really means even if things get really bad (Vcc=4.75V and a load in the mA region) the thing will still deliver at least TTL levels?
In any case, this is probably not worth our arguing about.
EDIT: Changed one 'and' to 'at', one 'a' to 'at' and 'are' to 'our' - so that normal folk can understand...
I'd be willing to bet the price of a shiny new W65C02 that if you loaded one of these GALs with 50K resistor (~20ua) you would see better than 4V at the output. I'd go further to let you test 1000 of them to see if you could find one that did not deliver better than 4V.
Honestly, I do understand the physics behind these devices and know how they work, my being a physicist and all.
It is interesting to note too, that you have in your own POC V2.1 several devices including an EPROM and an ATF1504AS CPLD that list that very same 2.4V Voh. The EPROM is actually at a much lower current too.
Both the enhanced Apple //e and 11gs used WDC CMOS CPUs and both employed DRAM and ROM chips that specified 2.4V Voh. It is a matter of record that 10s of thousands of those computers worked fine.
Also, the RCA COSMAC VIP utilized a CDP1802 cpu, which specified a Vih @ > 4.5V, yet employed 2114s for RAM memory, which specified .... Voh = 2.4V @ 1mA. Yet that system worked fine too.
Did the engineers at Apple and RCA get it wrong, or did they understand that specification really means even if things get really bad (Vcc=4.75V and a load in the mA region) the thing will still deliver at least TTL levels?
In any case, this is probably not worth our arguing about.
EDIT: Changed one 'and' to 'at', one 'a' to 'at' and 'are' to 'our' - so that normal folk can understand...
Last edited by BillO on Sun Jul 08, 2018 5:38 pm, edited 2 times in total.
Bill
Re: C02 Pocket SBC completed!
Quote:
Incidentally, the 65C816's data sheet indicates that Vih must be at least VDD × 0.8 to be recognized as a logic 1.
Last edited by Dr Jefyll on Sat Jul 07, 2018 10:49 pm, edited 1 time in total.
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
https://laughtonelectronics.com/Arcana/ ... mmary.html
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: C02 Pocket SBC completed!
Farads = amps x seconds / volts
To charge 10pF up 4V in 5ns requires 8mA average over the 5ns.
Charging 10pF from .4V to 2.4V (ie, a 2V transition, half the 4V above) in 5ns requires 4mA average over the 5ns.
We probably want the transition to be even faster then 5ns though, since goals of around 5ns include the propagation delay of the gate(s) as well. This further increases the current requirement.
To charge 10pF up 4V in 5ns requires 8mA average over the 5ns.
Charging 10pF from .4V to 2.4V (ie, a 2V transition, half the 4V above) in 5ns requires 4mA average over the 5ns.
We probably want the transition to be even faster then 5ns though, since goals of around 5ns include the propagation delay of the gate(s) as well. This further increases the current requirement.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: C02 Pocket SBC completed!
BillO wrote:
I'd be willing to bet the price of a shiny new W65C02 that if you loaded one of these GALs with 50K resistor (~20ua) you would see better than 4V at the output. I'd go further to let you test 1000 of them to see if you could find one that did not deliver better than 4V.
Dr Jefyll wrote:
Yes the data sheet cites VDD x 0.8 as the minimum, but it does not say a below-minimum value will fail to be recognized as a logic 1...[WDC is] saying, give us these input voltages or else we have no obligation to meet the speed guarantee (ie, the thing will probably be slower).
BillO wrote:
It is interesting to note too, that you have in your own POC V2.1 several devices including an EPROM and an ATF1504AS CPLD that list that very same 2.4V Voh. The EPROM is actually at a much lower current too.
So, what is the difference?
POC V1.1 uses 74AC discrete logic, which drives its outputs close to Vcc and Gnd, even at the full-load rating of 24mA. Hence the 65C816's control inputs are driven with a very short rise or fall time, since the logic can produce enough current flow to rapidly charge/discharge parasitic capacitance. The ATF1504AS can't do that and while it can produce nearly 4 volts Voh with the typical CMOS loading (determined by actual measurement), it can't produce that voltage at the beginning of a circuit state change, due to the charging load of the parasitic capacitance.
I should add that both POC V2.0 and V2.1 exhibit essentially identical symptoms when an attempt is made to elevate the Ø2 rate. The principal difference between the two designs is V2.0 has a single QUART and V2.1 has two DUARTs. They both use the same RAM, ROM and CPLD. CPLD code is slightly different between the two, since 2.1 needs an extra chip select for the second DUART. However, the intermediate logic statements in both versions are the same.
I believe the common denominator in this situation may be the Voh rating of the CPLD when under any significant loading. However, it's not something I've been able to conclusively prove.
Last edited by BigDumbDinosaur on Sun Jul 08, 2018 2:56 pm, edited 1 time in total.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: C02 Pocket SBC completed!
BigDumbDinosaur wrote:
Oh, I don't doubt that at all. However, as Garth notes above, the current draw during an output's transition from low to high will be much greater than 20µA, which load will pull down the output voltage until parasitic capacitance has been sufficiently charged. That has the effect of rounding the edges and if sufficiently severe, provoking problems.
The below traces are the /OE signal in my recent project at 16MHz. This signal drives both the RAM and the ROM /OE and the line, with chips inserted, and scope probe attached measures at 55pF and 257K ohms, both measurements taken at 10KHz. We can see the following:
1) Rise time (which is not very significant for a /OE signal) to 2.4V = 2.3ns
2) Rise time to 4.0V = 4.7ns
and, most significantly
3) Fall time from 4.46V to 0V is only 3.4ns
(not sure why the actual measurements don't get put in the trace image files - a bug in the scope software?)
1) and 2) demonstrate an important characteristic of MOSFETS. That once turned fully on, (~1ns in this case - see where the rising edge turns most vertical) they can and will pass significant current until thermal effects begin to take hold and increase their resistance. Using the formula Garth gave us, we can see the initial current (0V-2.4V) averages at ~57mA and that the average current to drive the line all the way to 4V is ~47mA. Considerably higher than the 3.2mA suggested by the data sheet of this Lattice GAL20V8C which, as usual, gives us less information than we really need to determine if a device will actually suit our needs.
3) Shows that in this rather typical situation, the GAL will indeed produce a valid CMOS Vih of 4.46V. Not only that, but it will assert the /OE signal from that 4.46V all the way to 0V in just 3.4ns - an average current sink of ~72mA.
Now, after having said all that, the scope probe itself adds a measured 16pF load to the line, so the actual performance will be better than depicted here.
1) 2) 3)
Bill