sam3s4c Hang

Discussion around product based on ARM Cortex M3 core.

Moderators: nferre, ncollot

Posts: 1
Joined: Thu Aug 02, 2012 3:16 pm

sam3s4c Hang

Tue Oct 18, 2016 7:17 am

Hi dear,

I am using sam3s4c micro controller.using gpio pin out we are connect 12v relays.without connecting relays controller working fine.. In Firmware we are using watchdog. with connecting relays controller should be hang and also controller reset button not working and programmer reset also not working. Only the way is switch off/on controller..Please solve my query.. thanks in advance..
Location: USA
Posts: 2154
Joined: Thu Apr 19, 2007 10:15 pm

Re: sam3s4c Hang

Tue Oct 18, 2016 8:39 pm

You could be drawing too much current from the GPIO pin(s).
Use Ohm's Law to calculate the current required by the relay's primary.
Compare that to the spec in the SoC datasheet.

Posts: 56
Joined: Wed Aug 19, 2015 9:44 pm

Re: sam3s4c Hang

Wed Oct 19, 2016 6:55 pm

If you connect 12V relay coils directly to the I/O pins, you are lucky if the chip has not blown up. The absolute maximum voltage on the I/O pins is 4V.

You need to use a relay driver chip, e.g. ULN2003, and the coils need diodes to control the inductive voltage kick on turn-off.

Return to “SAM3 Cortex-M3 MCU”

Who is online

Users browsing this forum: No registered users and 3 guests