Author |
Message |
Topic: Forcing I2C to Hang |
SteveW
Replies: 11
Views: 26689
|
Forum: General CCS C Discussion Posted: Fri Apr 20, 2018 10:26 am Subject: Forcing I2C to Hang |
Got it, thanks. |
Topic: Class-B Safety Software Library |
SteveW
Replies: 0
Views: 6665
|
Forum: General CCS C Discussion Posted: Thu Apr 19, 2018 9:55 pm Subject: Class-B Safety Software Library |
Microchip has a library of CPU self-test functions that I would like to use. However, they are written for their compiler, and thus reference files (headers and perhaps others) apparently applicable ... |
Topic: Forcing I2C to Hang |
SteveW
Replies: 11
Views: 26689
|
Forum: General CCS C Discussion Posted: Thu Apr 19, 2018 9:45 pm Subject: Forcing I2C to Hang |
Thank you both. I have only seen the data line getting stuck low. For now I will simply add a routine to look for the data line low and try clocking it to recover, and hope for the best. |
Topic: Forcing I2C to Hang |
SteveW
Replies: 11
Views: 26689
|
Forum: General CCS C Discussion Posted: Fri Apr 13, 2018 6:52 pm Subject: Forcing I2C to Hang |
PCM Programmer - Thank you for the detailed response. I should have mentioned that I am using a hardware I2C interface. I will take a hard look at using your code in a function to solely create an err ... |
Topic: Forcing I2C to Hang |
SteveW
Replies: 11
Views: 26689
|
Forum: General CCS C Discussion Posted: Fri Apr 13, 2018 12:01 pm Subject: Forcing I2C to Hang |
I have added a routine in the master to detect and recover from SDA getting stuck low due to a problem with a slave peripheral, as I have had this happen occasionally. How do I force the problem from ... |
Topic: 24FJ256GB406 USB Unplugged Detection |
SteveW
Replies: 5
Views: 19129
|
Forum: General CCS C Discussion Posted: Wed Sep 28, 2016 4:08 pm Subject: 24FJ256GB406 USB Unplugged Detection |
Vusb is connected to Vdd, 3.0V, power on the board. This is exactly per figure 20-3, Self-Power Only, on the data sheet. |
Topic: 24FJ256GB406 USB Unplugged Detection |
SteveW
Replies: 5
Views: 19129
|
Forum: General CCS C Discussion Posted: Tue Sep 27, 2016 5:59 pm Subject: 24FJ256GB406 USB Unplugged Detection |
Ttelmah: My first reaction was indeed to go back to the old compiler, but upon seeing the resulting error message I quickly remembered that the reason for my going to the new compiler was that the old ... |
Topic: 24FJ256GB406 USB Unplugged Detection |
SteveW
Replies: 5
Views: 19129
|
Forum: General CCS C Discussion Posted: Mon Sep 26, 2016 11:03 pm Subject: 24FJ256GB406 USB Unplugged Detection |
I am using a 24FJ256GB406 with HID operation with CCS 5.62. The PC recognizes the device, and my circuit recognizes that connection and communications is fine. The problem is that when the connection ... |
Topic: Pointer Warning without Clear Reason |
SteveW
Replies: 7
Views: 20998
|
Forum: General CCS C Discussion Posted: Tue May 17, 2016 3:44 pm Subject: Pointer Warning without Clear Reason |
Thanks to all for your help. I thought that passing an array really passed an array, so that the size information was conveyed. The other compilers that I use don't complain, and "passing" a ... |
Topic: Pointer Warning without Clear Reason |
SteveW
Replies: 7
Views: 20998
|
Forum: General CCS C Discussion Posted: Thu May 12, 2016 3:39 pm Subject: Pointer Warning without Clear Reason |
I just started using 5.058 and am getting Warning#240 like others have mentioned. I have no problem with ignoring the warnings, or disabling them, but only after I fully understand the reason for such ... |
Topic: PCD manual error? |
SteveW
Replies: 5
Views: 10054
|
Forum: General CCS C Discussion Posted: Fri Oct 04, 2013 11:33 am Subject: PCD manual error? |
I have gotten in trouble so many times with this issue with the CCS compilers that I now always clearly define all variables (i.e., "unsigned int16" or "signed int8", never simply ... |
Topic: Waking from sleep |
SteveW
Replies: 5
Views: 8856
|
Forum: General CCS C Discussion Posted: Fri Oct 04, 2013 11:24 am Subject: Waking from Sleep - Update |
In my last post in this thread I stated something that turns out to be only partially true. Per the data sheet for PIC24FJ256GB110 series of parts:
9.2.1 SLEEP MODE
...On wake-up from Sleep, the p ... |
Topic: Waking from sleep |
SteveW
Replies: 5
Views: 8856
|
Forum: General CCS C Discussion Posted: Sun Sep 22, 2013 12:55 pm Subject: Waking from sleep |
Yes, I had trouble with global and static variables losing their values, and this situation appeared to be inconsistent. I now re-initialize everything upon waking, and save/restore parameters to/from ... |
Topic: Waking from sleep |
SteveW
Replies: 5
Views: 8856
|
Forum: General CCS C Discussion Posted: Wed Sep 18, 2013 5:43 pm Subject: Waking from sleep |
Yes, the PIC24FJ-series parts act a bit differently from the some other versions. It sounds like you are waking from "sleep full", which results in essentially a power-up boot. If you select ... |
Topic: PIC24 USB HID "Interrupts Disabled" Warnings |
SteveW
Replies: 2
Views: 4727
|
Forum: General CCS C Discussion Posted: Thu Jun 13, 2013 9:13 pm Subject: PIC24 USB HID "Interrupts Disabled" Warnings |
PCM programmer: Thanks for the response. I was hoping that the answer was along the lines of what you pointed me to. |
|