Teensy 2.0 as a 4mhz Crystal for TI SN76489 sound chip?

Status
Not open for further replies.

allenhuffman

Active member
I have a Nano hooked to the Sn76489 sound chip, along with a 4mhz crystal. I started wiring up a second one using my Teensy 2.0. I ran across code examples for Arduino that seem to say I don't need the crystal, and can using the CPU itself to generate that 4mhz timing.

Is this a thing? Possibly on Teensy 2.0? It would save me a part, if so. :)
 
This will produce a 4 mhz square wave on pin 14 of Teensy 2
Code:
pinMode(14,OUTPUT);
TCCR1A = 0x43;
TCCR1B = 0x19;
OCR1A = 1;
put it in setup()
 
Status
Not open for further replies.
Back
Top