Hi,
I am using R5F10BGG microcontroller, I want to run the Timer RJ unit at lower frequency of 15K HZ. I configured the register which is generated through the Applilet by selecting the mode-->count mode, frequency FIL at 1ms. Now if I integrate with my project, I am not getting interrupt which is suppose to give interrupt after TRJ0 register under flows . If I run the timer RJ at FCKL (main On Chip Clock) clock it is generating the interrupt at 1ms. So what would be the reason for this (which is not giving interrupt at FIL) please suggest.
Regards,
Rahut Patil
Which manual do you use?
My manual (V.2.10, R01UH0368EJ0210, page 417) says WUTMMCK0 is "1" for low-sped on-chip oscillator on.
www.renesas.com/.../r01uh0368ej0210_rl78f13_14.pdf
And it says that WUTMMCKO and SELLOSC both have to be set to "0" to stop the low-speed on-chip oscillator.
Hi all,
Now I am able to get the interrupt at every 1ms after executing the stop mode.
To run the timer RJ unit at low frequency when the controller is in sleep mode, i have to enable the low frequency clock.
i.e .need to configure the OSMC register to 0x10. to enable WUTMMCKO register.
Datasheet--> r01uh0368ej0210_rl78f13_14. In this refer page no. 385.
void R_TMR_RJ0_Create(void)
{
OSMC = 0x10; // to enable low frequency clock
TRJ0EN = 1U; /* enable input clock supply */
TRJCR0 &= (u8)~_01_TMRJ_COUNT_START; /* disable TMRJ0 operation */
TRJMK0 = 1U; /* disable INTTRJ0 interrupt */
TRJIF0 = 0U; /* clear INTTRJ0 interrupt flag */
/* Set INTTRJ0 low priority */
TRJPR10 = 0U;
TRJPR00 = 1U;
TRJMR0 = _00_TMRJ_MODE_TIMER | _40_TMRJ_COUNT_SOURCE_FIL;
TRJIOC0 = _00_TMRJ_TRJIOC_INITIAL_VALUE;
TRJ0 = _000E_TMRJ_TRJ0_VALUE;
}
Now i want to run my timer RJ unit in sleep mode after executing the STOP () function. I want to reduce controller's current consumption to micro Amp and parallely i want to run my timer RJ unit also. Now I am getting current reduction of only 3 mili Amp. i.e 23 mili Amp to 20 mili Amp.
Best Regards,
Rawootray Patil.