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 CCS Technical Support

Programming PIC16F87X as 10 bit ADC and reading it serially
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
yousafzai82



Joined: 04 Mar 2010
Posts: 13
Location: Pakistna

View user's profile Send private message AIM Address Yahoo Messenger ICQ Number

PostPosted: Mon Mar 08, 2010 4:30 am     Reply with quote

I have checked but it is giving me the error messages again. Can you confirm that after i program the PIC with this code. Will it successfully send the value V on the said number??

I am working with the mcu for the first time so please help me with that.....
_________________
zaky
mrpicing



Joined: 22 Oct 2005
Posts: 20

View user's profile Send private message

PostPosted: Thu Mar 11, 2010 1:21 am     Reply with quote

Mr Zakay Smile
If you use function prototype then you can use it as following
#separate void some_function(void);
The compiler will place that function separate
If you dont use function prototype and use function directly then use #separate before start of function code.
Code:

#separate void send_SMS(void)
{
printf("AT\r\n");
delay_ms(5000);
printf("at+cmgf=1\r\n");
delay_ms(5000);
printf("at+cmgs=\"+923469400983\"\r\n");
delay_ms(5000);
printf("%f/n/r",(float)V);
putc(0x1A);
delay_ms(5000);
}
Wink
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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