Author |
Message |
Topic: Built in RTC / SOSC on PIC24 - What's the secret? |
evan
Replies: 15
Views: 36421
|
Forum: General CCS C Discussion Posted: Tue Sep 11, 2018 8:09 am Subject: Built in RTC / SOSC on PIC24 - What's the secret? |
Thanks for the help guys. |
Topic: Library and example for RFM69W module |
evan
Replies: 5
Views: 50065
|
Forum: Code Library Posted: Tue Sep 11, 2018 8:04 am Subject: Library and example for RFM69W module |
Hi, the link is dead :( Any chance you can post the code? |
Topic: Built in RTC / SOSC on PIC24 - What's the secret? |
evan
Replies: 15
Views: 36421
|
Forum: General CCS C Discussion Posted: Fri Aug 24, 2018 6:49 am Subject: Built in RTC / SOSC on PIC24 - What's the secret? |
Thanks again for the help, I appreciate it. It just can be frustrating, you can see what you want to do from the datasheet but finding out how (or even if) CCS have implemented it is rarely obvious. ... |
Topic: Built in RTC / SOSC on PIC24 - What's the secret? |
evan
Replies: 15
Views: 36421
|
Forum: General CCS C Discussion Posted: Fri Aug 24, 2018 6:27 am Subject: Built in RTC / SOSC on PIC24 - What's the secret? |
After more guessing, it turns out that the trick is to put "SOSC_SEL" in the #fuses line. Not SOSC.
Thanks Jay for the hint, but apart from that it was trial and error. I thought I was lo ... |
Topic: Built in RTC / SOSC on PIC24 - What's the secret? |
evan
Replies: 15
Views: 36421
|
Forum: General CCS C Discussion Posted: Fri Aug 24, 2018 5:45 am Subject: Built in RTC / SOSC on PIC24 - What's the secret? |
You are right - the RTCC can definitely get its clock source from the SOSC - the diagram is in the datasheet page 276: http://ww1.microchip.com/downloads/en/DeviceDoc/30009996g.pdf
And I have guess ... |
Topic: Built in RTC / SOSC on PIC24 - What's the secret? |
evan
Replies: 15
Views: 36421
|
Forum: General CCS C Discussion Posted: Fri Aug 24, 2018 5:03 am Subject: Built in RTC / SOSC on PIC24 - What's the secret? |
While I don't use that PIC..
the 'trick' would be to select the correct FUSE and to enable the SOSC to use an external xtal/cap on the pins.
perhaps use the search button (top of the page) and lo ... |
Topic: Built in RTC / SOSC on PIC24 - What's the secret? |
evan
Replies: 15
Views: 36421
|
Forum: General CCS C Discussion Posted: Fri Aug 24, 2018 3:21 am Subject: Built in RTC / SOSC on PIC24 - What's the secret? |
To clarify: the RTCC is working with the internal oscillator, which I tried as a test. I don't want to use the internal oscillator, so I don't care that it's fast.
I can't get the secondary oscill ... |
Topic: Built in RTC / SOSC on PIC24 - What's the secret? |
evan
Replies: 15
Views: 36421
|
Forum: General CCS C Discussion Posted: Thu Aug 23, 2018 4:35 pm Subject: Built in RTC / SOSC on PIC24 - What's the secret? |
Update:
I changed the setup_rtc line to add RTC_CLOCK_INT, and now the clock is actually running! Albeit a bit fast.
OK, may I change my question to: please help me debug the secondary oscillator ... |
Topic: Built in RTC / SOSC on PIC24 - What's the secret? |
evan
Replies: 15
Views: 36421
|
Forum: General CCS C Discussion Posted: Thu Aug 23, 2018 4:12 pm Subject: Built in RTC / SOSC on PIC24 - What's the secret? |
Hi all,
A new challenge, I am using PIC24FJ128GA310 which has the built in RTCC, and I have placed a 32.768kHz secondary oscillator and backup battery to run it.
I am running ex.rtcc with just the ... |
Topic: PWM with PIC24FJ128GA310 |
evan
Replies: 7
Views: 24650
|
Forum: General CCS C Discussion Posted: Mon Jun 04, 2018 4:05 pm Subject: PWM with PIC24FJ128GA310 |
Right, further investigation.
The bottom line is, the example is no use for the output compare modules on this chip.
It can now generate PWM by itself based on the main clock, no need to use a ti ... |
Topic: PWM with PIC24FJ128GA310 |
evan
Replies: 7
Views: 24650
|
Forum: General CCS C Discussion Posted: Mon Jun 04, 2018 2:31 pm Subject: PWM with PIC24FJ128GA310 |
OK, that thread helped... Thanks.
Interrupts for the timer have to be turned on, it does say that in the datasheet but it wasn't in the example so I missed it.
Now I can change the period. Howev ... |
Topic: PWM with PIC24FJ128GA310 |
evan
Replies: 7
Views: 24650
|
Forum: General CCS C Discussion Posted: Mon Jun 04, 2018 12:18 pm Subject: PWM with PIC24FJ128GA310 |
Look at the PCD PWM example file. It shows how to set this up. Don't get confused by the old PIC16/18 difference, that the timer period is 4* the PWM period, on these chips they use the same units.
... |
Topic: PWM with PIC24FJ128GA310 |
evan
Replies: 7
Views: 24650
|
Forum: General CCS C Discussion Posted: Mon Jun 04, 2018 11:08 am Subject: PWM with PIC24FJ128GA310 |
Hi all,
I am stuck trying to set up PWM on a PIC24FJ128GA310.
This has 5 output compare channels and also 5 timers.
A PWM output is generated but I can't change the period. For example a duty of ... |
Topic: Loader fun! |
evan
Replies: 9
Views: 11827
|
Forum: General CCS C Discussion Posted: Thu Jul 23, 2015 5:21 pm Subject: Loader fun! |
Temtronic, no, that's why I upgraded (after reading some comments here about flash write problems with the version I had!)
PCM programmer: the small test program .hex works fine if I load it using ... |
Topic: Loader fun! |
evan
Replies: 9
Views: 11827
|
Forum: General CCS C Discussion Posted: Thu Jul 23, 2015 3:15 pm Subject: Loader fun! |
Hi all,
I'm struggling with a loader issue on PIC16LF1519. I've updated my CCS compiler just today (Version 5.048)
Because my application communicates using a GSM modem, I decided not to have a ... |
|