Author Topic: Timer0 problam please help me?  (Read 2011 times)

0 Members and 1 Guest are viewing this topic.

Offline gulgulTopic starter

  • Beginner
  • *
  • Posts: 3
  • Helpful? 0
Timer0 problam please help me?
« on: January 28, 2010, 09:29:08 AM »
sir,
    I used pic 16f877a in programming.my compiler is MPLAB ICD3. i write a simple program to connect switch PORTD5. when the switch is on condition (RD5==0)(PORTB is used for out put) RB2=1;connect a led it is glow this is ok.this time i connect a buzzer in RB3=1;this buzzer is beep 30 seconds intervals .switch off condition all are off. How write this time based interval program please help me?

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 99
Re: Timer0 problam please help me?
« Reply #1 on: January 28, 2010, 03:23:05 PM »
That's a pretty broad request. Microchip has many on-line resources. Check the many app notes for one. Second check into their users forum in particular the two collections of link.
http://www.microchip.com/forums/tm.aspx?m=391727
Do look up the gooligum tutorials in the Flying with Software.
http://www.microchip.com/forums/tm.aspx?m=358912
and the getting started forum
http://www.microchip.com/forums/tt.aspx?forumid=170

Specifical for the PIC timers:
http://www.microchip.com/forums/tt.aspx?forumid=41

There is plenty in the above links to get you going.

good luck and have fun

Offline duste83

  • Jr. Member
  • **
  • Posts: 16
  • Helpful? 0
Re: Timer0 problam please help me?
« Reply #2 on: February 04, 2010, 12:29:16 PM »
Did you also make sure you set up the ports for in or out?  what about the pic options?  it would also help if you could post a schematic.