Extreme Noobie question 12F675


Results 1 to 12 of 12

Threaded View

  1. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    ? #1 - Are you using PicBasic or PicBasicPro? I assume PicBasic. Which version?

    PIC12F675 doesn't have PortA, it's got GPIO.
    But I see you're using TRISA/PORTA as an alias for GPIO...
    Do you have a pullup resistor on the button? Is it connected to Vdd or Vss directly? Does it float if the button isn't pressed?
    How about trying something like this:
    Code:
    POKE $9f,0:POKE $1f,254:POKE $85,255:symbol PORTA=5:POKE PORTA, 0
    Loop1: PEEK PORTA, B0 'COPY PORTA REG, PUT IN VARIABLE B0
    IF B0 = 1 THEN HIGH 0
    IF B0 = 0 then LOW 0
    goto loop1
    end
    The ONLY thing that happens here is that the LED follows the button...that's it. Nothing else..
    At least that's the only thing that SHOULD happen...
    Last edited by skimask; - 23rd June 2008 at 07:58. Reason: Duh factor kicked in...

Similar Threads

  1. Still 12F675 question
    By F1CHF in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th August 2009, 22:09
  2. Noobie Question
    By mel4853 in forum mel PIC BASIC
    Replies: 19
    Last Post: - 2nd July 2006, 13:45
  3. 12F675, MPLAB programming question
    By EASY in forum General
    Replies: 0
    Last Post: - 2nd April 2006, 20:28
  4. 12f675 programming question
    By puggy in forum General
    Replies: 3
    Last Post: - 1st December 2004, 00:34
  5. 12f675 internal osc question.....
    By Gabe@SPdFtsh in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th January 2004, 07:33

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