1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

I need help to program in C language a timer0 interruption

Discussion in 'Microcontrollers' started by Pat-21, May 7, 2003.

  1. Pat-21

    Pat-21 New Member

    Joined:
    Apr 8, 2003
    Messages:
    4
    Likes:
    0
    I have a pic16F84A and I want it to do set RB7 after 60 seconds. I'm using 8 MHz crystal and the count of the counter should be 1832 (60 seconds).

    Please I need help, it's very important.
     
  2. kinjalgp

    kinjalgp Active Member

    Joined:
    Oct 28, 2002
    Messages:
    1,851
    Likes:
    3
    Location:
    INDIA/USA
    Since you are using C, use "int" data type (16-bit) for counting more than 255 (8-bit).
     

Share This Page