Author |
Message |
Topic: "getenv" doesn't know all the CLC register names |
waffles
Replies: 8
Views: 1398
|
Forum: General CCS C Discussion Posted: Tue Oct 22, 2024 2:14 pm Subject: "getenv" doesn't know all the CLC register names |
After looking at the datasheet for the 16F18124 I'm not sure what the issue is?
It doesn't have distinct registers for each module - you select what CLC you want to configure via the CLCSELECT regi ... |
Topic: CAN message interrupts stop after first interrupt serviced |
waffles
Replies: 22
Views: 12909
|
Forum: General CCS C Discussion Posted: Mon May 20, 2024 7:34 pm Subject: CAN message interrupts stop after first interrupt serviced |
I'm not familiar with how CAN works on that PIC, but there's possibly ramifications to doing debug prints inside the interrupt with the current setup?
I see that you have 'TXISR' set in the #use st ... |
Topic: serial transmit data truncation 16F18855 |
waffles
Replies: 25
Views: 16681
|
Forum: General CCS C Discussion Posted: Mon Feb 19, 2024 1:58 pm Subject: serial transmit data truncation 16F18855 |
Have you tried removing DISABLE_INTS from your #USE RS232 definition? |
Topic: Are there advantages to using a hardware CRC? |
waffles
Replies: 2
Views: 4434
|
Forum: General CCS C Discussion Posted: Wed Nov 29, 2023 2:13 pm Subject: Are there advantages to using a hardware CRC? |
Less program space is used.
Some PICs allow to you to perform a scan/calculation in the background, throwing an interrupt when complete. |
Topic: Zero Crossing detection fluctuations |
waffles
Replies: 17
Views: 32048
|
Forum: General CCS C Discussion Posted: Wed Mar 01, 2023 3:24 pm Subject: Zero Crossing detection fluctuations |
That's one of the benefits when using chips that feature the vectored interrupt controller - there's no need to scan for the interrupt source, so the only block of (hopefully fixed) latency is saving ... |
Topic: Zero Crossing detection fluctuations |
waffles
Replies: 17
Views: 32048
|
Forum: General CCS C Discussion Posted: Wed Mar 01, 2023 2:04 pm Subject: Zero Crossing detection fluctuations |
It looks like your device has a vectored interrupt controller, so you might be able to squeeze a little bit more control over latency by adding this line -
#device vector_ints
|
Topic: USB GamePad with PIC18F4550 |
waffles
Replies: 69
Views: 156212
|
Forum: General CCS C Discussion Posted: Tue Mar 29, 2022 2:16 pm Subject: USB GamePad with PIC18F4550 |
@jaka : Can't thank you enough for sharing that codebase. Cheers! |
Topic: #pin_select PWM the problem |
waffles
Replies: 11
Views: 29777
|
Forum: General CCS C Discussion Posted: Tue Dec 21, 2021 2:52 pm Subject: #pin_select PWM the problem |
There's also an interface to configure APF + pulse steering provided via the setup_ccp() function/s i.e
setup_ccp1(CCP_PWM | CCP_P1A_A5); // route pwm output to A5 (pin 2)
... |
|