This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem With Serial Communication

I am using the RXD & TXD of the '51 to communicate with 232 and now i want to use the second port of the 232. How do i go abt doin it since i have exhausted my RXD and TXD.
Please Help.
ajay

Parents Reply Children
  • Stefan Duncanson

    I did not understand by 'bit bang' can what dose that mean can i use any pins and connect them to 232?

  • what dose that mean can i use any pins and connect them to 232?
    yes and no
    yes you can BUT
    the software overhead will be enormous and other operations may suffer.

    Bit banging is not a "good" method, it is a possibility that should be used with extreme caution.

    If you try this method, first select the dual UART processor you will use, if the bit banging does not allow your code to work succesfully, and assign the bitbang to the same pins as the second set of UART pins on that processor. That way you will, at least, not have to redo the hardware when you find that the bitbang inhibits the operations you need.

    Somewhere in cyberspace is a method floating around that uses the PCA as a bit-bang controller, that one seems to fall between HW UART and bit-bang in overhead requirements.

    There is one additional weakness to most bit-bang routines which is that they are much less tolerant of bitrate errors than the HW UART.

    Erik

  • thnks 4 the info Eirk
    my i am lookin 4 other alternative then changing the chip is cause i got the h/w alread y designed and the use of the 2nd 232 port just came into picture. Not enough planning ahead :D ?
    i will try it out
    it would be some help if i get some examples frm some where
    one more person told me bt makin it as a Virtual 232 port on some other pins

  • thnks 4 the info Eirk
    my i am lookin 4 other alternative then changing the chip is cause i got the h/w alread y designed and the use of the 2nd 232 port just came into picture. Not enough planning ahead :D ?
    i will try it out
    it would be some help if i get some examples frm some where
    one more person told me bt makin it as a Virtual 232 port on some other pins

    I have the solution but refuse to answer Stupid Monkey S#|+

    What is wrong with words like "for" "you" etc? instead of insultinhg everyones intelligence with thic childish behavour.

    Erik