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

Search found 27 matches
CCS Forum Index
Author Message
  Topic: Analog input connection for 16F876A [Help Please]
Sal

Replies: 2
Views: 4569

PostForum: General CCS C Discussion   Posted: Thu Jun 10, 2010 7:32 pm   Subject: Analog input connection for 16F876A [Help Please]
Hi,

I'm using a 16F876A and I'm just trying to read an analog value from AN0.
I used this setup code

setup_adc_ports(AN0);
setup_adc(ADC_CLOCK_INTERNAL );
set_adc_channel ...
  Topic: Trying to Control an LED via SMS, please HELP !
Sal

Replies: 22
Views: 41412

PostForum: General CCS C Discussion   Posted: Fri May 28, 2010 6:26 am   Subject: Trying to Control an LED via SMS, please HELP !
Moving to Panama ? I wish you all the best and great success.

I would like to thank you so very much the help you have given me and I'll get to work ASAP.

Hope to see you back online soon...
...
  Topic: Trying to Control an LED via SMS, please HELP !
Sal

Replies: 22
Views: 41412

PostForum: General CCS C Discussion   Posted: Thu May 27, 2010 4:31 pm   Subject: Trying to Control an LED via SMS, please HELP !
Yes the led comes on when I send an sms.

I'm ready for the next step.
  Topic: Trying to Control an LED via SMS, please HELP !
Sal

Replies: 22
Views: 41412

PostForum: General CCS C Discussion   Posted: Thu May 27, 2010 1:37 pm   Subject: Trying to Control an LED via SMS, please HELP !
Ok. So I reset the counter_read to zero and I setup a while loop so that if counter_read is not equal to zero it advances.

Correct ?

#INT_RDA
void SerialInt()
{
Recieve_Str ...
  Topic: Trying to Control an LED via SMS, please HELP !
Sal

Replies: 22
Views: 41412

PostForum: General CCS C Discussion   Posted: Wed May 26, 2010 6:37 pm   Subject: Trying to Control an LED via SMS, please HELP !
Ok after 8 months of trying, I'm starting over and putting my confidence into your hands...

As you requested:

#include <16F876A.h>
#include <string.h>
#fuses XT,NOWDT,NOPROTECT,NOL ...
  Topic: Trying to Control an LED via SMS, please HELP !
Sal

Replies: 22
Views: 41412

PostForum: General CCS C Discussion   Posted: Wed May 26, 2010 11:19 am   Subject: Trying to Control an LED via SMS, please HELP !
OK. Advice taken. I tried doing something like this but when I enter "123" nothing happens. I expected to turn on pin_c4........then turn it off again with "321". .............THIS ...
  Topic: Trying to Control an LED via SMS, please HELP !
Sal

Replies: 22
Views: 41412

PostForum: General CCS C Discussion   Posted: Wed May 26, 2010 5:18 am   Subject: Trying to Control an LED via SMS, please HELP !
@Gabriel

You said "my circular buffer fills up twice.... and the txt happens to fall completely into the second fill"

Where exactly is your circular buffer and how do you read from it ...
  Topic: EX_SISR please help
Sal

Replies: 12
Views: 21748

PostForum: General CCS C Discussion   Posted: Tue May 25, 2010 7:02 pm   Subject: EX_SISR please help
Once again THANKS very much for your guidance. I changed the BUFFER_SIZE from "20" to "32" and the code compiled with no errors !
That's amazing.

Now it's time to do some testi ...
  Topic: EX_SISR please help
Sal

Replies: 12
Views: 21748

PostForum: General CCS C Discussion   Posted: Tue May 25, 2010 2:04 pm   Subject: EX_SISR please help
I added the code to my main but i get a warning after comilation...

interrupts disabled during call to prevent re-entrancy: (@DIV88)

Any ideas why ?

void main(){

char s1[& ...
  Topic: Trying to Control an LED via SMS, please HELP !
Sal

Replies: 22
Views: 41412

PostForum: General CCS C Discussion   Posted: Tue May 25, 2010 1:54 pm   Subject: Trying to Control an LED via SMS, please HELP !
Thanks for replying...

But just so you know:

1. AT+CMGF is the AT command for selecting SMS message format. There are two possible modes as far as I know...

0 = PDU format
1 = Text format
...
  Topic: Trying to Control an LED via SMS, please HELP !
Sal

Replies: 22
Views: 41412

PostForum: General CCS C Discussion   Posted: Tue May 25, 2010 9:15 am   Subject: Trying to Control an LED via SMS, please HELP !
@ Gabriel.
Even prior to your reply I've read your code over and over and there are many parts of it I really don't understand. I'm extremely new to C programming and I am only now begining to under ...
  Topic: EX_SISR please help
Sal

Replies: 12
Views: 21748

PostForum: General CCS C Discussion   Posted: Mon May 24, 2010 5:32 am   Subject: EX_SISR please help
I'm trying to move the contents of the buffer to s1 and then add a NULL to s1 to make it a valid string. Again it doesn't work. The rest of the code is same as above. I've only edited the MAIN.

vo ...
  Topic: EX_SISR please help
Sal

Replies: 12
Views: 21748

PostForum: General CCS C Discussion   Posted: Sun May 23, 2010 11:53 am   Subject: EX_SISR please help
As far as I know all the data to be received is in the form of messages or replies from a gsm modem.

I don't think there is any '$'. The messages are preceded and ended with
0A/0D

example:

...
  Topic: EX_SISR please help
Sal

Replies: 12
Views: 21748

PostForum: General CCS C Discussion   Posted: Sun May 23, 2010 11:36 am   Subject: EX_SISR please help
I've just looked at the parse method used that PCM Programmer linked me to. This is waaaayyyy beyond my level of understanding. I think I'm more comfortable using the strstsr function for now.

Can ...
  Topic: EX_SISR please help
Sal

Replies: 12
Views: 21748

PostForum: General CCS C Discussion   Posted: Sun May 23, 2010 11:29 am   Subject: EX_SISR please help
"1) Move data from 'buffer' to a string. Null terminate it, when something like a line feed is seen. Search in this."

Please, I don't understand how I can move the buffered data to a stri ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group