Author |
Message |
Topic: Compiler Warning |
JAM2014
Replies: 6
Views: 10703
|
Forum: General CCS C Discussion Posted: Thu Oct 12, 2023 11:07 am Subject: Compiler Warning |
Hi All,
I'm getting a compiler warning "pointer types do not match" on the following line of code:
ctime(&UTC_Ticks, tUTCString);
This code is working, converting UTC ... |
Topic: Issue using #Import directive |
JAM2014
Replies: 1
Views: 9469
|
Forum: General CCS C Discussion Posted: Tue Jan 24, 2023 4:04 pm Subject: Issue using #Import directive |
Hi All,
I'm trying to import a USB bootloader into my application code in order to make a single .hex file for production. The USB application works fine, and it works fine with a separate USB boot ... |
Topic: PORTB interrupt on change |
JAM2014
Replies: 17
Views: 52411
|
Forum: General CCS C Discussion Posted: Thu Jun 30, 2022 7:54 am Subject: PORTB interrupt on change |
Hi All,
To the OP, have you see this thread?: http://www.ccsinfo.com/forum/viewtopic.php?t=59778
It's a complete, working example of using a rotary encoder with the PIC you are using.
Also, w ... |
Topic: How to use Assembly in CCS |
JAM2014
Replies: 9
Views: 26032
|
Forum: General CCS C Discussion Posted: Thu Jun 09, 2022 2:25 pm Subject: How to use Assembly in CCS |
Hi,
One question I would ask is "why are you doing this"? CCS has built-in high level functions to do the simple initialization/configuration stuff you want/need to do! This is one of the ... |
Topic: Interrupt not working in full program.... <Solved> |
JAM2014
Replies: 7
Views: 23221
|
Forum: General CCS C Discussion Posted: Tue May 24, 2022 1:45 pm Subject: Interrupt not working in full program.... <Solved> |
Hi PCM,
Thanks for looking at this issue and pointing me in the right direction! I modified my code to combine both interrupt handlers, and the program is now working as expected!
#include < ... |
Topic: Interrupt not working in full program.... <Solved> |
JAM2014
Replies: 7
Views: 23221
|
Forum: General CCS C Discussion Posted: Tue May 24, 2022 11:12 am Subject: Interrupt not working in full program.... <Solved> |
Hi PCM,
The switch itself is a simple switch closure to Gnd. The output is pulled up to +5V with a 10K resistor, and there is a 0.01uF capacitor to Gnd. This is fed into an inverter with a Schmitt ... |
Topic: Interrupt not working in full program.... <Solved> |
JAM2014
Replies: 7
Views: 23221
|
Forum: General CCS C Discussion Posted: Tue May 24, 2022 8:55 am Subject: Interrupt not working in full program.... <Solved> |
Hi All,
Thanks for the troubleshooting suggestions! In my larger program, I never disable interrupts Globally, nor do I ever change the TRIS for port C. Agree that 'prints' in interrupts are a bad ... |
Topic: Interrupt not working in full program.... <Solved> |
JAM2014
Replies: 7
Views: 23221
|
Forum: General CCS C Discussion Posted: Mon May 23, 2022 3:21 pm Subject: Interrupt not working in full program.... <Solved> |
Hi All,
The following test code is happily working to detect an IOC on pin RC1 connected to a switch with a pull-up to +5V. An LED on my board toggles each time the button is pressed.
#include ... |
Topic: Suggestions for implementing a rotary (quadrature) encoder. |
JAM2014
Replies: 3
Views: 15934
|
Forum: General CCS C Discussion Posted: Tue May 03, 2022 1:47 pm Subject: Suggestions for implementing a rotary (quadrature) encoder. |
Hi All,
I have a new project design that uses a rotary encoder for user input. The encoder is a CTS series 290 (Digikey CT3007-ND), which is a 2 bit quadrature encoder with 20 pulses per revolution ... |
Topic: Printf formatting.... |
JAM2014
Replies: 6
Views: 24957
|
Forum: General CCS C Discussion Posted: Fri Jun 25, 2021 11:26 am Subject: Printf formatting.... |
Hi All,
As a quick follow-up, a CCS fix would be nice, but in the meantime....
I was thinking that a more universal fix might be desirable that could accommodate different width variables. At th ... |
Topic: Printf formatting.... |
JAM2014
Replies: 6
Views: 24957
|
Forum: General CCS C Discussion Posted: Fri Jun 25, 2021 7:42 am Subject: Printf formatting.... |
Hi All,
Temtronic: Thanks for pointing out the error in my OP!
Ttelmah: That is perfect! Exactly the idea I was looking for!
Thanks,
Jack |
Topic: Printf formatting.... |
JAM2014
Replies: 6
Views: 24957
|
Forum: General CCS C Discussion Posted: Wed Jun 23, 2021 2:51 pm Subject: Printf formatting.... |
Hi All,
I have an signed int8 variable that varies from -10 to +10. I'd like to display the value exactly this way using the printf function. Is there a format specifier that will allow me to do th ... |
Topic: Connecting multiple PIC MCU's |
JAM2014
Replies: 3
Views: 14659
|
Forum: General CCS C Discussion Posted: Tue Mar 23, 2021 12:56 pm Subject: Connecting multiple PIC MCU's |
Hi All,
I'm updating the design of some test equipment, and I need to be able to pass 8 bytes of data to a 'Master' from up to four 'Slaves'. Data rate can be quite slow (19,200 baud or so). I'm en ... |
Topic: Saving to EEPROM..... |
JAM2014
Replies: 2
Views: 14516
|
Forum: General CCS C Discussion Posted: Wed Dec 09, 2020 10:31 am Subject: Saving to EEPROM..... |
Hello Ttelmah,
Awesome! That is exactly what I need!
Yes, understand about writing too often to the EEPROM! BTW, the folks at Dangerous Prototypes did a project a few years ago to determine the ... |
Topic: Saving to EEPROM..... |
JAM2014
Replies: 2
Views: 14516
|
Forum: General CCS C Discussion Posted: Tue Dec 08, 2020 4:58 pm Subject: Saving to EEPROM..... |
Hi All,
I have a project that among other things derives latitude and longitude from a connected GPS. I'd like to store these values in EEPROM to speed up the booting process and/or eliminate the G ... |
|