Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

I am working on RL78 family with R5F10268 20 pin,8 bit microcontroller. I need to optimize current through snooze mode in code .I need some assistance like sample programs on how to use snooze mode in my program. I have used STOP() function,by implementing this am able to reduce the current to 1mA but adc is not functioning properly. I need to come out of sleep mode using software interval timer. kindly help me on this. Below is the code i implemented.........while (1U) { // OSMC = 0X90U; /* stops supply to peripheral functions other than RTC and interval timer */ STOP(); if(SysTick) { // interval timer is used for system tick set at 5mS SysTick = 0; // clear system tick after it is set in IT interrupt R_WDT_Restart(); // clear watch dog R_ADC_Start(); // start ADC is called every 5 ms, one sample of a cahnnel is read every 5 ms OSMC = 0X90U; /* stops supply to peripheral functions other than RTC and interval timer */ ProcessAnalog(); Kindly help me to reduce idle current from 4mA to less than 1mA. in Other

Previous: I am working on RL78 family with R5F10268 20 pin,8 bit microcontroller. I need to optimize current through snooze mode in code .I need some assistance like sample programs on how to use snooze mode in my program. I have used STOP() function,by implementing this am able to reduce the current to 1mA but adc is not functioning properly. I need to come out of sleep mode using software interval timer. kindly help me on this. while (1U) { // OSMC = 0X90U; /* stops supply to peripheral functions other than RTC and interval timer */ STOP(); if(SysTick) { // interval timer is used for system tick set at 5mS SysTick = 0; // clear system tick after it is set in IT interrupt R_WDT_Restart(); // clear watch dog R_ADC_Start(); // start ADC is called every 5 ms, one sample of a cahnnel is read every 5 ms OSMC = 0X90U; /* stops supply to peripheral functions other than RTC and interval timer */ ProcessAnalog(); in Other
$
0
0
I am working on RL78 family with R5F10268 20 pin,8 bit microcontroller. I need to optimize current through snooze mode in code .I need some assistance like sample programs on how to use snooze mode in my program. I have used STOP() function,by implementing this am able to reduce the current to 1mA but adc is not functioning properly. I need to come out of sleep mode using software interval timer. kindly help me on this.  Below is the code  i implemented.........while (1U)    {    // OSMC = 0X90U;  /* stops supply to peripheral functions other than RTC and interval timer */     STOP();     if(SysTick) {      // interval timer is used for system tick set at 5mS   SysTick = 0;     // clear system tick after it is set in IT interrupt     R_WDT_Restart();    // clear watch dog   R_ADC_Start();     // start ADC is called every 5 ms, one sample of a cahnnel is read every 5 ms   OSMC = 0X90U;     /* stops supply to peripheral functions other than RTC and interval timer */     ProcessAnalog(); Kindly help me to reduce  idle current from 4mA to less than 1mA. in Other

Viewing all articles
Browse latest Browse all 59170

Trending Articles