Electronic Components Datasheet Search
  English  ▼

X  

AVR4013 Datasheet(PDF) 4 Page - ATMEL Corporation

Part # AVR4013
Description  Sleep modes PRR registers Oscillator calibration USART
PDF  7 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

AVR4013 Datasheet(HTML) 4 Page - ATMEL Corporation

  AVR4013 Datasheet HTML 1Page - ATMEL Corporation AVR4013 Datasheet HTML 2Page - ATMEL Corporation AVR4013 Datasheet HTML 3Page - ATMEL Corporation AVR4013 Datasheet HTML 4Page - ATMEL Corporation AVR4013 Datasheet HTML 5Page - ATMEL Corporation AVR4013 Datasheet HTML 6Page - ATMEL Corporation AVR4013 Datasheet HTML 7Page - ATMEL Corporation  
Zoom Inzoom in Zoom Outzoom out
 4 / 7 page
background image
4
AVR4013
8349A-AVR-11/10
5.2 Enable pull-ups on unused I/O pins and disable modules not used
To remove some power consumption, we will enable pull-ups on unused I/O pins to
get a defined logical level and avoid unnecessary switching. To enable pull-ups on
the I/O pins, we set the pins to input in the Port Data Direction Register and set the
Port Data Register to high level (see section 13.2.1, Configuring the Pin, in the
datasheet).
Code:
DDRA = 0x00;
// Set direction to input on all pins
PORTA = 0xFF; // Enable pull-ups on pins
Another power-saving feature is to disable unused on-chip modules in the PRR
Power Reduction Register (see section 9.10, Minimizing Power Consumption, in the
datasheet).
We are not using the TWI, Timer/Counter 0, Timer/Counter 1, and Serial Peripheral
Interface modules, and will therefore disable these modules.
Code:
void enable_prr()
{
power_spi_disable();
power_timer0_disable();
power_timer1_disable();
power_twi_disable();
}
Runtime is increased to 9 seconds.
5.3 Pre-scale clock from 8MHz to 2MHz
Because we have been using the device at 8MHz, we have to configure the BOD
(brown out detection) level at 2.7V. The ATmega88PA is not rated to run at lower
voltages with the clock set at 8MHz (see section 28.3, Speed Grades, in the
datasheet). Therefore, we will halt the execution at 2.7V, which means that a lot of
energy will be left in the capacitor which we will not be able to utilize with this setting.
We do not need the processing capacity of a device running at 8Mhz, and should
instead decrease the system frequency to 2MHz, which will lower overall power
consumption and allow us to change the BOD setting to 1.8V.
We will still be able to generate a stable baud rate of 19200. To pre-scale the RC
oscillator output with 4 to get 2MHz (8MHz / 4 = 2MHz) we use the CLKPR Clock
Prescale Register.
The AVR toolchain includes a macro for this that is found in the power.h header file.
Code:
clock_prescale_set(clock_div_4); // This divides the clock by 4
Runtime is now increased to 40 seconds.



Html Pages

1 2 3 4 5 6 7


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com