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 9 matches
CCS Forum Index
Author Message
  Topic: How to read 10 bits in an analog conversion?
aeroboy

Replies: 5
Views: 6974

PostForum: General CCS C Discussion   Posted: Mon Jun 01, 2009 5:38 pm   Subject: How to read 10 bits in an analog conversion?
Hello,

This is working, now I was wondering if someone knows how much time it takes to send and receive data via serial, I mean, how much time it takes to execute the printf function.

Thanks.
- ...
  Topic: How to read 10 bits in an analog conversion?
aeroboy

Replies: 5
Views: 6974

PostForum: General CCS C Discussion   Posted: Sat May 23, 2009 1:43 pm   Subject: How to read 10 bits in an analog conversion?
Hello,

Thanks, the next code puts the max value for a ten bit variable. But then that means that I will be sending 4 ASCII characters, right?


#include <16F877.H>
#device adc=10
#fuse ...
  Topic: How to read 10 bits in an analog conversion?
aeroboy

Replies: 5
Views: 6974

PostForum: General CCS C Discussion   Posted: Fri May 22, 2009 9:06 pm   Subject: How to read 10 bits in an analog conversion?
Hello,

I have the next code, I am reading an analog value every 10 ms, then I am sending that value via serial, but I can only send 8 bits, these 8 bits cover the 5 volt range, I think I am only se ...
  Topic: 3 encoder reading and serial transmition
aeroboy

Replies: 0
Views: 2989

PostForum: General CCS C Discussion   Posted: Thu Apr 30, 2009 7:19 pm   Subject: 3 encoder reading and serial transmition
Hello,

I made a code to read three differential encoders, save the increments each one does and send that increments to other pic every 6.3 ms via serial comunication. Also I am recieveing data. S ...
  Topic: signed char and signed long
aeroboy

Replies: 2
Views: 3481

PostForum: General CCS C Discussion   Posted: Tue Apr 28, 2009 5:36 pm   Subject: signed char and signed long
Hello,

Does the CCS compiler support a signed char subtraction from a signed long?


signed long x;
signed char y;
x=989;
y=-45;
x=x+y;
x=944


I do not have a way to verify this but I n ...
  Topic: External Interrupt in a pin different from RB0
aeroboy

Replies: 6
Views: 5820

PostForum: General CCS C Discussion   Posted: Mon Apr 27, 2009 1:44 pm   Subject: External Interrupt in a pin different from RB0
Thanks a lot, that's very useful.

--Luis
  Topic: External Interrupt in a pin different from RB0
aeroboy

Replies: 6
Views: 5820

PostForum: General CCS C Discussion   Posted: Mon Apr 27, 2009 1:10 pm   Subject: External Interrupt in a pin different from RB0
Thanks,

You mean I have to do this:
struct {
unsigned char V0:1;
unsigned char V1:1;
unsigned char V2:1;
unsigned char V3:1;
unsigned char V4 ...
  Topic: External Interrupt in a pin different from RB0
aeroboy

Replies: 6
Views: 5820

PostForum: General CCS C Discussion   Posted: Mon Apr 27, 2009 12:08 pm   Subject: External Interrupt in a pin different from RB0
Thanks,

Now I have another question, you can define a variable to use like:

unsigned char VALUE;

Can I access the individual bits in this variable?, something like

PIN_VALUE1

Obviousl ...
  Topic: External Interrupt in a pin different from RB0
aeroboy

Replies: 6
Views: 5820

PostForum: General CCS C Discussion   Posted: Sun Apr 26, 2009 10:35 pm   Subject: External Interrupt in a pin different from RB0
Hello,

I am using a 16f877A, when you use an external interrupt you write:

#int_ext
External_Interrupt(){}

Now, that is for PORTB pin RB0, it is possible to define an external interrupt for ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group