Author |
Message |
Topic: How to do a Multi Array Selection |
CMatic
Replies: 9
Views: 23761
|
Forum: General CCS C Discussion Posted: Sat Oct 15, 2016 2:44 pm Subject: How to do a Multi Array Selection |
Ttelmah thanks for such a great advice and pointing of 3.1.1 section. Once again, you guys provide such great help to all of us who are learning embedded programming. Thanks |
Topic: How to do a Multi Array Selection |
CMatic
Replies: 9
Views: 23761
|
Forum: General CCS C Discussion Posted: Wed Oct 12, 2016 8:12 pm Subject: How to do a Multi Array Selection |
Ttelmah, thank you for a great explanation. I understand it a lot better now. My chip is PIC16F1825. I am not quite sure which datasheet were you referring to in section 3.1.1 - Please let me know so ... |
Topic: How to do a Multi Array Selection |
CMatic
Replies: 9
Views: 23761
|
Forum: General CCS C Discussion Posted: Tue Oct 11, 2016 8:08 pm Subject: How to do a Multi Array Selection |
I have managed to successfully compile my program as suggested by Ttelmah in the above message. Now my question is regarding how the data array is stored in Program space.
As an example, the array ... |
Topic: How to do a Multi Array Selection |
CMatic
Replies: 9
Views: 23761
|
Forum: General CCS C Discussion Posted: Sat Oct 08, 2016 10:52 am Subject: How to do a Multi Array Selection |
Thank you Ttelmah. Yes the data is string with inverted commas and my compiler version is CCS PCM C Compiler, Version 5.026. I assume that I will not have any compiler related issues once I compile it ... |
Topic: How to do a Multi Array Selection |
CMatic
Replies: 9
Views: 23761
|
Forum: General CCS C Discussion Posted: Fri Oct 07, 2016 9:59 pm Subject: How to do a Multi Array Selection |
I forgot to mentioned that the individual arrays are of different lengths. As such I don't understand how to make the 2 dimensional array. |
Topic: How to do a Multi Array Selection |
CMatic
Replies: 9
Views: 23761
|
Forum: General CCS C Discussion Posted: Fri Oct 07, 2016 6:06 pm Subject: How to do a Multi Array Selection |
I have four different arrays which have comma delimited data as follows:
unsigned char Melody1[] = {"32p,8g,8p,16a#.,8p,8g,16p,8f,8g,8p};
unsigned char Melody2[] = & ... |
Topic: DC-DC converter or LDO regulator |
CMatic
Replies: 13
Views: 40413
|
Forum: General CCS C Discussion Posted: Wed Sep 28, 2016 6:24 am Subject: DC-DC converter or LDO regulator |
Ttelmah thanks for explaining this concept it really makes a lot of sense to me. I will absolutely use the 2 AAA batteries in parallel and may consider to use the LDO after all along with the MCP1640. ... |
Topic: DC-DC converter or LDO regulator |
CMatic
Replies: 13
Views: 40413
|
Forum: General CCS C Discussion Posted: Tue Sep 27, 2016 10:02 pm Subject: DC-DC converter or LDO regulator |
Thank you temtronic and Ttelmah for your suggestions. I missed reading the section 5.2.1 regarding oscillations and surely it will waste lots of power. And connecting the batteries in "parallel&q ... |
Topic: DC-DC converter or LDO regulator |
CMatic
Replies: 13
Views: 40413
|
Forum: General CCS C Discussion Posted: Mon Sep 26, 2016 6:56 pm Subject: DC-DC converter or LDO regulator |
I need advise if I should select a DC-DC converter or use a LDO regulator?
I have two identical boards with PIC16F1825, it has an LCD and DS18B20 temp sensor. I am running them continuously with ( ... |
Topic: Can't access bit field bits |
CMatic
Replies: 21
Views: 33793
|
Forum: General CCS C Discussion Posted: Fri Jan 22, 2016 7:19 am Subject: Can't access bit field bits |
PCM Programmer and Ttelmah, the program is working as PCM Programmer showed above and I can retrieve config.Factory perfectly.
Again, you guys are amazing. Thank you |
Topic: Can't access bit field bits |
CMatic
Replies: 21
Views: 33793
|
Forum: General CCS C Discussion Posted: Thu Jan 21, 2016 11:59 am Subject: Can't access bit field bits |
PCM Programmer thanks so much for testing this in your program. I am amazed by the results you posted, I will post my results very soon.
Thelma thanks for checking the #locate 0x2000, I will try an ... |
Topic: Can't access bit field bits |
CMatic
Replies: 21
Views: 33793
|
Forum: General CCS C Discussion Posted: Wed Jan 20, 2016 8:21 pm Subject: Can't access bit field bits |
PCM Programmer thanks for the clarification on extern. Can you suggest why then config.Factory = 1 works in the main program but I am unable to do the same in other modules? Any thoughts? |
Topic: Can't access bit field bits |
CMatic
Replies: 21
Views: 33793
|
Forum: General CCS C Discussion Posted: Wed Jan 20, 2016 3:20 pm Subject: Can't access bit field bits |
PCM programmer The pic is 16f1825 and there is no multiple compilations |
Topic: Can't access bit field bits |
CMatic
Replies: 21
Views: 33793
|
Forum: General CCS C Discussion Posted: Wed Jan 20, 2016 12:23 am Subject: Can't access bit field bits |
Don't mean any disrespect but the code is very large and in 7 modules.
The structure is as follows:
struct {
int8 Units:1; //bit0 - Units LSB
int8 Sound:1; ... |
Topic: Can't access bit field bits |
CMatic
Replies: 21
Views: 33793
|
Forum: General CCS C Discussion Posted: Tue Jan 19, 2016 10:16 pm Subject: Can't access bit field bits |
you didn't do it properly. #bit works I use it in almost every project.
I tried the following and the compiler shows error on config.0 when I hover over it, it says "expecting a declaration&qu ... |
|