Instability with the 12F629


Results 1 to 10 of 10

Threaded View

  1. #6
    Join Date
    May 2004
    Location
    New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default

    Hey Butch - good to see ya starting on the programming - stuffs almost as addictive as the cams !!

    Was just looking over the 12F629 data sheet and it looks like it has lots of functions like comparators, A/D inputs, and such.

    There will be a bunch of registers like INTCON and OPTION_REG that are pre-set by PBP - you'll sometimes need to set them up manually in order to make sure all your pins are functioning as digital In/Outs, etc (unless you want the analog stuff).
    Caused some headaches for me on the 16F628's until I figgured it out (Brian helped out a lot!).
    Don't know what the PBP presets are for the 12F629.

    You might want to use the GPIO.2 'external interrupt' pin as your sensor input and assign weak pullups and trigger on falling edge (see INTCON and OPTION registers in data sheet).

    I think the "ON INTERRUPT" command could then be used while you put the chip to sleep (not sure on the '629).

    Arch
    Last edited by Archilochus; - 11th November 2004 at 02:42.

Similar Threads

  1. Input problems with 12F629?
    By achilles03 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 24th April 2018, 07:25
  2. Basic help for 12F629
    By Gene Choin in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd September 2009, 05:06
  3. sleep on 12f629
    By sirvo in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 8th February 2007, 15:08
  4. Servo control with 12F629
    By achilles03 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th June 2005, 00:34
  5. 12F629 I2C problems
    By AIW128ProGuy in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 12th November 2004, 00:41

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