Power Supply Design for AVR Microcontroller

Publisher:喜从中来Latest update time:2011-11-04 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Click to see full image

The most commonly used voltages for AVR microcontrollers are 5V and 3.3V. This circuit uses a switch to switch between the two voltages and indicates them with a two-color diode (green light for 5V and red light for 3.3V).

Diode D1 prevents users from plugging in the wrong polarity of the power supply. D2 allows users to reverse the voltage into this circuit without damaging the 1117-ADJ.

The characteristic of 1117-ADJ is that there will be a 50uA current output at pin 1 and a 1.25V voltage at pins 1-2. Using this characteristic, the output voltage can be calculated:

When the SW switch is turned to the left, the current on R6 is 1.25/0.33 = 3.78ma. The current on R8 is 1117-ADJ 1 pin current plus the current on R6, that is, 0.05+3.78=3.83ma. It can be calculated that the voltage on R8 is 3.84V. So VCC=1.25+3.83=5.08V. The error is within 2%.

When the SW switch is turned to the right, the current on R6 is 1.25/0.62 = 2.02ma. The current on R8 is 1117-ADJ 1 pin current plus the current on R6, that is, 0.05+2.02=2.07ma. It can be calculated that the voltage on R8 is 2.07V. So VCC=1.25+2.07=3.32V. The error is within 1%.

Using 1% precision resistors, the overall output voltage error can be controlled within 3%.

Important note: In actual application, depending on the brand of 1117-ADJ used, the input voltage can be as low as 7V or even lower. (You can also use a low voltage drop diode instead of 1N4007).

Reference address:Power Supply Design for AVR Microcontroller

Previous article:Design and Analysis of AVR Basic Hardware Circuit
Next article:Design of AVR crystal oscillator circuit

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号