Ah, so you have to hold the address and data lines and toggle a pin?nokturnal wrote: 26 Mar 2024 23:30 Need for this latch was purely to save state of adress lines to have certain pattern set on OPL3 data / address lines, after setting this I need to (assert /WR low or high OPL3 for certain time to set either address to which I'm writing data and next the value).
I'd have to have a look at the data sheet, but yes, that might need a latch depending on the timing diagram.
OK, without reading the YM262 data sheet, I'd just suggest using A1 for OPL_WR as then you don't need to synthesise A0. Nothing changes other than the addresses you use.nokturnal wrote: 26 Mar 2024 23:30 Here is sample, which TOri has sent me (with A0 taken from LDS (,which is active low) and is our /WR strobe):
We want to set $01 adress register YM262 (A0=0, A1=0) - LSI TEST (Array 0)
1. We read back from #$FA0101 to d0, this will set 01 - data, 01 - adress (H - /WR) on latches
2. We turn off /WR by clearing /WR to 0 - low state
3. (we idling if needed)
4. We turn on /WR by setting /WR to 1 - high state
We need to repeat similar procedure to write to previously selected OPL3 address some data..
Instead of 0xFA0101 and 0xFA0100, you'd just use 0xFA0102 and 0xFA0100 and a word or byte read would both work, although I'd use UDS for simplicity.
If you want to expand to having two chips why not just use ROM4 for the second chip's CS line? Your address ranges change to 0xFBxxxx and everything doubles up. :)
Aha yeah film caps would also work, but I doubt they fit into that tiny SMD footprint. Have a look at the CP_Elec* series in CAPACITOR_SMD library or C_Radial* series in CAPACITOR_THT.nokturnal wrote: 26 Mar 2024 23:30 They have used filmic capacitors to reduce noise on the board, there's no electrolitic caps (I probably will add them, but couldn't find proper footprint in KiCad).
BW
