Part Number:TM4C123GH6PM
Tool/software: TI C/C++ Compiler
hi,
so i have this interruption which is supposed to enabels my lunchpad to enter hibernate mode.
void Timer0IntHandler(void) { // // Clear the timer interrupt. // TimerIntClear(TIMER0_BASE, TIMER_TIMA_TIMEOUT); UARTprintf("Hibernate mode is on!\n"); SysCtlDelay(SysCtlClockGet()/10); GPIOPinWrite(GPIO_PORTF_BASE,GPIO_PIN_3, 0);//turn off the green LED before the device goes to sleep. SysCtlPeripheralEnable(SYSCTL_PERIPH_HIBERNATE);// enable the hibernation module HibernateEnableExpClk(SysCtlClockGet());//defines the clock supplied to the hibernation module HibernateGPIORetentionEnable(); //Calling this function enables the GPIO pin state to be maintained during hibernation . HibernateWakeSet(HIBERNATE_WAKE_PIN);//set the wake condition to the wake pin HibernateRequest(); //function requests the Hibernation module to disable the external regulator, removing power from the processor and all peripherals. UARTprintf("Run mode still on!\n"); }
UARTprintf("Run mode still on!\n"); This ligne was to make sure that this periph is disable after entring the hibernate mode :
and during the execution it didn't appear on the terminal.
does that means that my lunchpad did actually enter hibernate mode and diabled all the periph ??
if not how am i supposed to make sure of that.
Ps: no need to bother talking about measuring the current during the hibernation mode, i have tried and it didn't work.
thanx
best regards.