PIC microcontoller 16f877a

Discussion in 'Embedded Systems and Microcontrollers' started by srinivas@adroit, Feb 4, 2012.

  1. srinivas@adroit

    Thread Starter New Member

    Feb 4, 2012
    8
    0
    why we need three timer in this controller
     
  2. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    Options, options, options.
     
  3. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
    You don't have to use them all if you don't want to.
     
  4. holnis

    Member

    Nov 25, 2011
    50
    4
    Each PIC microcontroller has up to three timers that you can either use as a timer or a counter (Timer 1 & 2) or a baud

    clock (Timer 2).
     
  5. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,866
    990

    What? You are complaining about 3?
     
  6. MrChips

    Moderator

    Oct 2, 2009
    12,429
    3,360
    Why complain? One of my chips has 64 16-bit timers.
     
  7. muaz89

    New Member

    Feb 4, 2012
    6
    0
    I want to ask a question, I would like to use PIC16F877A and I need a timer .. do I need to put the timer circuit 555 on me or I just need to use the coding "delay" to the PIC ..

    sorry, I am still new to this microcontroller field ..
     
  8. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,866
    990
    The PIC16F877A has two timers. Check your datasheet. Search for Pic timers. There are plenty of tutorials.

    Post back if you have other questions after reading up on timers for Pics.

    And there are a couple of threads in this forum on timers too.

    And don't hijack someone else's thread. If you have a question start your own thread.
     
  9. John P

    AAC Fanatic!

    Oct 14, 2008
    1,632
    224
    Not that I'm calling Spinnaker a two-timer or anything, but actually it's three.

    And any time you need more than one timer, you might do better to use just one but divide it down to get the rates you want. So you'd get an interrupt at a rate of (let's say) 10000 per second, and you'd take every 10th one to get 1000/sec, or every 50th one to get 200/sec, and so forth. It has the advantage that you only have to enable one interrupt, and the number of timed events you can control is pretty much unlimited (64 would be no problem). But as always, "it depends".
     
    Last edited: Feb 12, 2012
  10. muaz89

    New Member

    Feb 4, 2012
    6
    0
    thanks senior..ok ,next time if i have a question, i will start with my own thread..
     
  11. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,866
    990
    Oops you are right. Hey it was late last night when I looked at the data sheet! :)
     
  12. srinivas@adroit

    Thread Starter New Member

    Feb 4, 2012
    8
    0
    i need basic idea about MCP2510 configuration and interfacing, any one have it please send to me..

    Thank you !!!
     
  13. srinivas@adroit

    Thread Starter New Member

    Feb 4, 2012
    8
    0
    i waana detail about MCP2510

    Thanks!!!
     
  14. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    And if I had a million dollars...

    I'd be rich.
     
  15. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,866
    990
    Why are you hijacking someone else's thread?
     
Loading...