12f675_fuse_about_to_blow!


Results 1 to 40 of 929

Threaded View

  1. #33
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Cheers mackrackit, I was pretty close then-ish.

    I think I've got the whole sequence now:

    INTCON REG bit 3 set to 1 enables the INTCON REG flag bit 0. Bit 0 changes 'flags' when a button is pressed which is controlled by ( IOC = %00011000 - the buttons in effect)

    It was this line from the program that threw me:

    Code:
    INTCON.0 = 0    ' No buttons down, so clear int on change flag
    I originally thought that if no buttons were down then INTCON.0 = 0 so there was no flag to clear but on reading Bruce's:
    ' No buttons down, so clear int on change flag
    made me think it must be set to '1'.

    Thanks for the explanation.

    Dave
    Last edited by LEDave; - 14th November 2010 at 17:21.

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