Instructions
224Libraries
© 2013 Conrad Electronic
Parameter
ms wait duration in milliseconds
5.2.2 ForceBootloader (AVR32Bit)
General Functions
Syntax
void ForceBootloader(void);
Sub ForceBootloader();
Description
Jumps into the bootloader. After that, the unit is again available for commands, eg to update the software.
Parameter
None
5.2.3 Sleep (Mega)
General Functions
Syntax
void Sleep(byte ctrl);
Sub Sleep(ctrl As Byte)
Description
Using this function the Atmel CPU is set in one of the 6 different sleep modes. The exact functionality is
provided in the Atmel Mega Reference Manual in the chapter "Power Management and Sleep Modes". The
value of ctrl is written into the bits SM0 and SM2. The sleep enable bit (SE in MCUCR) is set and an assem-
bler sleep instruction is executed.
Parameter
ctrl Initialization (SM0 to SM2)
Sleep Modes
SM2
SM1
SM0
Sleep Mode
0
0
0
Idle