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

Setting Baud rate for Pic18f4550
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
Krazzy7434



Joined: 21 Aug 2014
Posts: 39
Location: India

View user's profile Send private message

PostPosted: Tue Oct 21, 2014 12:14 pm     Reply with quote

Ttelmah wrote:
In which case it should work. With %c, instead of %x, it should send the 55 byte as expected. If it doesn't you need to be looking at the serial connection, not at the PIC clock.


Hi Ttelmah....
I made changes to the program as you said...but still no improvement...
random delay comes between adjacent bytes...
Is due to rs232 problem....???
Instead of geting 01010101 it gives 11111111 most of the times....0 appears rarely among bytes.

Thank YOU...
_________________
Krazzy7434
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Oct 21, 2014 12:25 pm     Reply with quote

Quote:
...i dont use max232 chip....instead i use a transistor based rs232 for communication...

Get rid of this and get a Max232 type chip.
Ttelmah



Joined: 11 Mar 2010
Posts: 19827

View user's profile Send private message

PostPosted: Tue Oct 21, 2014 12:50 pm     Reply with quote

RS232, needs the TX line to be held -ve when it is not transmitting.
Your random stuff between the bytes has all the marks of your 'driver', not reliably doing this.
As PCM_programmer says, try a MAX232. Once it works, you then know everything else is working.
Krazzy7434



Joined: 21 Aug 2014
Posts: 39
Location: India

View user's profile Send private message

PostPosted: Tue Oct 21, 2014 9:45 pm     Reply with quote

Hello guys...
okay... lets leave rs232 for a while....i m messing with it for a week... :D
I have got a 434 Mhz Rf module...,
I want to use use the TX and RX in same chip to see its working...also help me with antenna required for TX and RX....

Thank YOU..
_________________
Krazzy7434
Ttelmah



Joined: 11 Mar 2010
Posts: 19827

View user's profile Send private message

PostPosted: Wed Oct 22, 2014 12:36 am     Reply with quote

No.

Get the RS232 working _first_. RF modules, open another 'can of worms'...

Key when debugging is to always get the simplest stages working 'step by step'. Trying to jump steps, is what leads to threads that go on for weeks, and the problem always turns out to be something that experienced developers would have fixed at the earlier stages, before getting involved in another layer.

You need to prove that you can get simple RS232 working, before considering attaching RF modules.
Krazzy7434



Joined: 21 Aug 2014
Posts: 39
Location: India

View user's profile Send private message

PostPosted: Wed Oct 22, 2014 1:44 am     Reply with quote

Ttelmah wrote:
No.

Get the RS232 working _first_. RF modules, open another 'can of worms'...

Key when debugging is to always get the simplest stages working 'step by step'. Trying to jump steps, is what leads to threads that go on for weeks, and the problem always turns out to be something that experienced developers would have fixed at the earlier stages, before getting involved in another layer.

You need to prove that you can get simple RS232 working, before considering attaching RF modules.


Hello Ttelmah..

Actually., i m not quiting Rs232.....i ordered a max232, which will take 5-6 days to reach me....i thought meanwhile ,lets have some fun with RF modules...Thats all..
Actually my board consist of an inbuilt rs232 which is made of smd transistors.......too small to read the model...

Thank You...

Thank you...
_________________
Krazzy7434
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