CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

problem with coding

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
HTAluvBeBeo



Joined: 23 Feb 2008
Posts: 35

View user's profile Send private message

problem with coding
PostPosted: Sun May 11, 2008 1:07 pm     Reply with quote

Thanh you so so much

Last edited by HTAluvBeBeo on Sun May 25, 2008 10:15 am; edited 3 times in total
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun May 11, 2008 1:25 pm     Reply with quote

Post a complete little test program that shows the problem.

For example, here is a short program that tests passing a parameter
to the read_rtc() function. I can compile it, and it does not show an
error.

Make a similar (very short) program that shows your problem. Post it.
Code:
#include <16F877.H>
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock=4000000)

#byte portd = 0x08

#define sec 0

unsigned char read_rtc(unsigned char addr)
{
unsigned char data;
portd=addr;
return (data);
}

//=======================================
void main()
{
unsigned char tmp1;

tmp1 = read_rtc(sec);
 
}
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group