Serial output from OSC2 pin?

Discussion in 'Embedded Systems and Microcontrollers' started by allcircuit, Mar 21, 2009.

  1. allcircuit

    Thread Starter Active Member

    Jan 7, 2009
    31
    0
    I am using 16F88, due to all the ports B has been use for parallel communication with LCD, I try to use this pin as serial output (Only transmission needed). Can I have basic assembly code for this so that I can further modify it?
    I will appreciate for your help. Thanks
     
  2. allcircuit

    Thread Starter Active Member

    Jan 7, 2009
    31
    0
    anyone? Wish to get help here
     
  3. t_n_k

    AAC Fanatic!

    Mar 6, 2009
    5,448
    782
    Have you read the appropriate section (Chapter 11) in the 16F88 data sheet?

    Also search the Microchip website - there are application notes

    If you have the MPLAB software, there is an application Maestro assembler module for PIC 16 USART included.

    :)
     
  4. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    I've used an internal oscillator on a 16F627, and the best I could do is flash a heartbeat LED on it. Make sure the config flags are set for INTRC_XXX for which port either is an I/O or clock out.

    You might be able to move another function to that pin, and use the original pin for the serial.

    Another option: Use a shift register for the data lines on the LCD, it frees up a couple pins.
     
Loading...