Getting 19200 baud serial out of a PIC


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Location
    Maine, USA
    Posts
    81

    Default Re: Getting 19200 baud serial out of a PIC

    That's a really cool chip - but it is pricey. I'm still on PBpro 2.50 - time to upgrade I guess. But I will try out the 12F615 first, I'm getting some next week. My bluetooth (BTM-182) unit needs true serial so that is OK.

    Thanks Darrell - you da man!
    "Do or do not, there is no try" Yoda

  2. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530

    Default Re: Getting 19200 baud serial out of a PIC

    Quote Originally Posted by tekart View Post
    That's a really cool chip - but it is pricey.
    It is about the same price as the PIC12f675, give or take 10 cents.

    http://www.microchipdirect.com/Produ...rds=pic12f1822

  3. #3
    Join Date
    Sep 2008
    Location
    Maine, USA
    Posts
    81

    Default GOT 19200 baud serial out of a 12F615

    Got some 12F615 chips today, and when I remembered to configure the internal oscillator for 8MHz it produced nice 19200 baud using SEROUT2:

    serout2 tx,32,1,[69,10,13] ' test serial output

    Thanks all!
    "Do or do not, there is no try" Yoda

  4. #4
    Join Date
    Dec 2005
    Posts
    1,073

    Default Re: GOT 19200 baud serial out of a 12F615

    Quote Originally Posted by tekart View Post
    Got some 12F615 chips today, and when I remembered to configure the internal oscillator for 8MHz it produced nice 19200 baud using SEROUT2:
    Thanks for the feedback.

  5. #5
    Join Date
    Jan 2007
    Posts
    78

    Default Re: GOT 19200 baud serial out of a 12F615

    I had a project 2 winters ago with the 12F675 sending commands to an HF transceiver at 19200 with the chips internal oscillator.
    I ended up bit-banging the output.
    I wouldn't have attempted this if it hadn't been for the fact that the commands were easy to derive.
    Basically, commands included: Select next Frequency band UP, Select next Frequency band DOWN, shut off transmit power, turn ON transmit power, scan up frequency, scan down frequency.
    The challenge was the commands were 32bit segments.
    I used the OSCAL command and a digi-oscope to get the bit-widths correct for that baud rate.
    I may have the code stashed away in notes somewhere, but not sure since that was so long ago.
    Anyway, just to give a report that the chip can output serial at that speed.
    But at that time, I was using PICBASIC (not the picbasic-pro) compiler.
    Good luck! and have fun

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts