Please help a new guy get going with a PIC10F222


Results 1 to 12 of 12

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    data sheet section 4.5 OPTION REGISTER

    Now try
    Code:
    @ Device PIC10F222, IOFSCS_4MHZ, MCPU_OFF, WDT_OFF, PROTECT_OFF, MCLR_OFF
    OPTION_REG.5=0 ' TOCS = FOSC/4
    ADCON0 = 0
    TRISIO =0
    GPIO = 0
    
    Start:
        high gpio.2 'test
        high gpio.0
        high gpio.1
    
        pause 500
    
        low gpio.2
        low gpio.0
        low gpio.1
    
        pause 500
    
        goto start
    Last edited by mister_e; - 29th May 2006 at 14:36.
    Steve

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

Similar Threads

  1. I2C with a PIC10F222 - is it possible
    By brid0030 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th September 2009, 04:01
  2. Help with waking a PIC10F222
    By brid0030 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd August 2009, 02:08
  3. Programming PIC10F222
    By brid0030 in forum General
    Replies: 5
    Last Post: - 19th August 2009, 22:43
  4. I shut this guy down
    By T.Jackson in forum Off Topic
    Replies: 5
    Last Post: - 25th May 2007, 03:27
  5. Danger ...unfair Guy
    By Acetronics2 in forum Off Topic
    Replies: 3
    Last Post: - 10th September 2005, 11:57

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