addressing general IO


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2008
    Posts
    5

    Exclamation addressing general IO

    I recently starting programing a PIC12F675 and am currently trying to get it to blink an LED so I can prove that it is working. But I am having no luck despite the programer claiming to have successfully uploaded. My question is how do I address the 12F675's pins to turn them high and low when in the data sheet the output pin do not belong to a port but are "General IO".

    I am currently trying:
    loop:
    high 0
    pause 500
    low 0
    pause 500
    goto loop

    Do I need to set the pin to an output?
    Should I asume that the outputs are on port B and say: high portb.0

    Any help would be appreciated.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Replies: 5
    Last Post: - 8th January 2014, 05:18
  2. No posting access to general forum or attachments
    By Robotica1 in forum Off Topic
    Replies: 1
    Last Post: - 12th July 2007, 16:02
  3. ASM Addressing method help needed
    By sougata in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th January 2007, 17:01
  4. Newbie: Serial IO
    By JamieLynn in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 24th April 2006, 11:55
  5. PIC to PIC, How Many IO Connections Required?
    By CocaColaKid in forum Serial
    Replies: 4
    Last Post: - 1st September 2005, 17:16

Members who have read this thread : 1

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