Please help a new guy get going with a PIC10F222


Results 1 to 12 of 12

Threaded View

  1. #3
    Quacker's Avatar
    Quacker Guest


    Did you find this post helpful? Yes | No

    Default

    I have just gotten the chip to ALMOST work correctly. The only port that I can't get control of is GP.2. This port is shared with a clock that seems to be part of the timer, Tmr0. I can't tell from the data sheet, how to gain control. Perhaps someone can help. I figure that once i'm in control of the ports hat it will be much easier to get them to do what I want. Here is the listing that works. Note that GP.3 is always an input and I don't expect to see an noutput on it. Yes, I did throw the kitchen sink at it, but hey...

    @ Device PIC10F222, IOFSCS_4MHZ, MCPU_OFF, WDT_OFF, PROTECT_OFF, MCLR_OFF

    tmr0= %00000000
    TRISIO =%0000
    ADCON0 = %000000
    GPIO = %0000

    Start:
    high gpio.2 'test
    high gpio.0
    high gpio.1

    pause 1

    low gpio.2
    low gpio.0
    low gpio.1

    pause 9

    goto start
    Last edited by Quacker; - 28th May 2006 at 02:29.

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, 05:01
  2. Help with waking a PIC10F222
    By brid0030 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd August 2009, 03:08
  3. Programming PIC10F222
    By brid0030 in forum General
    Replies: 5
    Last Post: - 19th August 2009, 23:43
  4. I shut this guy down
    By T.Jackson in forum Off Topic
    Replies: 5
    Last Post: - 25th May 2007, 04:27
  5. Danger ...unfair Guy
    By Acetronics2 in forum Off Topic
    Replies: 3
    Last Post: - 10th September 2005, 12: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