12F629 maximun Baudrate


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Zamora, Spain
    Posts
    11

    Default

    Thanks Melanie. I yesterday put a 20Mhz XTal and all in my "old fashioned assembler firmware" started to run under PBP (there is some line in assembler for the interrupt handler, but in general the program has won in clarity and number of features).
    Maxi.

  2. #2
    Join Date
    Mar 2008
    Posts
    59

    Default Re: 12F629 maximun Baudrate

    I am using a 12f629 when I use the internal oscillator my project runs great, However when I switch to the below config and use a 10 mhz ceramic resonator my project does nothing. Please help me understand what I am doing wrong?

    #CONFIG
    cfg = _HS_OSC_
    cfg&= _WDT_ON ; WDT enabled
    cfg&= _PWRTE_OFF ; PWRT disabled
    cfg&= _MCLRE_OFF ; GP3/MCLR pin function is digital I/O, MCLR internally tied to VDD
    cfg&= _BODEN_ON ; BOD enabled
    cfg&= _CP_ON ; Program Memory code protection is enabled
    cfg&= _CPD_OFF ; Data memory code protection is disabled
    __CONFIG cfg
    #ENDCONFIG

    define OSC 10

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: 12F629 maximun Baudrate

    Give this a try.

    Code:
    #CONFIG
        __config _HS_OSC & _WDT_ON & _MCLRE_OFF & _CP_OFF
    
    #ENDCONFIG
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Mar 2008
    Posts
    59

    Default Re: 12F629 maximun Baudrate

    Thank You for your reply! I am up and running. Your code worked and I found my code should have been

    #CONFIG
    cfg = _HS_OSC
    cfg&= _WDT_ON
    cfg&= _PWRTE_OFF
    cfg&= _MCLRE_OFF
    cfg&= _BODEN_ON
    cfg&= _CP_ON
    cfg&= _CPD_OFF
    __CONFIG cfg
    #ENDCONFIG

    define OSC 10

Similar Threads

  1. 12F629 LDR - Light Dependant Resistor
    By Dennis in forum Schematics
    Replies: 15
    Last Post: - 18th February 2010, 23:33
  2. Basic help for 12F629
    By Gene Choin in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd September 2009, 05:06
  3. sleep on 12f629
    By sirvo in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 8th February 2007, 15:08
  4. Servo control with 12F629
    By achilles03 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th June 2005, 00:34
  5. 12F629 I2C problems
    By AIW128ProGuy in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 12th November 2004, 00:41

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