Hello,
I'm starting to work with a new ADC that I need to drive with an external 4MHz clock that I will need to drive with my MCU. Is there a way to set up a pin to passively drive that clock?
I'm using the Simblee MCU which has an ARM Cortex-M0 on it. So far I've tried using TIMER libraries but high frequency switching like that doesn't seem feasible; the fastest interrupt frequencies I've gotten out of it approach ~100kHz with a very low resource interrupt handler. I know this is possible because the SPI library I'm using does it. As far as I can tell writing any uint8_t value to the spi->TXD register (member of the NRF_SPI_Type struct) is enough to trigger one 8-edge cycle at up to 8MHz, but the HAL documentation in the Infocenter doesn't dive in to how exactly that is being implemented.
The Simblee uses the Arduino IDE, which I am very close to abandoning for Eclipse so I can step through the assembly to figure this out, but hopefully there's a simpler solution.