Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Interesting behavior in CCS

Status
Not open for further replies.

ITP

Advanced Member level 4
Joined
Jul 11, 2001
Messages
116
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
1,136
Hi All,

Two of my function definitions in CCS C Compiler are as follows.

void lcd_print(unsigned char *string)
{
while (*string)
lcd_data_out (*string++);
}


void lcd_data_out(unsigned char c) // Writes the data in A to LCD
{
lcd_rs = 1;
send_char(c);
}


When I use the function "lcd_print("Hello");" it is not working but when I
use "lcd_data_out("Hello");" is working fine. In fact 'lcd_data_out' function is
a sub-function of 'lcd_print' and supposed to print single character. Can you please
tell me that I am doing any mistake.Is there any alternative way to do this.

Thanks and regards
Itp
 

ITP,

CCS does not support pointers to rom as a parameter :-(

Look at their forum:
https://www.ccsinfo.com/forum

This is duscussed to death there ...

best regards
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top