Author |
Message |
Topic: big variables to EEPROM |
TimothyCarter
Replies: 3
Views: 21404
|
Forum: Code Library Posted: Tue Apr 12, 2022 3:20 pm Subject: I figured CCS had something ... |
Just FYI, the compiler already has code to do this (and for several more
types as well). Look at 'internal_eeprom.c', which has routines to handle
int1, int16, int32, float, and for PCD, float48, ... |
Topic: big variables to EEPROM |
TimothyCarter
Replies: 3
Views: 21404
|
Forum: Code Library Posted: Thu Mar 31, 2022 9:51 am Subject: big variables to EEPROM |
Should anyone find this useful, here are some helper functions for reading/writing 16 & 32 bit variables to EEPROM.
Note: as stated in the comments, variables should be stored in sequential by ... |
Topic: DS1305 NV RAM read/write |
TimothyCarter
Replies: 7
Views: 20879
|
Forum: General CCS C Discussion Posted: Wed Jun 23, 2021 12:41 pm Subject: DS1305 NV RAM read/write |
and just like that CCS emailed me a fix this morning... |
Topic: DS1305 NV RAM read/write |
TimothyCarter
Replies: 7
Views: 20879
|
Forum: General CCS C Discussion Posted: Tue Jun 22, 2021 3:34 pm Subject: Work-around |
If anyone else has an issue with this, the work around is to not use the rtc_read_nvr and rtc_write_nvr functions and use the read_ds1305 and write_ds1305 respectively. The caveat is that you need to ... |
Topic: DS1305 NV RAM read/write |
TimothyCarter
Replies: 7
Views: 20879
|
Forum: General CCS C Discussion Posted: Tue Jun 22, 2021 3:27 pm Subject: DS1305 NV RAM read/write |
Ttelmah, but if you OR 0x20 then you will skip addresses 0x40 to 0x5F which are still valid addresses; as PCM programmer points out, it should be an add 0x20, rather than an OR. That way you could sta ... |
Topic: WORD keyword variable types |
TimothyCarter
Replies: 2
Views: 22494
|
Forum: Code Library Posted: Tue Jun 22, 2021 11:07 am Subject: Old Code Examples |
The above code is the result of using multiple compilers and trying to access the individual bytes in the 16, 32, and 64 bit variables: I realize CCS has things like make8, make16, etc - but like I sa ... |
Topic: DS1305 NV RAM read/write |
TimothyCarter
Replies: 7
Views: 20879
|
Forum: General CCS C Discussion Posted: Tue Jun 22, 2021 9:35 am Subject: DS1305 NV RAM read/write |
I may be missing something and wanted input here before reporting as a bug, but in the DS1305 driver that is included with PIC-C (using 5.104 compiler)
The functions rtc_write_nvr and rtc_read_nvr ... |
Topic: WORD keyword variable types |
TimothyCarter
Replies: 2
Views: 22494
|
Forum: Code Library Posted: Thu May 20, 2021 10:31 am Subject: WORD keyword variable types |
NOTE see below for a couple of warnings about using WORD, and unions... use the following code at your own risk!
Just because I like using keywords such as WORD, DWORD and thought there just might ... |
Topic: New compiler version 5.100 bug |
TimothyCarter
Replies: 7
Views: 17083
|
Forum: General CCS C Discussion Posted: Fri Jan 22, 2021 10:07 am Subject: New compiler version 5.100 bug |
Yeah, they're super-speedy over there |
Topic: New compiler version 5.100 bug |
TimothyCarter
Replies: 7
Views: 17083
|
Forum: General CCS C Discussion Posted: Thu Jan 21, 2021 10:24 am Subject: New compiler version 5.100 bug |
Received this reply from CCS:
The problem you reported has been fixed and will be in the
next compiler release.
For both of my issues reported above.
CCS is always quick on the fixes, and so ... |
Topic: New compiler version 5.100 bug |
TimothyCarter
Replies: 7
Views: 17083
|
Forum: General CCS C Discussion Posted: Thu Jan 21, 2021 9:27 am Subject: New compiler version 5.100 bug |
Ttelmah, that code does indeed work. I suspect it has nothing to do with the read_adc() function, that's just the line that gets highlighted because it is actually an "Internal Error - Contact CC ... |
Topic: New compiler version 5.100 bug |
TimothyCarter
Replies: 7
Views: 17083
|
Forum: General CCS C Discussion Posted: Wed Jan 20, 2021 1:21 pm Subject: New compiler version 5.100 bug |
I got the email and updated CCS to version 5.100 today (January 20, 2021). Now, when I try to compile a project for the 16f1847 it gives "Internal error - Contact CCS PR-CODE at 37/C/36 SCR=2074& ... |
Topic: PICC modbus app layer issue |
TimothyCarter
Replies: 2
Views: 10570
|
Forum: General CCS C Discussion Posted: Thu Jul 30, 2020 1:42 pm Subject: Solved? Maybe :confused: |
I think maybe I didn't understand the full use case for the holding register function; and was passing the full range of holding (& input) registers to the pointer in the function - when actually ... |
Topic: PICC modbus app layer issue |
TimothyCarter
Replies: 2
Views: 10570
|
Forum: General CCS C Discussion Posted: Thu Jul 30, 2020 9:49 am Subject: PICC modbus app layer issue |
I'm currently troubleshooting a controller with modbus and have come across an issue that may be a bug in the CCS "modbus_app_layer.c" file.
If you select "0" (40001) as your st ... |
Topic: ICD-U64 & PIC12F629 |
TimothyCarter
Replies: 0
Views: 21795
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Fri May 22, 2020 9:45 am Subject: ICD-U64 & PIC12F629 |
Anyone else have issues programming the PIC12F629 with an ICD-U64?
It would appear that ICD firmware versions 3.40 & 3.41 will program it one time, but then never re-program.
Downgrading to ... |
|