Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: gulgul 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?
-
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 (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 (http://www.microchip.com/forums/tm.aspx?m=358912)
and the getting started forum
http://www.microchip.com/forums/tt.aspx?forumid=170 (http://www.microchip.com/forums/tt.aspx?forumid=170)
Specifical for the PIC timers:
http://www.microchip.com/forums/tt.aspx?forumid=41 (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
-
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.