Simple program - Strange problem!


Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Nov 2009
    Location
    London
    Posts
    251

    Exclamation Simple program - Strange problem!

    Hi

    PIC used: 12F635

    In my code:
    GP 0,1,2 are outputs
    GP 5,4,3 are inputs.
    Two outputs are latching (GP 0,1 ) and third one (GP2) stays on for 5 seconds only

    The problem
    The latching part is not working fine. When GP5 is pressed, GP0 goes high but it doesn't go low when GP5 is pressed again - instead it goes low when GP4 is pressed ! GP4 - GP1 pair work fine by themself- when GP4 is pressed once GP1goes high and when GP4 if pressed again - GP1 goes low.

    My code is attached - Please help if you can:
    Attached Files Attached Files

Similar Threads

  1. INT interrupt problem
    By netstranger.nz in forum General
    Replies: 5
    Last Post: - 13th October 2009, 07:52
  2. Strange behaviour of my PBP code.
    By Fredrick in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th August 2009, 20:20
  3. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  4. PIC18F4525 & LCD simple code problem
    By aggie007 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd November 2007, 16:29
  5. Strange problem with PBP 2.50
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th October 2007, 20:45

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