Hardware or software

Discussion in 'Embedded Systems and Microcontrollers' started by sanwa, Apr 6, 2009.

  1. sanwa

    Thread Starter Active Member

    Jan 18, 2009
    36
    0
    Hi...I am using 16F88 as the MCU for my project. As from the data sheet, i know it has a built in hardware uart function which ease the job for serial transmission. However all ports are being used up... i change my mind to use OSC2 (bidirectional IO) for serial tx. So it needs software UART instead of hardware UART for this to work? Anyone can gv me any idea? Thanks
     
  2. efox

    Member

    Aug 8, 2006
    11
    0
    You can do 2 things.

    1. Bit bang serial transmission (software). It shouldnt be that hard.
    2. Change your pin mapping around so that you can use the hardware uart.

    What compiler are you using ? If you use CSS PIC C, then it comes with prebuilt libraries for both hardware and software based uart.

    But if not, you can do a quick google search to find the code you are looking for. It probably wont be for the exact mcu you are using, but the logic is still the same and with some slight modification, you can easily make it do what you want it to do.

    good luck
     
Loading...