| Author |
Message |
Davood Amerion
Joined: 01 Mar 2005 Posts: 589 Helped: 90 Location: Persia
|
18 Jul 2005 7:36 atmega8 output current |
|
|
|
|
Hi everybody;
I am using ATMEGA16L for STEPPER motor control. Port A and port D which i use az output, unable to produce enough current, say 10mA. The output current is as low as 200uA!
whats wrong?
Last edited by Davood Amerion on 18 Jul 2005 7:56; edited 1 time in total |
|
| Back to top |
|
 |
IanP
Joined: 05 Oct 2004 Posts: 6490 Helped: 1542 Location: West Coast
|
18 Jul 2005 7:51 atmega32 output current |
|
|
|
|
Most of microcontrollers have only very weak pull-ups at their ports, so to source current you will need a buffer.
However, the outputs should be able to sink ≈10mA..
Regards,
IanP
|
|
| Back to top |
|
 |
Davood Amerion
Joined: 01 Mar 2005 Posts: 589 Helped: 90 Location: Persia
|
18 Jul 2005 8:04 atmega current port |
|
|
|
|
dear IanP;
This type of microcontroller capable to driving min. 10mA and I configure output as totem pole (PORTA reg. and DDRA reg.). I think the problem is in software, but i dont now where!
|
|
| Back to top |
|
 |
Google AdSense

|
18 Jul 2005 8:04 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
bamdad
Joined: 14 Nov 2001 Posts: 116 Helped: 5
|
18 Jul 2005 10:06 atmega8 source current |
|
|
|
|
| Maybe the micro is damaged, I have an AtMega16 (not the L version) which is driving 30mA on one of its port pins (port A I think)
|
|
| Back to top |
|
 |
Davood Amerion
Joined: 01 Mar 2005 Posts: 589 Helped: 90 Location: Persia
|
18 Jul 2005 10:14 atmega outputs |
|
|
|
|
I found answer. i define init() function but I dont use it!
anyway;
Thank you for your attention.
|
|
| Back to top |
|
 |
Bingo600
Joined: 26 Aug 2004 Posts: 239 Helped: 14
|
19 Jul 2005 21:44 atmega16 current output |
|
|
|
|
Remember on most Atmega's
The Port A (ADC) gets it Power from AVCC (even if used as a normal pin) so you always need to connect AVCC & AGND.
Remember decoupling caps
/Bingo
|
|
| Back to top |
|
 |