View previous topic :: View next topic |
Author |
Message |
Krazzy7434
Joined: 21 Aug 2014 Posts: 39 Location: India
|
|
Posted: Tue Oct 21, 2014 12:14 pm |
|
|
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
|
|
Posted: Tue Oct 21, 2014 12:25 pm |
|
|
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: 19828
|
|
Posted: Tue Oct 21, 2014 12:50 pm |
|
|
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
|
|
Posted: Tue Oct 21, 2014 9:45 pm |
|
|
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: 19828
|
|
Posted: Wed Oct 22, 2014 12:36 am |
|
|
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
|
|
Posted: Wed Oct 22, 2014 1:44 am |
|
|
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 |
|
 |
|