Note: I'm learning electronics so, excuse any further dumb questions
I'd like to interface my arduino board to a good ol' YM2149 sound generator. For ost of the input signals, that's ok.
But the YM needs an input clock signal (ultimately 2Mhz or 4MHz) and I don't know what is the easiest way to provide this clock signal.
I googled a little and found some wyas to implement an oscillator but any good advice will be welcome.
Btw, do you have a little schema using the 74LS92 divider + transistor
?
The 74LS92 is a divide by 6 right (so 2.666MHz) or can it be used as a divide by 2 to reach 4 MHz ? (that's the case if I understand well the datasheet, using only the Q0(12) output and the CP0(14) clock input)
Dumb question... I was wondering where to get the 16MHz clock signal and... I saw that the output pin13 (SPI SCK) can be configured according to the master clock signal (by default 1/4 but could be something else)
Could I use directly this clock signal to 4Mhz ??? (after spi.begin())
Do you mean that the SPI SCK is only sending pulses when transmitting ? No sure that I understood what you mean by "shifting out not continously"
Bah ok a pity.
Ok, using the 74LS93 and divide by 8 it looks easier
Btw the way so how do you connect all this stuff ?
clock : from where ? need a soldered wire on the XTAL1 ?
transistor ? base on clock, emitter to ground, collector to divider ? nothing more ?
divider ? using LS93 CKB (1) input ? then using Q2(9) output as the 2MHz clock signal ?
The full sentence was only gives you the clock pulses while it is shifting out not continuously. So that is it doesn't give you continuous clock pulses only pulses 8 times during the shift out of data.
need a soldered wire on the XTAL1 ?
yes - but not sure if you need to use pin9 or pin10 on the DIL version of the 168
base on clock, emitter to ground, collector to divider ? nothing more ?
No you only have a small signal so:- crystal to resistor 100K other end to a capacitor (anything say 10nF) other end of the capacitor to the base. The base should also be connected to the +5v with a largish resistor say 470K, emitter top ground collector to 74LS93 input with a 10K pull up resistor.
using LS93 CKB (1) input ? then using Q2(9) output as the 2MHz clock signal ?