I am using a 32.768Khz sec oscillator with the PIC24fj64ga002 to make use of the RTCC of the PIC. So far my RTCC code is working but I am not able to get my oscillator to work properly. I used an alarm of 1 minute to toggle an led using RTCC but I am getting the RTCC interrupt at around 13sec and thus some error. For the secondary oscillator I have connected it in the required pins of the PIC and enabled it using " OSCCONbits.SOSCEN=1;". Do I need to do anything more to make the sec oscillator to work. I checked the oscillator using a logic analyser but I am not getting any signals. But my led does toggle though the interval when set for 1 minute is giving me only 13 seconds. Even when I test my RTCC code the seconds and minuted seems to be updating at a far greater pace. Please tell me if I should paste my RTCC code. Do tell me if I need to make any changes for setting the Sec oscillator other than the one I had mentioned.
0
There are 0 best solutions below
Related Questions in PIC24
- C - Hertz to Seconds and how to get the proper time for a delay?
- Trouble reading/writing internal EEPROM PIC24F16KA101
- FreeRTOS & PIC24EP & Correct interrupt handling
- PIC24 setting bits in registers
- ACKEN bit on PIC24FJ64GA002 not clearing after acknowledge sequence
- MPLAB IDE x 3.55 best way to include files in project
- How can I return a pointer to registers with different types
- Error: java.io.IOException: read failed, socket might closed or timeout, read ret: -1 when connecting to BLE module (Kotlin)
- PIC24FJ128GA204 can not wake up from deep sleep
- PIC 24F I2C slave issue
- Where is file type mainp24f.c in MPLAB?
- Havig trouble with SPI in PIC24FJ256GB412
- SCPI_ParamString multiple string as input
- PIC24F eeprom and XC16 MPLAB
- PWM settings in PIC24FJ64GA002
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?