Author |
Message |
Topic: Problem calling subroutine |
rbarbali
Replies: 4
Views: 15023
|
Forum: General CCS C Discussion Posted: Fri Aug 12, 2022 6:42 am Subject: Problem calling subroutine |
WriteEeprom(0x04, *((int *)&enabled_WD));
It works OK. Very interesting!
Thank you. |
Topic: Problem calling subroutine |
rbarbali
Replies: 4
Views: 15023
|
Forum: General CCS C Discussion Posted: Thu Aug 11, 2022 9:10 am Subject: Problem calling subroutine |
HI all.
I have a question, I have 2 structs, and I can't call a subroutine with one of them. Is it a C limitation or a CCS limitation, or I am the limitation?
I get compiler error (A numeric express ... |
Topic: ROM size with int1 vs int8 |
rbarbali
Replies: 7
Views: 23743
|
Forum: General CCS C Discussion Posted: Wed Aug 25, 2021 5:37 am Subject: ROM size with int1 vs int8 |
PrinceNai,
Bigger PIC, like 16f18877?
I think so, but , due to the chip shortage, my boss bought PIC16F18875...
temtronic: silly 'cheat'...
instead of
flag_open_tamper_sent
I wil ... |
Topic: ROM size with int1 vs int8 |
rbarbali
Replies: 7
Views: 23743
|
Forum: General CCS C Discussion Posted: Tue Aug 24, 2021 5:08 pm Subject: ROM size with int1 vs int8 |
Thanks gaugeguy & temtronic!
Actually I am using 97% of the 16f18875, so I am looking for methods of reducing the size of the program even more. One way I found is replacing INT1s for INT8s defin ... |
Topic: ROM size with int1 vs int8 |
rbarbali
Replies: 7
Views: 23743
|
Forum: General CCS C Discussion Posted: Tue Aug 24, 2021 12:37 pm Subject: ROM size with int1 vs int8 |
CCS V5.083, PIC16F18875
Hi. I am trying to reduce the rom size of a program. I decide to use int1 vars instead of int8 vars thinking the ROM size will be reduced. But I get that using 8 bits vars c ... |
Topic: Reusing write_eeprom code |
rbarbali
Replies: 6
Views: 21795
|
Forum: General CCS C Discussion Posted: Wed Jun 30, 2021 6:36 am Subject: Reusing write_eeprom code |
Oh, because it is a big (6 kB) program and I write one byte of eeprom here, another there, as some unrelated events occur. In some events I write a 4-byte packet:
void AddEepromCR(int8 * p) ... |
Topic: Reusing write_eeprom code |
rbarbali
Replies: 6
Views: 21795
|
Forum: General CCS C Discussion Posted: Tue Jun 29, 2021 8:46 am Subject: Reusing write_eeprom code |
Thanks newguy & Ttelmah.
The code I attached is only to show the problem. My final program is a bigger program that writes the eeprom 1 time a day maximum. I can't use a "for loop".
... |
Topic: Reusing write_eeprom code |
rbarbali
Replies: 6
Views: 21795
|
Forum: General CCS C Discussion Posted: Tue Jun 29, 2021 5:32 am Subject: Reusing write_eeprom code |
PIC16F18875, CCS PCM V5.101 DEMO
Hi. I need to write the internal eeprom several times in a program. Using write_eeprom() as follows:
void main()
{
WHILE(TRUE)
... |
|