my avr reset when there is output code

Thread Starter

Tinsae

Joined Jan 8, 2015
113
Hi guys. i have a simple atmega16/32 project with three relays (i need two of them to be switched on at the same time). when the internal code changed to put only one bit output at portd every thing run fine. but when i try to control two relays and send two on bits at the port the mcu reset. firstly i thought it might be power being low when the two relays switched on but i remove the relays and the problem persist. the portd drives bc109 transistors each have a base resistor of 1k which limit the output current at the same level of the mcu.

please help me because i have only few days to finish the project
 

DickCappels

Joined Aug 21, 2008
10,175
If you want help quickly, post more details. For example, a schematic diagram and your source code. The more we know the better the chance of helping you.
 
Top