12F508 strange timing


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    GP3 is always an input pin no matter what you do.

    Also, when you set a pin as an output pin, like you frequently do in your code, the weak pull-up register won't work the next time the same pin is set to be an input pin.

    If you assign a pin as an input pin AFTER you set it to an output pin previously, then you need to register to weak pull-up register again.



    ----------------------------
    Last edited by sayzer; - 22nd April 2007 at 10:45.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Ah, ...

    Last but not least ...

    is MCLR configured as "internal MCLR" ... ???

    didn't see anything about ...

    Alain

    PS: May be THIS .asm listing could help ... same function, but rotation selected by TWO pins ( stop allowed ...) !!!
    Attached Files Attached Files
    Last edited by Acetronics2; - 22nd April 2007 at 09:58.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Apr 2007
    Posts
    2


    Did you find this post helpful? Yes | No

    Default

    [QUOTE=Acetronics;36807]Ah, ...

    Last but not least ...

    is MCLR configured as "internal MCLR" ... ???

    Thanks for the reply Alain,
    I modified the inc file and set MCLR_OFF.

    I've since refined it, it has nothing to do with the blocks of code. Pulling GPIO low slows the chip down. It has this effect on the simplest of code (flashing led). Tonight I'll write something in C to see if it's a language thing.
    The circuit is a friends, I'll draw a schematic from the board layout and see if he's done anything hinkey..

    PK

Similar Threads

  1. 12F683 serout timing
    By Hobie Cat in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 21st December 2009, 16:57
  2. Convert code 12C508 to 12F508
    By Olivier in forum General
    Replies: 2
    Last Post: - 25th October 2009, 16:19
  3. 18F2550 timing
    By sstt1976 in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 22nd August 2008, 00:30
  4. HSEROUT buffering and timing - 16F88
    By picster in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 5th March 2006, 17:52
  5. Strange ASM file
    By barkerben in forum General
    Replies: 2
    Last Post: - 29th November 2004, 18:54

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