Timer 1 Interrupt


Closed Thread
Results 1 to 5 of 5
  1. #1
    tjstevens's Avatar
    tjstevens Guest

    Unhappy Timer 1 Interrupt

    I'm trying to turn-on PortB.1 during a time interval. I am also monitoring the Timer 1 Interrupt to make sure the interrupt is working. I can't seem to transfer a bit value outside the interrupt routine. Can anyone help?
    Attached Files Attached Files

  2. #2
    Join Date
    Jul 2003
    Location
    Sweden
    Posts
    237


    Did you find this post helpful? Yes | No

    Post

    You don't seem to set PortB.1(Drive) to output anywhere. Use LOW,HIGH,OUTPUT or TRISB.1=0.

    /Ingvar

  3. #3
    tjstevens's Avatar
    tjstevens Guest


    Did you find this post helpful? Yes | No

    Question

    I've modified the program to give a pulse every 10 sec. It only works inside the interrupt. I need to turn on a bit during a time interval in the main loop but I can't seem to get any response there.
    Attached Files Attached Files

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    can you try...
    if Seconds==5 then 'yes 2 equal sign
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Jul 2003
    Location
    Sweden
    Posts
    237


    Did you find this post helpful? Yes | No

    Post

    ..... and now you're not setting PortB.0 to output anywhere.

Similar Threads

  1. Thermo 7 segments - little problem
    By fratello in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 27th July 2013, 08:31
  2. RS485 bus - starting probem
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th January 2010, 14:35
  3. 32 bit square root
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 6th May 2009, 04:37
  4. one line led light make image
    By bioul in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 13:19
  5. HSERIN doesn´t work
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th July 2007, 15:23

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