I have a two wire serial connection that does not follow any typical hardware serial protocols. So I am working at the bit level.
I am trying to use an interrupt on the clock line so that on the rising edge of the clock pulse I can read the bit from the data line and shift it in to a byte variable.
My issue is I know for a fact that the clock will pulse 145 times, but the interrupt is only capturing 15 of those pulses.
I'm using the arduinos built in functions for enabling and setting an interrupt on pin 3, and then my interrupt function just prints a line to the Serial port for testing purposes.
The only document I have about this serial protocol is that you can read it with a microcontroller capable of an interrupt response in 2us and repeated every 7us, and from what I gather, the ATMega328 is capable of that.
Any ideas?
PS, I'm new to microcontrollers, but hardly an idiot when it comes to programming or electronics, so lets avoid the sharp-shooting jerk responses aimed to highlight ignorance and lack of knowledge.