HSERIN / SERIN Problem with 16f690


Closed Thread
Results 1 to 25 of 25

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest

    Default

    Does the F690 run from the external crystal by default?
    Try removing DEFINE OSC 3 and see what happens.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    default config line is...
    Code:
     device  pic16F690, intrc_osc_noclkout, wdt_on, mclr_on, protect_off
    We don't see any config fuse setting here, so this would make some sense...
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Oct 2008
    Posts
    10

    Default

    This is my config line

    Code:
     __config _XT_OSC & _WDT_ON & _MCLRE_ON & _CP_OFF

    Rob

  4. #4
    Join Date
    Oct 2008
    Posts
    10

    Default

    Success!!
    Okay, same setup. Same code. This time compiling was done with the melabs compiler (instead of mpasm) and downloaded with a pickit2 (instead of an ICD2). I'm going to investigate this more and post my findings.

    Rob

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

    Default

    Quote Originally Posted by rborsuk View Post
    Success!!
    Okay, same setup. Same code. This time compiling was done with the melabs compiler (instead of mpasm) and downloaded with a pickit2 (instead of an ICD2). I'm going to investigate this more and post my findings.

    Rob
    Great!!

    Are you setting the configs in you code or the inc file?
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Oct 2008
    Posts
    10

    Default

    I was setting them in the 16F690.INC file in the PicBasic Pro (PBP) folder. That's the right spot, correct?

    Rob

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

    Default

    Quote Originally Posted by rborsuk View Post
    I was setting them in the 16F690.INC file in the PicBasic Pro (PBP) folder. That's the right spot, correct?

    Rob
    That is the spot.
    The are two sections in that file. One for MELABS and one for MPASAM.

    Just wondering if you are modifying the settings for MELAB and not MPASAM?
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. HSERIN problem
    By eggman in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th October 2007, 22:31
  2. Serin Problem 16f819
    By jjohannson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd March 2007, 23:50
  3. SERIN AND SEROUT PROBELM USING 16f690 PIC
    By Charles in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 18th January 2007, 04:59
  4. Problem with PBP interrupt and Serin, please help
    By rgregor in forum mel PIC BASIC
    Replies: 0
    Last Post: - 22nd August 2006, 20:02
  5. HSERIN problem
    By s_syafiq81 in forum Serial
    Replies: 2
    Last Post: - 1st January 2006, 12:05

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