rallepalaveev / analog

VGA card for the Apple II computer line
MIT License
20 stars 1 forks source link

Resistor voltage dividers values #1

Closed rallepalaveev closed 10 months ago

rallepalaveev commented 11 months ago

Resistor voltage dividers need more testing to determine which values work best. Currently I use 2.5k and 5k for RW, PHI0 and Enbl and 10k/20k for the Reset line.

ThorstenBr commented 11 months ago

Hi Ralle, I built the v1.3 version of your card - and noticed the resistor dividers were weak, so read-cycles wouldn't work. Write-cycles are less critical - since the PICO just needs to grab the data from the bus somewhere in between the 500ns of PHI0's high phase. But read-cycles are quite critical: the PICO needs to detect the rising edge of PHI0 almost instantly - otherwise it doesn't have enough time left to process the read request and respond with the correct data within the 500ns active phase of PHI0. Also, on the falling edge of PHI0, the PICO should release the bus within a few nanoseconds. This cannot work if the resistor values are too high - since the signal gets sloppy (takes too long to change from high to low, or vice versa).

Lower resistor values are good, since the falling/rising edges are sharp (fast). But the disadvantage is that it puts a lot of load on the signals - especially on the two signals shared with all other slots (PHI0 + RW).

I noticed you already changed the resistors in your v1.4 schematics, so you probably also already investigated this.

I checked the signals with a scope. Here's what I had done to my boards eventually: A2VGA_ResistorDivider

Anyway, that's just what I had done with my boards. Thanks for making this DIP IC design! Fits the Apple II design perfectly... :)

rallepalaveev commented 11 months ago

Hi Thorsten,

I fully agree with what you are suggesting, I was myself trying to find a balance between the current draw and the need for stable signals. I did not think about not using dividers actually on the PHI0 and RW lines, so thanks for the suggestion, I will do a revision.

:)