Author |
Message |
Topic: UARTs RCIDL stuck low (receiver active) |
RossJ
Replies: 4
Views: 12528
|
Forum: General CCS C Discussion Posted: Thu Jun 25, 2020 2:36 am Subject: UARTs RCIDL stuck low (receiver active) |
Hi Ttelmah,
Thanks for the suggestion. I am not intentionally using ABD... just hard coded 115200. I've checked over the LST file and the only access to the BAUDCON register is to set BRG16 (by set ... |
Topic: UARTs RCIDL stuck low (receiver active) |
RossJ
Replies: 4
Views: 12528
|
Forum: General CCS C Discussion Posted: Wed Jun 24, 2020 5:31 am Subject: UARTs RCIDL stuck low (receiver active) |
Hi all,
I've encountered a problem where the RCIDL flag (BAUDCON) remains stuck in a cleared state after having worked correctly for some period of time. All received bytes have been read and there ... |
Topic: #use spi and PPS settings |
RossJ
Replies: 5
Views: 14120
|
Forum: General CCS C Discussion Posted: Wed Jul 24, 2019 6:56 pm Subject: #use spi and PPS settings |
Hi Ttelmah,
I found a couple of interesting items in the PIC18LF27K40 datasheet...
In Master mode the clock signal output to the SCK pin is also the clock signal input
to the peripheral. The pi ... |
Topic: #use spi and PPS settings |
RossJ
Replies: 5
Views: 14120
|
Forum: General CCS C Discussion Posted: Tue Jul 23, 2019 9:16 pm Subject: #use spi and PPS settings |
Thanks for your help gaugeguy!
It turns out that the two important lines of your code are the #pin_select SCK1OUT and the #use spi. It was the SCK1OUT not being defined that was causing me grief. I ... |
Topic: #use spi and PPS settings |
RossJ
Replies: 5
Views: 14120
|
Forum: General CCS C Discussion Posted: Tue Jul 23, 2019 8:32 am Subject: #use spi and PPS settings |
Hi all,
I'm trying to get an SPI working on the PIC18LF27K40 (PCH 5.082, although I've tried other versions).
#pin_select SDI1 = PIN_B7
#pin_select SDO1 = PIN_C2
#pin_select SCK1IN = PIN_B6
# ... |
Topic: Data Protection (Fuse fault) reset on PIC18LF27K40 |
RossJ
Replies: 11
Views: 24414
|
Forum: General CCS C Discussion Posted: Mon Dec 03, 2018 3:09 am Subject: Data Protection (Fuse fault) reset on PIC18LF27K40 |
I totally agree!
I always expected there to be more than one way to reach this 'non-indication' (no flags set/cleared). As you say, the Data Protection (Fuse Fault) is the only scenario mentioned i ... |
Topic: Data Protection (Fuse fault) reset on PIC18LF27K40 |
RossJ
Replies: 11
Views: 24414
|
Forum: General CCS C Discussion Posted: Sun Dec 02, 2018 6:16 pm Subject: Data Protection (Fuse fault) reset on PIC18LF27K40 |
Thanks Ttelmah. Good point.
After making a few changes (enabling BOR and improving the connections to the battery), I've not observed the spurious/anonymous reset since. I also only saw it with the ... |
Topic: Data Protection (Fuse fault) reset on PIC18LF27K40 |
RossJ
Replies: 11
Views: 24414
|
Forum: General CCS C Discussion Posted: Wed Nov 28, 2018 3:15 am Subject: Data Protection (Fuse fault) reset on PIC18LF27K40 |
Thanks all for the suggestions.
First up, I've found a possible explanation as to how a reset may occur that doesn't change the PCON0 bits. Manually resetting the PIC via the MPLAB-X debug toolbar ... |
Topic: Data Protection (Fuse fault) reset on PIC18LF27K40 |
RossJ
Replies: 11
Views: 24414
|
Forum: General CCS C Discussion Posted: Tue Nov 27, 2018 8:32 am Subject: Data Protection (Fuse fault) reset on PIC18LF27K40 |
Ttelmah,
I considered a jump to zero rather than a reset. However, as outlined in my original post, there are several clear signs that a true reset has occur. For example, the TRISx registers are a ... |
Topic: Data Protection (Fuse fault) reset on PIC18LF27K40 |
RossJ
Replies: 11
Views: 24414
|
Forum: General CCS C Discussion Posted: Tue Nov 27, 2018 12:49 am Subject: Data Protection (Fuse fault) reset on PIC18LF27K40 |
Hi all,
I'm testing a design with a PIC18LF27K40 in the debugger (MPLAB-X/RealICE) from the cof file.
Every so often I am observing what appears to a processor reset but I'm not sure what is trigg ... |
Topic: Disabling UART TX output on a PIC with PPS |
RossJ
Replies: 6
Views: 18651
|
Forum: General CCS C Discussion Posted: Mon Nov 19, 2018 4:13 pm Subject: Disabling UART TX output on a PIC with PPS |
Thanks everyone for your input. Looks like the best available option for me is to set the TX up on a dummy output then relocate it as required. Just seems a little clunky.
(I've been running with 5 ... |
Topic: Disabling UART TX output on a PIC with PPS |
RossJ
Replies: 6
Views: 18651
|
Forum: General CCS C Discussion Posted: Mon Nov 19, 2018 2:38 am Subject: Disabling UART TX output on a PIC with PPS |
I've just begun using the PIC18LF27K40 which is the first chip I've used with PPS. In my design I have a wireless module which can be powered off completely. Consequently, it's critical not to back po ... |
Topic: Stack depth is unexpectedly high |
RossJ
Replies: 3
Views: 8331
|
Forum: General CCS C Discussion Posted: Thu Jan 02, 2014 11:13 pm Subject: Stack depth is unexpectedly high |
Hi guys,
Thanks for your comments and my apologies for taking so long to respond. I have since done further investigation on this and believe I have the issue sorted. I have also realised that I om ... |
Topic: Stack depth is unexpectedly high |
RossJ
Replies: 3
Views: 8331
|
Forum: General CCS C Discussion Posted: Mon Dec 16, 2013 7:31 pm Subject: Stack depth is unexpectedly high |
Hello,
I am looking into why my program compiles very differently for debug or release.
DEBUG RELEASE
Compile time 30sec 180sec
ROM u ... |
Topic: Anonymous unions: working in 3.249 but broken in 4.071 |
RossJ
Replies: 2
Views: 4029
|
Forum: General CCS C Discussion Posted: Sun Nov 22, 2009 2:51 am Subject: Anonymous unions: working in 3.249 but broken in 4.071 |
A similar problem with anonymous struct in a union (4.099 and 4.100). In this case, aaa is located in the same byte as bbb. If the struct is given a name, the problem goes away. I will email CCS suppo ... |
|