Author |
Message |
Topic: Interrupt on Change on DSPIC33CK64MP105 [FIXED BUG V5.096] |
JamesW
Replies: 3
Views: 14501
|
Forum: General CCS C Discussion Posted: Fri Nov 13, 2020 4:26 am Subject: Interrupt on Change on DSPIC33CK64MP105 [FIXED BUG V5.096] |
You are right. (as always!)
Spoke to Richard @ CCS last night, and had this reply.
So I determined that the problem is an error in the enable_interrupts() function when INTR_CN_PIN or'd with t ... |
Topic: Interrupt on Change on DSPIC33CK64MP105 [FIXED BUG V5.096] |
JamesW
Replies: 3
Views: 14501
|
Forum: General CCS C Discussion Posted: Thu Nov 12, 2020 11:09 am Subject: Interrupt on Change on DSPIC33CK64MP105 [FIXED BUG V5.096] |
Hi Folks,
Sometimes the simplest things seem to be the hardest.
I am trying to generate an interrupt on change from PIN_D13 on the DSPIC33CK64MP105. (Using Compiler V5.096)
To enable it I ... |
Topic: can h/w uart be configured to only use tx? |
JamesW
Replies: 6
Views: 15226
|
Forum: General CCS C Discussion Posted: Tue Jun 11, 2019 7:17 am Subject: can h/w uart be configured to only use tx? |
In fact I have a couple more questions, firstly it's the receive pin of the UART that I want to disable not the transmit - is there a bit to disable the UART RX PIN.
The pin I want to un-select, is ... |
Topic: can h/w uart be configured to only use tx? |
JamesW
Replies: 6
Views: 15226
|
Forum: General CCS C Discussion Posted: Tue Jun 11, 2019 7:13 am Subject: can h/w uart be configured to only use tx? |
Thanks - I will give it a go once my board is built, and report back.
Cheers
James |
Topic: can h/w uart be configured to only use tx? |
JamesW
Replies: 6
Views: 15226
|
Forum: General CCS C Discussion Posted: Tue Jun 11, 2019 6:31 am Subject: can h/w uart be configured to only use tx? |
Thanks - I will try it.
However I need to do the same for the UART as well, as I want TX only. Can this be achieved using something similar
James |
Topic: can h/w uart be configured to only use tx? |
JamesW
Replies: 6
Views: 15226
|
Forum: General CCS C Discussion Posted: Tue Jun 11, 2019 5:15 am Subject: can h/w uart be configured to only use tx? |
Hi Folks,
I've got a product I designed a couple of years ago, that I now need to design an expansion board for. I've only got a limited number of pins on the expansion port.
I'm using a PIC24F ... |
Topic: If I wanted to do a bootloader on a PIC24 - what choices? |
JamesW
Replies: 3
Views: 12092
|
Forum: General CCS C Discussion Posted: Wed Sep 26, 2018 8:28 am Subject: If I wanted to do a bootloader on a PIC24 - what choices? |
Hi Folks,
Hypothetical question. I've got a PIC24 in a system running great, and doing just what I need it to. It's connected via a modem to a web server that we've also created and all is hunky ... |
Topic: Wake result from Deep Sleep on PIC24FJ128GA204 |
JamesW
Replies: 21
Views: 44064
|
Forum: General CCS C Discussion Posted: Thu Sep 20, 2018 11:14 am Subject: Wake result from Deep Sleep on PIC24FJ128GA204 |
Found it! In order to debug what the deep sleep current of the processor was and get it as low as possible, I fitted a jumper link to to the VCC supply of the processor. This meant I could wire in a ... |
Topic: Wake result from Deep Sleep on PIC24FJ128GA204 |
JamesW
Replies: 21
Views: 44064
|
Forum: General CCS C Discussion Posted: Tue Sep 18, 2018 5:33 am Subject: Wake result from Deep Sleep on PIC24FJ128GA204 |
I am running the RTC on the internal oscillator (SOSC pins are I/O but not connected).
setup as below.
/* TURN ON AND RESET THE CLOCK */
setup_rtc(RTC_ENABLE|RTC_CLOCK_INT , 0); ... |
Topic: Wake result from Deep Sleep on PIC24FJ128GA204 |
JamesW
Replies: 21
Views: 44064
|
Forum: General CCS C Discussion Posted: Mon Sep 17, 2018 11:49 am Subject: Wake result from Deep Sleep on PIC24FJ128GA204 |
And after a triple check, without these two lines in the code it won't reliably start up and frequently locks up taking about 820uA and the only way to recover is a hardware reset!
With this as a s ... |
Topic: Wake result from Deep Sleep on PIC24FJ128GA204 |
JamesW
Replies: 21
Views: 44064
|
Forum: General CCS C Discussion Posted: Mon Sep 17, 2018 11:45 am Subject: Wake result from Deep Sleep on PIC24FJ128GA204 |
OK - I am moving forwards, albeit in a somewhat fumbling manner !
With a bit of tinkering to my main() I've got it to a stage where it reliably restarts from deep sleep for both the EXT0 or the RTC ... |
Topic: Wake result from Deep Sleep on PIC24FJ128GA204 |
JamesW
Replies: 21
Views: 44064
|
Forum: General CCS C Discussion Posted: Mon Sep 17, 2018 9:32 am Subject: Wake result from Deep Sleep on PIC24FJ128GA204 |
RTCC still has no real effect |
Topic: Wake result from Deep Sleep on PIC24FJ128GA204 |
JamesW
Replies: 21
Views: 44064
|
Forum: General CCS C Discussion Posted: Mon Sep 17, 2018 9:31 am Subject: Wake result from Deep Sleep on PIC24FJ128GA204 |
This gets even stranger, I have now amended my main code to look like this (declaring both registers and then reading them, then forcing a clear of the release bit.
/* MAIN CODE */
void main ... |
Topic: Wake result from Deep Sleep on PIC24FJ128GA204 |
JamesW
Replies: 21
Views: 44064
|
Forum: General CCS C Discussion Posted: Mon Sep 17, 2018 8:57 am Subject: Wake result from Deep Sleep on PIC24FJ128GA204 |
However I can report that neither of those has made any difference to how it works - and it still half wakes up when the RTC interrupts the system and then the power drops - and then says it wasn't wo ... |
Topic: Wake result from Deep Sleep on PIC24FJ128GA204 |
JamesW
Replies: 21
Views: 44064
|
Forum: General CCS C Discussion Posted: Mon Sep 17, 2018 8:55 am Subject: Wake result from Deep Sleep on PIC24FJ128GA204 |
However if I declare the start of main like this instead. . . .
/* MAIN CODE */
void main()
{
UI_16 RConRegister;
RConRegister = RCON_REG;
/* STAGE 1 - READ THE ... |
|