Weird issue with Lab X1


Closed Thread
Results 1 to 29 of 29

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default

    Yeah, I looked at the generated files and opened up LST, very interesting.

    I noticed it was already picking up P16F877.INC.

    Then it picked up PBPPIC14.LIB.

    And then further down it tried to open the include I provided. So it seems as if everything is in there now. Except it uses this for the switches:

    __config _XT_OSC & _WDT_ON & _PWRTE_ON & _LVP_OFF & _CP_OFF

    And I'm wondering if this is what I have to set properly, and how.


    EDIT: And yes, I am pointing to MPASM in MicroCode Studio Plus.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

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


    Did you find this post helpful? Yes | No

    Default

    Yup, fuse are very important

    You can modify the *.inc file or set them in code.
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default

    That's what I'm trying to do, thanks.

    I don't like changing the include, in case I have different needs in another program.

    So I tried this:

    @ __config _CP_OFF & _DEBUG_OFF & _WRT_ENABLE_ON & _CPD_ON & _LVP_ON & _BODEN_ON & _PWRTE_ON & _WDT_ON & _XT_OSC


    But it's doing the same thing, the speed goes crazy when I reconnect.

    Not sure if I set the switches properly though.

    EDIT: I list all switches, that way I can easily see what is available without going back to datasheet, even if I use default values.
    Last edited by Demon; - 12th March 2010 at 03:55.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

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


    Did you find this post helpful? Yes | No

    Default

    Might want to turn LVP off, I do not think you are using it.

    I keep going back to hat fancy OSC thing. The 877 is pretty straight forward. Has to be the OSC acting up to cause a change in speed. Power cycling causing a clitch? And somehow the programmer is resetting it?
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default

    LVP OFF is the first thing I tried, no diffference.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default You are not going to believe this.

    I unplug the USB cable to the programmer or disconnect the programmer completely from the Lab X1, touch the oscillator and the timing returns to normal speed!

    Ok, so what can be the causes of something like this? This goes into capacitance stuff and that's over my head.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

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


    Did you find this post helpful? Yes | No

    Default

    Being I just learned about that OSC and have not pulled the data sheet I do not know.

    But...

    I will make an assumption that this board was in storage since you say you have been out of this for awhile. Look for loose/broken connections and corrosion/tin whiskers.

    Maybe put it under a heat lamp for a bit.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Making the Lab X1 communicate with the Lab X2
    By MatthewM in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 19th June 2008, 23:26
  2. Newbie with LAB X1 timming problem
    By schlaray in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th November 2006, 01:30
  3. Weird compile issue 7 segment LED display
    By George in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st June 2006, 03:12
  4. 18F1320 ... Strange Memory
    By Acetronics2 in forum mel PIC BASIC Pro
    Replies: 43
    Last Post: - 9th April 2006, 10:55
  5. code conversion
    By saturnX in forum mel PIC BASIC
    Replies: 19
    Last Post: - 3rd October 2005, 18:17

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