Author |
Message |
Topic: GUI event handling architecture |
hellopic
Replies: 0
Views: 3203
|
Forum: General CCS C Discussion Posted: Sat Mar 02, 2013 10:18 am Subject: GUI event handling architecture |
I am trying to change the structure of the code that someone else has written. It is basically a home automation system with a monochrome graphical GUI. There are over 50+ different screens that the u ... |
Topic: SPI Flash Logging |
hellopic
Replies: 6
Views: 9011
|
Forum: General CCS C Discussion Posted: Thu Feb 28, 2013 7:52 am Subject: SPI Flash Logging |
Thanks for all the suggestions, guys.
I went with an Index page that sets a value when a corresponding block/page is written. Working well so far.
I looked at FRAMs but they seem pretty expensi ... |
Topic: SPI Flash Logging |
hellopic
Replies: 6
Views: 9011
|
Forum: General CCS C Discussion Posted: Wed Feb 27, 2013 10:44 am Subject: SPI Flash Logging |
Thanks for the suggestions, Ttelmah,
The hardware is fixed, unfortunately.
I am thinking, I reserve a few pages in the flash and then start writing counter values sequentially to it. So that I ... |
Topic: SPI Flash Logging |
hellopic
Replies: 6
Views: 9011
|
Forum: General CCS C Discussion Posted: Wed Feb 27, 2013 8:47 am Subject: SPI Flash Logging |
I've an application where the PIC acts as a FIFO across two UART ports. The data comes in at constant rate from 1 UART, the data is stored on SPI flash (which is connected to the PIC) and then when th ... |
Topic: Saving float value on DS1302 |
hellopic
Replies: 20
Views: 24803
|
Forum: General CCS C Discussion Posted: Sat Feb 23, 2013 11:02 am Subject: Saving float value on DS1302 |
I've never used unions but this looks useful, thanks. Can I ask - what other situations would they come in handy?
We can also just access the bytes from the float_value as *((uint8*)&float_val ... |
Topic: Saving float value on DS1302 |
hellopic
Replies: 20
Views: 24803
|
Forum: General CCS C Discussion Posted: Sat Feb 23, 2013 4:10 am Subject: Saving float value on DS1302 |
Assuming you have enough space ...
uint8 array[sizeof(float)];
memcpy(array,&float_variable,sizeof(float));
Now your float_variable's data is in array, just save that. Cheers. |
Topic: Serial Numbers |
hellopic
Replies: 3
Views: 4502
|
Forum: General CCS C Discussion Posted: Sat Feb 23, 2013 3:32 am Subject: Serial Numbers |
Could you please let me know, which programmer you use for #serialize to work? |
Topic: Serial Numbers |
hellopic
Replies: 3
Views: 4502
|
Forum: General CCS C Discussion Posted: Thu Feb 21, 2013 11:53 am Subject: Serial Numbers |
How can I generate a unique serial number for each micro that I program? I looked at #serialize but that seems to require special hardware. I only have access to ICD3.
Setting it in code or sendin ... |
|