2013-11-22 08:57 AM
Hello, I've been attempting to set up two discovery boards. One as a signal generator that generates a 1 Hz pulse (50% duty cycle), and the other to accept that signal as input capture. I can't seem to get the input capture board to generate interrupts on the 1 Hz pulse though.
I'm getting stuck because it seems like both boards are configured correctly. I confirmed that the 1 Hz pulse is correct on an oscilloscope. For the input capture board, if I take a wire and plug one end onto a 3.3 V output pin, then tap the other end on the input capture pin, I can see that the interrupt is generated. Despite working when tested separately, when I connect their grounds and then their respective pins together, it fails to generate any interrupts. An interesting symptom that I noticed is that when I measure the resistance between the input capture pin and its respective ground, I only get 10 Ohms, which strikes me as a red flag. Anyone have an idea what might be causing this?2013-11-22 10:54 AM
Could be a difference in potential between the two boards, i.e. ground potentials are significantly different. A solution would be to operate both boards from one power supply. But that rules out USB as supply, and could make debugging troublesome.
I remember setups including a PC for debugging, a scope for measuring, and a mains supplied debuggee, which went up in smoke for that very reason ...2013-11-22 03:47 PM
What pins are you connecting? As some pins are used by other devices on the board and don’t behave as you would expect (from someone who had to remove the LCD and MEMS to get them to behave properly).
2013-11-22 04:00 PM
On the board generating the signal, I'm using PE9. On the input capture board, I'm using PE0.
2013-11-22 04:00 PM
On the board generating the signal, I'm using PE9. On the input capture board, I'm using PE0.
2013-11-22 04:18 PM
''when I measure the resistance between the input capture pin and its respective ground, I only get 10 Ohms, which strikes me as a red flag. ''
-So effectively tied to ground. What type of discovery board? Using a STM32F429 Discovery I am getting 1M7 to ground at PE0 (on my chopped board), but the only possible connections seem to be NBL0 (SDRAM) which seems unlikely.2013-11-22 04:48 PM
I'm using an stm32f3.
Based on Tede's response, I checked the schematics and indeed, the MEMs is also tied to that particular pin. I used a heat gun to remove it and now input capture seems to be working fine. Thank you for your help!2013-11-23 07:35 AM
Based on Tede's response, I checked the schematics and indeed, the MEMs is also tied to that particular pin. I used a heat gun to remove it and now input capture seems to be working fine.
Isn't that called ''due diligence'' ?