Pic10F202 Master clear will not turn off.


Results 1 to 23 of 23

Threaded View

  1. #20
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: Pic10F202 Master clear will not turn off.

    I took your code from your first post and it compiled to 92 words
    changed to
    Code:
    #CONFIG
        __config _WDT_OFF & _MCLRE_OFF & _CP_OFF
    #ENDCONFIG
    DEFINE OSC 4
    OPTION_REG=%01000000
    
    TRISIO = %00001000
    
    A VAR GPIO.0
    B VAR GPIO.1
    C VAR GPIO.2
    IN VAR GPIO.3
    
    
    BEGIN:
    GPIO = %00000111
    pause 1000
    GPIO = %00000000
    pause 1000
    goto BEGIN
    it's down to 66 words

    if you add "END"
    it jumps to 78

    To see what your PBP code is doing look at the .lst file, that might help you.
    If my poor memory serves me I believe Darrel said PBP Library uses 14 bytes of memory and you have a total of 24 for this chip.
    Last edited by Archangel; - 10th March 2015 at 20:28.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Replies: 2
    Last Post: - 24th February 2011, 01:35
  2. turn-off lcd and turn-on again
    By mehmetOzdemir in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th September 2009, 12:57
  3. GP3 Funtion on PIC10f202
    By kessral in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 10th March 2009, 19:49
  4. Does CLEAR Command clear return adrress of a subroutine?
    By sayzer in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 19th February 2008, 16:25
  5. PIC10F202 Variable trouble
    By George in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 13th October 2006, 02:14

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