Author |
Message |
Topic: How to initialize or free a dynamic memory allocation |
pilar
Replies: 3
Views: 4688
|
Forum: General CCS C Discussion Posted: Mon Feb 12, 2024 4:25 pm Subject: How to initialize or free a dynamic memory allocation |
Telmah, thanks for the clarification, now I have it clearer. |
Topic: How to initialize or free a dynamic memory allocation |
pilar
Replies: 3
Views: 4688
|
Forum: General CCS C Discussion Posted: Mon Feb 12, 2024 11:01 am Subject: How to initialize or free a dynamic memory allocation |
Hi, Could someone tell me how to initialize or free a dynamic memory allocation in CCS, just for summary purposes I have the following code:
#include <18F4620.h>
#fuses HS,WDT32768,PROTECT,NOL ... |
Topic: How to go from decimal to hexadecimal array |
pilar
Replies: 4
Views: 5951
|
Forum: General CCS C Discussion Posted: Fri Feb 09, 2024 11:33 am Subject: How to go from decimal to hexadecimal array |
Looking at it again I think what he wants is the four bytes representing the
value * 10000000 as an integer
Yes, it was what I needed, thank you |
Topic: How to go from decimal to hexadecimal array |
pilar
Replies: 4
Views: 5951
|
Forum: General CCS C Discussion Posted: Thu Feb 08, 2024 6:19 pm Subject: How to go from decimal to hexadecimal array |
Hi, I have the latitude and longitude values in decimal and I need to convert them to a hexadecimal array of 4 bytes each, for this I am using this code:
#include <18F4620.h>
#fuses HS,W ... |
Topic: Error decomposing Epoch Time value |
pilar
Replies: 1
Views: 4673
|
Forum: General CCS C Discussion Posted: Sun Oct 01, 2023 4:52 pm Subject: Error decomposing Epoch Time value |
Hi, I am using the CCS V4.74 and the PIC18F4620, I need to decompose the value of an Epoch Time data into its equivalent years, months, days, hours, minutes and seconds, for this I have this code but ... |
Topic: How to enable multiple ADCs |
pilar
Replies: 1
Views: 4612
|
Forum: General CCS C Discussion Posted: Thu Sep 14, 2023 5:28 pm Subject: How to enable multiple ADCs |
Hi, I am using the PIC18F4620 with CCS 4.74 and I need to configure the first seven channels of the ADC converters (ADC0, ADC1, ADC2, ADC3, ADC4, ADC5, AD7), for this I am using this command:
setu ... |
Topic: How to Wake-Up with WDT |
pilar
Replies: 8
Views: 21257
|
Forum: General CCS C Discussion Posted: Wed Jun 22, 2022 3:30 pm Subject: How to Wake-Up with WDT |
Thank you PrinceNai, your code worked for me
#fuses HS,WDT128,NOPROTECT,NOLVP
#use delay(clock=20000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
#define Working ... |
Topic: How to Wake-Up with WDT |
pilar
Replies: 8
Views: 21257
|
Forum: General CCS C Discussion Posted: Tue Jun 14, 2022 5:11 pm Subject: How to Wake-Up with WDT |
Thanks everyone, i got what i needed |
Topic: How to Wake-Up with WDT |
pilar
Replies: 8
Views: 21257
|
Forum: General CCS C Discussion Posted: Tue Jun 14, 2022 11:52 am Subject: How to Wake-Up with WDT |
3.5.2 EXIT BY WDT TIME-OUT
Yes, I read it, but it is not clear to me, what would I have to modify in this code to get what I need, that the pic goes to sleep and that the WDT wakes it up? |
Topic: How to Wake-Up with WDT |
pilar
Replies: 8
Views: 21257
|
Forum: General CCS C Discussion Posted: Tue Jun 14, 2022 10:59 am Subject: How to Wake-Up with WDT |
I'm using a PIC18LF4520 and I'm using it with CCS 4.074, I want to use a low power state and for that I send it to sleep and I want to wake it up with the WDT but it seems that it's not working, the p ... |
Topic: Error with signed integer operations |
pilar
Replies: 6
Views: 21286
|
Forum: General CCS C Discussion Posted: Wed Jul 07, 2021 8:44 pm Subject: Error with signed integer operations |
PCM programmer, I am sorry, I had not seen your answer, yes you are right that was the problem
Thank you! |
Topic: Error with signed integer operations |
pilar
Replies: 6
Views: 21286
|
Forum: General CCS C Discussion Posted: Wed Jul 07, 2021 7:51 pm Subject: Error with signed integer operations |
In CCS C 8 bit 'char' variables are UNsigned, ie 0 to 255
I have declared the array as a signed integer and I keep getting the same result, I don't understand why?
signed int8 valueRSSI[] ... |
Topic: Error with signed integer operations |
pilar
Replies: 6
Views: 21286
|
Forum: General CCS C Discussion Posted: Wed Jul 07, 2021 6:54 pm Subject: Error with signed integer operations |
Hi, I am use a Pic18F4620 with CCS compiler V4.074, I am doing a simple operation with signed integers of 8bits and 16 bits, the thing is that I have the variable "myRSSIValue8" that I colle ... |
Topic: How to define a string array with multiple quotes |
pilar
Replies: 3
Views: 13946
|
Forum: General CCS C Discussion Posted: Mon May 31, 2021 6:44 pm Subject: How to define a string array with multiple quotes |
Fantastic, it works! |
Topic: How to define a string array with multiple quotes |
pilar
Replies: 3
Views: 13946
|
Forum: General CCS C Discussion Posted: Mon May 31, 2021 5:48 pm Subject: How to define a string array with multiple quotes |
Hi, I am use CCS V4.074 and I need to define a string array containing quotes,
TD HD=3600,"{"d":"Demo message","t":"2021-02-26 14:51:21&q ... |
|