jtmcknight
New member
I am attempting to interface with an ADC, specifically TI's ADS1224. I've been attempting to generate a consistent clock pulse, but have been unsuccessful. I tried using the tone() function, but when I view the clock with a logic analyzer the pulses are inconsistent. Also, I tried using analogWrite(pin,128) which gave me a clock signal, but at a frequency of only 500 Hz. Is there any way to access the clock or possibly assign it to a pin? I am using a Teensy 3.1.
This is the result of using the tone() function:
Edit: What I'm looking for is something similar to what you would get when using SPI on the SCK pin while the SPI.tranfer() function is executing.
Thanks!
Jake
This is the result of using the tone() function:

Edit: What I'm looking for is something similar to what you would get when using SPI on the SCK pin while the SPI.tranfer() function is executing.
Thanks!
Jake
Last edited: