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 92 matches
CCS Forum Index
Author Message
  Topic: A/D Conversion Causing Noise in RS232 Data
weg22

Replies: 2
Views: 4366

PostForum: General CCS C Discussion   Posted: Thu Feb 01, 2007 11:24 am   Subject: A/D Conversion Causing Noise in RS232 Data
My code is below:


#include <16F877>
#device adc=8
#include <stdlib.h>
#include <math.h>

#define LED PIN_C0

#fuses HS,NOWDT,NOPROTECT,PUT,NOLVP
#use delay(clock=100 ...
  Topic: A/D Conversion Causing Noise in RS232 Data
weg22

Replies: 2
Views: 4366

PostForum: General CCS C Discussion   Posted: Thu Feb 01, 2007 10:50 am   Subject: A/D Conversion Causing Noise in RS232 Data
Hi all,

I'm reading in data from 2 sensors:

1. IR sensor using A/D conversion
2. SONAR sensor using software RS232

If I disconnect the IR sensor, the SONAR sensor is read flawlessly. Howeve ...
  Topic: 2 PICs and 1 Oscillator?
weg22

Replies: 6
Views: 9448

PostForum: General CCS C Discussion   Posted: Thu Jan 25, 2007 2:36 pm   Subject: 2 PICs and 1 Oscillator?
Yes, I have the MX045HS 10MHz oscillator.
  Topic: 2 PICs and 1 Oscillator?
weg22

Replies: 6
Views: 9448

PostForum: General CCS C Discussion   Posted: Thu Jan 25, 2007 2:14 pm   Subject: 2 PICs and 1 Oscillator?
Hi all,

I'm designing a PCB with 2 PICs on it. I was wondering if I can save space by using just one oscillator (i.e. feeding the output of the oscillator into both PICs CLK pin)?

Thanks,
-weg
  Topic: Is MAX232 chip required??
weg22

Replies: 5
Views: 10448

PostForum: General CCS C Discussion   Posted: Tue Jan 23, 2007 3:41 pm   Subject: Is MAX232 chip required??
Yep, that was it! Used the INVERT option and it worked perfectly! Thanks Sherpadog and PCM.

-weg
  Topic: Is MAX232 chip required??
weg22

Replies: 5
Views: 10448

PostForum: General CCS C Discussion   Posted: Tue Jan 23, 2007 3:10 pm   Subject: Is MAX232 chip required??
What signals are you referring to? Are you suggesting that my Tx and Rx lines are reversed? If so, this is not correct or I wouldn't be seeing any data coming in.
  Topic: Is MAX232 chip required??
weg22

Replies: 5
Views: 10448

PostForum: General CCS C Discussion   Posted: Tue Jan 23, 2007 2:31 pm   Subject: Is MAX232 chip required??
Hi all,

I am using the MaxSonar EZ-1 ultrasonic sensor. It outputs data in RS232 format. According to the 2nd page of the datasheet (see below), the RS232 voltages range from 0-5V and not -12V to ...
  Topic: Possible PWM Code??
weg22

Replies: 0
Views: 2826

PostForum: General CCS C Discussion   Posted: Sat Jan 20, 2007 1:04 pm   Subject: Possible PWM Code??
I found this post on the Microchip web site for generating PWM signals. Can anyone tell me how this could be written to compile with CCS?

Thanks in advance,
-weg

------------------------------ ...
  Topic: help with INT_RDA
weg22

Replies: 14
Views: 13445

PostForum: General CCS C Discussion   Posted: Thu Jan 11, 2007 4:38 pm   Subject: help with INT_RDA
Finally got it working!! Just wanted to thank everyone for all of their input. The solution was based off of Ttelmah's code, but with a modification based on ckielstra's code (actually, the "is ...
  Topic: help with INT_RDA
weg22

Replies: 14
Views: 13445

PostForum: General CCS C Discussion   Posted: Thu Jan 11, 2007 12:28 pm   Subject: help with INT_RDA
Mark,

I'm not sure how to check for transmission errors? Can you please explain?

Thanks,
-weg
  Topic: help with INT_RDA
weg22

Replies: 14
Views: 13445

PostForum: General CCS C Discussion   Posted: Thu Jan 11, 2007 11:47 am   Subject: help with INT_RDA
Ttelmah (or anyone),

I ran your code and by itself, it works perfectly! However, capturing this data from the sensor is a very small portion of my code. I have a ton of other things going on (e.g ...
  Topic: help with INT_RDA
weg22

Replies: 14
Views: 13445

PostForum: General CCS C Discussion   Posted: Thu Jan 11, 2007 8:56 am   Subject: help with INT_RDA
Hi all,

I have an ultrasonic sensor that outputs RS232 data in the following format:

Rxyz and then a carriage return

where xyz is a 3 digit number that represents distance. I'm using a globa ...
  Topic: How to read in analog voltages on AN0 & AN1??
weg22

Replies: 4
Views: 11575

PostForum: General CCS C Discussion   Posted: Fri Jan 05, 2007 11:05 am   Subject: How to read in analog voltages on AN0 & AN1??
Yeah, that worked - thanks PCM!
  Topic: How to read in analog voltages on AN0 & AN1??
weg22

Replies: 4
Views: 11575

PostForum: General CCS C Discussion   Posted: Thu Jan 04, 2007 2:01 pm   Subject: How to read in analog voltages on AN0 & AN1??
Hi all,

I have 2 IR sensors which output an analog signal corresponding to distance. I'm feeding the output from sensor #1 into AN0 and the output from sensor #2 to AN1. I'm trying to read each v ...
  Topic: What executes faster => pointers&funcs OR redundant o
weg22

Replies: 1
Views: 3538

PostForum: General CCS C Discussion   Posted: Fri Dec 15, 2006 9:58 am   Subject: What executes faster => pointers&funcs OR redundant o
Hi all,

I'm trying to figure out what is more efficient. I'm attempting many operations with a 4 component vector (quaternions for those who are familiar). I'm trying to figure out if it's more e ...
 
Page 1 of 7 Goto page 1, 2, 3, 4, 5, 6, 7  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group