Another 12F629 Rookie problem


Results 1 to 10 of 10

Threaded View

  1. #1
    Join Date
    Oct 2004
    Location
    Fayetteville Arkansas
    Posts
    44

    Default Another 12F629 Rookie problem

    I'm using a base code that worked to run a camera with a switch, added some fuses and was attempting to use the sleep command and an interupt to bring it out of sleep and operate the camera. I wanted the pic to basically sleep until the interupt occured. using the sleep with no period I get an error when compiling. If I add a period of 0, it will compile but the program doesn't do anything at all now. I guess I need help again.

    @ DEVICE pic12F629
    @ DEVICE pic12F629, MCLR_OFF
    @ DEVICE pic12F629, CPD_OFF
    @ DEVICE pic12F629, BOD_OFF
    @ DEVICE pic12F629, PWRT_ON
    @ DEVICE pic12F629, PROTECT_OFF
    SEN VAR GPIO.4
    POW VAR GPIO.1
    SHT VAR GPIO.2
    LOW SEN
    LOW POW
    LOW SHT
    INPUT SEN
    OUTPUT POW
    OUTPUT SHT
    BASE:
    ON INTERRUPT GOTO LOOP
    SLEEP
    GOTO BASE
    LOOP:
    HIGH sht
    PAUSE 100
    HIGH pow
    PAUSE 2000
    LOW POW
    PAUSE 4000
    LOW SHT
    PAUSE 6000
    HIGH POW
    PAUSE 1000
    LOW POW
    RESUME
    Last edited by BGreen; - 12th November 2004 at 03:25.

Similar Threads

  1. Problem with 12F629, servo and EEPROM
    By Atom058 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 1st March 2008, 09:53
  2. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  3. wierd problem with 12f629 Need Help Despretly
    By Nadeem in forum Off Topic
    Replies: 1
    Last Post: - 15th June 2005, 20:59
  4. Weird problem with 12F629
    By martarse in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 28th May 2005, 07:15
  5. Problem Pic 12f629
    By diegover in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 19th July 2004, 11:51

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