Thread: External Counter, Plese Help

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    5

    External Counter, Plese Help

    Hello,

    I'm currently programming my first ever project. Its a multimeter specifically desinged to be used to test solar panels, batterys and lanterns on buoys.

    I need to have two buttons to control it. but i only have 1 external inturrupt available on the microcontroller. So i have used an external timer set to FFFF so that when the button is pressed the timer roles over and generates an interupt. as part of the ISR the timer is set back to FFFF.

    However whenever i disable and reinable the timer the button must be pressed twice before it works. once to 'wake it up' it seems and once to acutally use it. I have managed to program all stages so that the button does not need to be disabled however upon start up of the unit when i enable all the timers and interupts the problem still ocurrs.

    Does anyone have any suggestions on how to fix this? I would greatly appreciate any help.

    Best regards,

    Dan
    Last edited by SMTU_1; 07-31-2007 at 03:10 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  4. debug to release modes
    By DavidP in forum Game Programming
    Replies: 5
    Last Post: 03-20-2003, 03:01 PM
  5. Ask about these "unresolved external symbol" error
    By ooosawaddee3 in forum C++ Programming
    Replies: 1
    Last Post: 06-29-2002, 11:39 AM