Pic16f690 and basic Serial Com


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    DEFINE OSC 3
    Would be for an external 3.579Mhz "Color Burst" crystal.

    If you are using the Internal Oscillator, the default on a 16F690 is 4Mhz.

    DEFINE OSC 4

    DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
    DEFINE HSER_TXSTA 20h ' Enable transmit, BRGH = 0
    DEFINE HSER_SPBRG 25 ' 2400 Baud @ 4MHz, 0.17%
    DEFINE HSER_CLROERR 1 ' Clear overflow automatically
    DT

  2. #2
    Join Date
    May 2010
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Thanks so much, worked a treat

Members who have read this thread : 0

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

Posting Permissions

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