my avr reset when there is output code

Discussion in 'Embedded Systems and Microcontrollers' started by Tinsae, Oct 15, 2015.

  1. Tinsae

    Thread Starter New Member

    Jan 8, 2015
    15
    0
    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
     
  2. DickCappels

    Moderator

    Aug 21, 2008
    2,651
    632
    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.
     
Loading...