Author |
Message |
Topic: How to declare a big string array in ROM? |
ronaldoklais
Replies: 7
Views: 19831
|
Forum: General CCS C Discussion Posted: Mon Aug 22, 2016 11:05 am Subject: How to declare a big string array in ROM? |
You can write directly to rom using
#rom ADDRESS = { 0, 3, 11, 2, 3, 4 } // bytes
and then read using read_program_memory(address, dest, size) |
Topic: Running string loop with external pointer |
ronaldoklais
Replies: 9
Views: 14873
|
Forum: General CCS C Discussion Posted: Thu Feb 11, 2016 10:52 am Subject: Running string loop with external pointer |
Try to see about rom pointers:
http://www.ccsinfo.com/content.php?page=flexconst |
Topic: extern variable, how to do ? |
ronaldoklais
Replies: 22
Views: 35476
|
Forum: General CCS C Discussion Posted: Thu Oct 22, 2015 6:27 pm Subject: extern variable, how to do ? |
Dynamic allocation work with the space not allocated in compilation time.
Try it:
char* var1;
char* var2;
char* var3;
char* var4;
char* var5;
void main(){
var1 = malloc ... |
Topic: How generate hex file |
ronaldoklais
Replies: 7
Views: 19273
|
Forum: General CCS C Discussion Posted: Wed Sep 16, 2015 7:35 am Subject: How generate hex file |
The hex code of the HCS301 has no relation with the hex code of microchip ICs. Hex is only a way to see or transfer an content with readable form. In ASM, the hex values are bitcodes. In HCS301 the he ... |
Topic: How many times flash PIC before verification errors? |
ronaldoklais
Replies: 14
Views: 21875
|
Forum: General CCS C Discussion Posted: Fri Jul 03, 2015 7:29 am Subject: How many times flash PIC before verification errors? |
And a hardware to do this? |
Topic: How many times flash PIC before verification errors? |
ronaldoklais
Replies: 14
Views: 21875
|
Forum: General CCS C Discussion Posted: Thu Jul 02, 2015 6:53 pm Subject: How many times flash PIC before verification errors? |
What is the minimum? To put a PIC into production we need to burn 100 times the same source? |
Topic: wireless |
ronaldoklais
Replies: 5
Views: 10431
|
Forum: General CCS C Discussion Posted: Sun Apr 05, 2015 4:10 pm Subject: wireless |
ESP8266
Simple and low cost (3 USD <) |
Topic: global variables |
ronaldoklais
Replies: 8
Views: 14435
|
Forum: General CCS C Discussion Posted: Thu Sep 11, 2014 5:41 pm Subject: global variables |
Try this:
ch = rxchar_get();
*rx_ptr = ch;
rx_ptr++; |
Topic: internal EEPROM of PIC16F877A #rom |
ronaldoklais
Replies: 12
Views: 20700
|
Forum: General CCS C Discussion Posted: Mon Feb 04, 2013 9:07 am Subject: internal EEPROM of PIC16F877A #rom |
int8 byte_address = 0;
int8 value = 123;
write_eeprom(0x2100 + byte_address, value);
then to read:
read_eeprom(0x2100 + byte_address); |
Topic: Digital Voltmeter Code |
ronaldoklais
Replies: 8
Views: 15349
|
Forum: General CCS C Discussion Posted: Fri Jan 18, 2013 7:25 pm Subject: Digital Voltmeter Code |
BR? |
Topic: PIC freezes |
ronaldoklais
Replies: 15
Views: 21902
|
Forum: General CCS C Discussion Posted: Thu Dec 27, 2012 6:23 am Subject: PIC freezes |
In the photo you posted i can't see the capacitor in the crystal.
See this
[img]http://www.mecatrons.xpg.com.br/Artigos/ArtigoX/Imagem/ressoador.bmp[/img] |
Topic: ex_bootload.c problem to run |
ronaldoklais
Replies: 17
Views: 27346
|
Forum: General CCS C Discussion Posted: Wed Dec 19, 2012 12:12 pm Subject: ex_bootload.c problem to run |
When you add code to the bootloader program (first code), the length of the program are increased. Then, the loader jump to incorrect address of you program.
Try remove the two printf. |
Topic: ex_bootload.c problem to run |
ronaldoklais
Replies: 17
Views: 27346
|
Forum: General CCS C Discussion Posted: Tue Dec 18, 2012 8:07 pm Subject: ex_bootload.c problem to run |
Move include of bootloader.h to second code. |
|