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

different Project using rs-232 and PWM carrier sg, possible?

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



Joined: 14 Apr 2004
Posts: 5

View user's profile Send private message

different Project using rs-232 and PWM carrier sg, possible?
PostPosted: Tue Aug 23, 2005 1:44 am     Reply with quote

Hi to Everyone,

I am trying to build a little different project which uses soft rs-232 and 20kHz signal as a carrier for rs-232.

I did this with a hardware version, I mean I add the output of rs-232 pin with 20kHz signal which I produce with an oscillator, and it is working. But in order to free some space and components I want to this with software.

In other words, I want to define rs-232 and pwm, when the soft tries to transmit rs-232 data, it will actually enable the pwm output with 20kHz. But how can I define that the tx pin will actually enable the pwm output? OR can I change the internal rs-232 function to do this? Rx pin will work as it is. Any ideas?

Thanks,
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Tue Aug 23, 2005 7:14 am     Reply with quote

You will have to bit bang the data out or use a hardware solution that "ANDs" the pwm and rs232 signals together.
cagacug



Joined: 14 Apr 2004
Posts: 5

View user's profile Send private message

PostPosted: Tue Aug 23, 2005 7:18 am     Reply with quote

Thanks for the reply.

Can you explain or give example of "bit bang" ing?
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Tue Aug 23, 2005 7:20 am     Reply with quote

Set pin high
wait
set pin low
wait
and so on


This means that you must manually create the waveform by toggling a pin!
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