Author |
Message |
Topic: My RTCC can't keep its time when VDD shutdown |
BeeElectronic
Replies: 36
Views: 59419
|
Forum: General CCS C Discussion Posted: Mon Sep 09, 2019 10:18 am Subject: My RTCC can't keep its time when VDD shutdown |
This ribbon cable is not only for debugging but also for industrial programming and testing for us and the customers. The connector is from Wurth and
it is quite similar to the TAG CONNECT in its us ... |
Topic: My RTCC can't keep its time when VDD shutdown |
BeeElectronic
Replies: 36
Views: 59419
|
Forum: General CCS C Discussion Posted: Fri Sep 06, 2019 8:32 am Subject: My RTCC can't keep its time when VDD shutdown |
I think I found something:
I have 2 ways to power supply my board:
- 1 by the normal way: 2 faston +12V/GND (come from laboratory PSU)
- 2 by my debugging board which include FT232 / 12VDC PSU fr ... |
Topic: My RTCC can't keep its time when VDD shutdown |
BeeElectronic
Replies: 36
Views: 59419
|
Forum: General CCS C Discussion Posted: Fri Sep 06, 2019 2:47 am Subject: My RTCC can't keep its time when VDD shutdown |
He didn't mean to try it without PUT. He wondered if you had it at all.
I would try it with PUT_64MS.
Same with PUT_64MS. |
Topic: My RTCC can't keep its time when VDD shutdown |
BeeElectronic
Replies: 36
Views: 59419
|
Forum: General CCS C Discussion Posted: Fri Sep 06, 2019 1:13 am Subject: My RTCC can't keep its time when VDD shutdown |
Same without PUT... |
Topic: My RTCC can't keep its time when VDD shutdown |
BeeElectronic
Replies: 36
Views: 59419
|
Forum: General CCS C Discussion Posted: Fri Sep 06, 2019 1:08 am Subject: My RTCC can't keep its time when VDD shutdown |
I don't think I have any problem with my power supply because this PSU is common for a lot of our projects and we have certification for it.
I can't have board layout issue because I use a 4 layers ... |
Topic: My RTCC can't keep its time when VDD shutdown |
BeeElectronic
Replies: 36
Views: 59419
|
Forum: General CCS C Discussion Posted: Fri Sep 06, 2019 1:01 am Subject: My RTCC can't keep its time when VDD shutdown |
That is interesting. Suggests it is the period spent in the transition
(deciding whether to switch to battery or not), that is causing the issue.
Do you have the brownout enabled?. What voltage it ... |
Topic: My RTCC can't keep its time when VDD shutdown |
BeeElectronic
Replies: 36
Views: 59419
|
Forum: General CCS C Discussion Posted: Thu Sep 05, 2019 8:06 am Subject: My RTCC can't keep its time when VDD shutdown |
The last one I use is the STM32F746BET6. On the "Power supply scheme" they don't use capacitor on Vbat. On my biggest STM32 dev board, STM3240G-EVAL, they don't use capacitor on Vbat.
Do ... |
Topic: My RTCC can't keep its time when VDD shutdown |
BeeElectronic
Replies: 36
Views: 59419
|
Forum: General CCS C Discussion Posted: Thu Sep 05, 2019 5:49 am Subject: My RTCC can't keep its time when VDD shutdown |
Thanks for your time PCM programmer and Ttelmah but I will not use the internal RTCC because of the poor reliability. |
Topic: My RTCC can't keep its time when VDD shutdown |
BeeElectronic
Replies: 36
Views: 59419
|
Forum: General CCS C Discussion Posted: Thu Sep 05, 2019 4:02 am Subject: My RTCC can't keep its time when VDD shutdown |
I never use an internal RTCC with a PIC but regularity with STM32.
On STM32 I used ST never put a capacitor on Vbat pin.
I don't find this information on the PIC16F19176 datasheet but I tried with ... |
Topic: My RTCC can't keep its time when VDD shutdown |
BeeElectronic
Replies: 36
Views: 59419
|
Forum: General CCS C Discussion Posted: Thu Sep 05, 2019 3:06 am Subject: My RTCC can't keep its time when VDD shutdown |
Seriously there should not be any detectable ripple on the Vbat connection. 2 or 3mV at most.
-> yes I have ripple on Vbat juste enough for stop my scope with a 2.9V trig level, this is the MCU r ... |
Topic: My RTCC can't keep its time when VDD shutdown |
BeeElectronic
Replies: 36
Views: 59419
|
Forum: General CCS C Discussion Posted: Thu Sep 05, 2019 2:08 am Subject: My RTCC can't keep its time when VDD shutdown |
In some case even if I don't run the setup_rtc function my RTCC restart at 00:00:00 in case of a 0x0B3C restart cause...
I migrate from a PIC16F1936 + DS1307 to this PIC16F19176 with internal RTCC, ... |
Topic: My RTCC can't keep its time when VDD shutdown |
BeeElectronic
Replies: 36
Views: 59419
|
Forum: General CCS C Discussion Posted: Thu Sep 05, 2019 1:45 am Subject: My RTCC can't keep its time when VDD shutdown |
This Microchip forum thread may be useful:
https://www.microchip.com/forums/m926122.aspx
I add this setup code:
if(res == 0x0F3C)
{
setup_rtc(RTC_ENABLE | RTC_CLOCK ... |
Topic: My RTCC can't keep its time when VDD shutdown |
BeeElectronic
Replies: 36
Views: 59419
|
Forum: General CCS C Discussion Posted: Wed Sep 04, 2019 8:50 am Subject: My RTCC can't keep its time when VDD shutdown |
I lost my time, during a switch off, only if my restart cause is:
0x0B3C
0x0B34
And never with this restart causes:
0x0F36
0x0F3C
For the PIC16F19176:
#define NORMAL_POWER_UP 0xF3C
# ... |
Topic: My RTCC can't keep its time when VDD shutdown |
BeeElectronic
Replies: 36
Views: 59419
|
Forum: General CCS C Discussion Posted: Wed Sep 04, 2019 7:34 am Subject: My RTCC can't keep its time when VDD shutdown |
PCM programmer:
I try you little code. Now my RTCC start working after a 'Y' with my custom date and time or 'N' with default date and time.
The only difference with my code was my reaction time. ... |
Topic: My RTCC can't keep its time when VDD shutdown |
BeeElectronic
Replies: 36
Views: 59419
|
Forum: General CCS C Discussion Posted: Tue Sep 03, 2019 8:29 am Subject: My RTCC can't keep its time when VDD shutdown |
shouldn't set_clock(write_clock); be set_clock(&write_clock); instead?
Nope... |
|