HSERIN / SERIN Problem with 16f690


Closed Thread
Results 1 to 25 of 25

Hybrid View

  1. #1
    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.

  2. #2
    Join Date
    Oct 2008
    Posts
    10

    Default

    This is my config line

    Code:
     __config _XT_OSC & _WDT_ON & _MCLRE_ON & _CP_OFF

    Rob

  3. #3
    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

  4. #4
    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.

  5. #5
    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

  6. #6
    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.

  7. #7
    Join Date
    Oct 2008
    Posts
    10

    Default

    Here's the exact include I was using with mplabs

    Code:
            NOLIST
        ifdef PM_USED
            LIST
            include 'M16F6xx.INC'	; PM header
            device  pic16F690, intrc_osc_noclkout, wdt_on, mclr_on, protect_off
            XALL
            NOLIST
        else
            LIST
            LIST p = 16F690, r = dec, w = -302
            INCLUDE "P16F690.INC"	; MPASM  Header
            ;* __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _CP_OFF
    		__config _XT_OSC & _WDT_ON & _MCLRE_ON & _CP_OFF
            NOLIST
        endif
            LIST
    When I switched to melabs, I modified the top one. I'm guessing that the pickit / icd2 wasn't the problem but maybe a difference in the compiler. What do you think?
    Rob

Similar Threads

  1. HSERIN problem
    By eggman in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th October 2007, 21:31
  2. Serin Problem 16f819
    By jjohannson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd March 2007, 22:50
  3. SERIN AND SEROUT PROBELM USING 16f690 PIC
    By Charles in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 18th January 2007, 03:59
  4. Problem with PBP interrupt and Serin, please help
    By rgregor in forum mel PIC BASIC
    Replies: 0
    Last Post: - 22nd August 2006, 19:02
  5. HSERIN problem
    By s_syafiq81 in forum Serial
    Replies: 2
    Last Post: - 1st January 2006, 11: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