Author |
Message |
Topic: Storing strings in ROM |
acexbe
Replies: 15
Views: 23188
|
Forum: General CCS C Discussion Posted: Fri Jan 24, 2014 5:30 am Subject: Storing strings in ROM |
[quote="temtronic"]comment: You should put the delay_ms(1000); before the lcd_init() function.
The flex driver uses the R/W line of the lcd to check if the lcd has finished the given comm ... |
Topic: Storing strings in ROM |
acexbe
Replies: 15
Views: 23188
|
Forum: General CCS C Discussion Posted: Thu Jan 23, 2014 2:04 pm Subject: Storing strings in ROM |
Thanks everyone for your help!
I tried the two solutions, see the final code below:
#include <16F628A.h>
#DEVICE PASS_STRINGS=IN_RAM
#use delay(internal=4000000)
#fuses NOWDT,INTR ... |
Topic: Storing strings in ROM |
acexbe
Replies: 15
Views: 23188
|
Forum: General CCS C Discussion Posted: Wed Jan 22, 2014 2:04 pm Subject: Storing strings in ROM |
Hello,
I did a test with following strings:
const char *strings[4][2] =
{
"AA",
"BB",
"CC",
"DD"
};
Checked the ASM after compi ... |
Topic: Storing strings in ROM |
acexbe
Replies: 15
Views: 23188
|
Forum: General CCS C Discussion Posted: Wed Jan 22, 2014 10:07 am Subject: Storing strings in ROM |
Mike,
printf(lcd_putc,"%u",i);
results in 0123 on the lcd.
Maybe the lcd-flexdriver forces 2 strings on each call?
Could a NULL terminator be the solution?
Regards |
Topic: Storing strings in ROM |
acexbe
Replies: 15
Views: 23188
|
Forum: General CCS C Discussion Posted: Wed Jan 22, 2014 5:51 am Subject: Storing strings in ROM |
Thanks Ttelmah,
Adjusted your code for output to lcd and added PASS_STRINGS=IN_RAM to the .h file.
#include <main.h>
#include "flex_lcd.c"
void main() {
const ... |
Topic: Storing strings in ROM |
acexbe
Replies: 15
Views: 23188
|
Forum: General CCS C Discussion Posted: Tue Jan 21, 2014 2:45 pm Subject: Storing strings in ROM |
Hello, this is my first post.
I am trying to display stored text on an LCD 2*16 char display.
The used chip is 16F628A.
The "flex-driver" is used for the lcd.
#include "flex_lcd ... |
|