| Electronic Components Datasheet Search |
|
AVR4013 Datasheet(PDF) 5 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AVR4013 Datasheet(HTML) 5 Page - ATMEL Corporation |
|
5 / 7 page ![]() AVR4013 5 8349A-AVR-11/10 5.4 Use power-save sleep mode while waiting for next transmit As the ATmega88PA is not processing any data while waiting for its next UART data transmission, it’s a good idea to put the device into sleep mode to further reduce power consumption In the power-save sleep mode (see section 9.1, Sleep Modes, in the datasheet) we can use Timer 2 as our wakeup source. Brown out detection is not required in the power-save sleep mode because no data can be corrupted. It will be automatically re-enabled on wakeup from sleep (see section 9.2, BOD Disable, in the datasheet), so we choose to disable the BOD while sleeping The AVR toolchain includes a header file, sleep.h, which has functions for setting sleep mode, disabling BOD, and putting the device into sleep. These functions are called: set_sleep_mode() – selects which sleep mode to use when the sleep instruction is executed sleep_enable() – enables sleep modes sleep_bod_disable() – disables BOD while sleeping sleep_cpu() – executes the sleep instruction Runtime is now 198 seconds. 5.5 Calibrate oscillator to enable higher baud rate Another approach to reduce power consumption is to reduce the time spent in active mode. In this application, the CPU is active while waiting for the UART transmission to end. We will calibrate the oscillator to a frequency that allows a higher baud rate on the UART to reduce the time spent in active mode. We need a frequency close to 7.3728MHz to generate a stable baud rate of 115.2kbps (see section 19.10, Examples of Baud Rate Setting, in the datasheet). You will need to set the frequency a bit higher than 7.3728MHz to be able to utilize the whole voltage range. You will also want to divide the clock by 4 to get 1.8432MHz to still be able to run the device with the 1.8V BOD setting. We change the OSCCAL value to 0x5e. Runtime is now increased to 217 seconds. 5.6 Conclusion By structuring your application and understanding the power saving techniques mentioned in this document, you can reduce energy consumption without doing any changes to your PCB. In this example, the runtime was increased from 6 to 217 seconds running off the same power source. |
|
|
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 |
| 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 |