Author |
Message |
Topic: Sleep on pic24 with RTCC not working |
JMarysse
Replies: 19
Views: 40664
|
Forum: General CCS C Discussion Posted: Wed Nov 01, 2017 4:34 am Subject: Sleep on pic24 with RTCC not working |
Hi temtronic,
Thanks for this, we will keep this in mind when we start the redesign. |
Topic: Sleep on pic24 with RTCC not working |
JMarysse
Replies: 19
Views: 40664
|
Forum: General CCS C Discussion Posted: Tue Oct 31, 2017 8:10 am Subject: Sleep on pic24 with RTCC not working |
Hi Ttelmah, temtronic,
I just made it work by indeed setting the fuses FRC_PLL and PLL2, and set the "use delay(clock=32M,internal,restart_wdt).
But you both are correct, we will need to re ... |
Topic: Sleep on pic24 with RTCC not working |
JMarysse
Replies: 19
Views: 40664
|
Forum: General CCS C Discussion Posted: Tue Oct 31, 2017 7:44 am Subject: Sleep on pic24 with RTCC not working |
Hello,
Thanks for your replies!
So we will need to add an external xtal.
No way to do it with the 8 MHz internal one, not even if using the PLL? |
Topic: Sleep on pic24 with RTCC not working |
JMarysse
Replies: 19
Views: 40664
|
Forum: General CCS C Discussion Posted: Tue Oct 31, 2017 3:50 am Subject: Sleep on pic24 with RTCC not working |
New question : we need to communicate with a NINA-B112 module trough the UART.
Problem is that the modules uart is default set at 115200.
We use the INTERNAL 8Mhz osc and the compiler does NOT allow ... |
Topic: Sleep on pic24 with RTCC not working |
JMarysse
Replies: 19
Views: 40664
|
Forum: General CCS C Discussion Posted: Mon Oct 30, 2017 4:39 am Subject: Sleep on pic24 with RTCC not working |
Hi Ttelmah,
The problem is solved.
I did not read your mail very well (monday morning...)
I changed the following line :
setup_rtc(RTC_ENABLE | RTC_CLOCK_INTERNAL | RTC_CLK_DIV_BY_256,78 ... |
Topic: Sleep on pic24 with RTCC not working |
JMarysse
Replies: 19
Views: 40664
|
Forum: General CCS C Discussion Posted: Mon Oct 30, 2017 4:01 am Subject: Sleep on pic24 with RTCC not working |
Hi Ttelmah,
I did 2 tests:
=> 1 with rtc_int routine
=> 1 with sleep.
The result is that in test 1 the RTC is running perfect, in test 2 it is indeed very slow...and is also it is the WD ... |
Topic: Sleep on pic24 with RTCC not working |
JMarysse
Replies: 19
Views: 40664
|
Forum: General CCS C Discussion Posted: Sat Oct 28, 2017 1:49 am Subject: Sleep on pic24 with RTCC not working |
Hi Ttelmah,
Thank you for this info!
I will check/change this on Monday and keep you informed.
Have a nice weekend. |
Topic: Sleep on pic24 with RTCC not working |
JMarysse
Replies: 19
Views: 40664
|
Forum: General CCS C Discussion Posted: Fri Oct 27, 2017 12:41 pm Subject: Sleep on pic24 with RTCC not working |
Hi temtronic,
Thanks for your answer.
1. if i don't use the sleep function, the RTC is running well.
2. if i disable the WDT, then the PIC does NOT wakeup anymore
3. i use the PicKit3. |
Topic: Sleep on pic24 with RTCC not working |
JMarysse
Replies: 19
Views: 40664
|
Forum: General CCS C Discussion Posted: Fri Oct 27, 2017 6:13 am Subject: Sleep on pic24 with RTCC not working |
I want to wakeup the pic every 10 seconds.
This is what i see on the terminal:
Program started
Friday 27/10/2017 09:02:00
Wakeup from sleep => after ±4 seconds
Friday 27/10/2017 09:02:00
Wak ... |
|