Author |
Message |
Topic: Cant figure why code goes off into the weeds |
dluu13
Replies: 8
Views: 24644
|
Forum: General CCS C Discussion Posted: Wed Aug 11, 2021 2:34 pm Subject: Cant figure why code goes off into the weeds |
Regarding clock options, I just got this article in the newsletter the other day: http://www.ccsinfo.com/newsdesk_info.php?newsPath=ALL&newsdesk_id=247 |
Topic: CCS Gray Out Inactive Section Conditional Compilation |
dluu13
Replies: 2
Views: 13112
|
Forum: General CCS C Discussion Posted: Tue Jul 27, 2021 1:54 pm Subject: CCS Gray Out Inactive Section Conditional Compilation |
Do you mean inactive due to preprocessor directives?
I'm not sure about the CCS IDE but CCS compiler integrates pretty well with MPLAB X and that will grey out inactive sections by default. |
Topic: IDE error messages |
dluu13
Replies: 7
Views: 23358
|
Forum: General CCS C Discussion Posted: Mon Jul 19, 2021 7:21 am Subject: IDE error messages |
Taking a wild guess here: You need to use #pin_select |
Topic: ADC error PIC18F25Q10T // CCS C ver 5.104 |
dluu13
Replies: 4
Views: 16930
|
Forum: General CCS C Discussion Posted: Tue Jun 22, 2021 7:01 pm Subject: ADC error PIC18F25Q10T // CCS C ver 5.104 |
It's possible that the header file or the setup function has some mistakes.
I had an issue in 5.103 with my MCU (PIC24FJ256GL408) and it's ADC too.
Since you were able to make it work by setting t ... |
Topic: Dec to Hex - Merge Digits to a Num |
dluu13
Replies: 6
Views: 19423
|
Forum: General CCS C Discussion Posted: Sat May 15, 2021 2:28 pm Subject: Dec to Hex - Merge Digits to a Num |
Are you trying to store each hex digit as an element of an array? |
Topic: Modbus - Exception 0C |
dluu13
Replies: 2
Views: 15821
|
Forum: General CCS C Discussion Posted: Wed May 12, 2021 7:09 pm Subject: Modbus - Exception 0C |
If you look at the github you posted, there are pictures there with a RS485 transceiver. I've also only ever used the modbus 485 library with the transceiver in there. I cannot be sure that without th ... |
Topic: Problem with interrupts disabled to prevent re-entrancy |
dluu13
Replies: 6
Views: 19952
|
Forum: General CCS C Discussion Posted: Wed May 05, 2021 7:25 am Subject: Problem with interrupts disabled to prevent re-entrancy |
I also noticed you have divisions in your ISR.
This has caused problems in my ISRs before so just be careful. |
Topic: Modbus master RTU issue with long distance |
dluu13
Replies: 21
Views: 56357
|
Forum: General CCS C Discussion Posted: Tue May 04, 2021 10:16 am Subject: Modbus master RTU issue with long distance |
Your master is in the middle of the string?
I think that modbus/rs485 suggests putting your master at the end. |
Topic: Modbus master RTU issue with long distance |
dluu13
Replies: 21
Views: 56357
|
Forum: General CCS C Discussion Posted: Tue May 04, 2021 9:43 am Subject: Modbus master RTU issue with long distance |
When you have long cables, the cables themselves and the terminations
become more important.
Do you have the 120 ohm terminators at the end of the lines at the master
and the last slave? Are yo ... |
Topic: #USE TIMER and the ISR |
dluu13
Replies: 12
Views: 31294
|
Forum: General CCS C Discussion Posted: Sun May 02, 2021 10:54 am Subject: #USE TIMER and the ISR |
Sadly, there aren't many PICs with a built in CAN controller...
I use the MCP2515 with the CCS driver for it when I need it though. |
Topic: #USE TIMER and the ISR |
dluu13
Replies: 12
Views: 31294
|
Forum: General CCS C Discussion Posted: Sun May 02, 2021 10:39 am Subject: #USE TIMER and the ISR |
Are you locked into using this MCU? Having only one timer feels very restrictive. |
Topic: RTCC not incrementing |
dluu13
Replies: 7
Views: 19632
|
Forum: General CCS C Discussion Posted: Thu Apr 29, 2021 1:27 pm Subject: RTCC not incrementing |
I find the users here to be very friendly compared to some other online
support forums out there, to name one thing... |
Topic: RTCC not incrementing |
dluu13
Replies: 7
Views: 19632
|
Forum: General CCS C Discussion Posted: Thu Apr 29, 2021 10:56 am Subject: RTCC not incrementing |
Somewhere in the code library there's a "software RTC" that somebody
coded up that you can just drop in. It's not as accurate as running the RTC
from a 32.768 kHz crystal, but if you can ... |
Topic: RTCC not incrementing |
dluu13
Replies: 7
Views: 19632
|
Forum: General CCS C Discussion Posted: Thu Apr 29, 2021 8:54 am Subject: RTCC not incrementing |
It looks like the reason why you can't use RTC_CLOCK_INT is because you
don't have that option in your header file.
Reading your device's datasheet, RTC appears to take its clock source from
Ti ... |
Topic: Max number of s/w I2C |
dluu13
Replies: 5
Views: 16940
|
Forum: General CCS C Discussion Posted: Tue Apr 27, 2021 2:07 pm Subject: Max number of s/w I2C |
Thanks for the heads-up
However, this is going to be a one-off thing. Might even be just plugged into a solderless breadboard and put into a box. |
|