I am developing a PIC16F676 based program for square wave inverter. I am using internal 4 MHz oscillator MCLRE off and i needed the information about how to configure the timers for a specific time delays. Plz give any formula if.
Printable View
I am developing a PIC16F676 based program for square wave inverter. I am using internal 4 MHz oscillator MCLRE off and i needed the information about how to configure the timers for a specific time delays. Plz give any formula if.
Datasheet DS40039A. See Section 4 for Timer0 Module, see Section 5 for Timer1 Module. At 4MHz, one Timer tick is equal to 1uS. The sections are very clear as to the operation of the Timers, and the settings of the various Registers. DOWNLOAD the Datsheet from the Microchip website.
Hi and welcome on the forum,
I'll suggest you to use my PicMultiCalc, it will help you to find the right setting. Click on Timer Helper and enter your parameter in.
Once you have them, just set the according register.
You can download it for free at the following link
http://www.mister-e.org/pages/utilitiespag.html
Enjoy!
I am using timer0 in PIC 16F676 for PWM generation. I am giving the steps i followed for the general controller initialization and interrupt initialization. Its not working well. i have to made power ON/OFF several times then PWM generation starts,the part before interrrupt initialization is working well.I am also using ADC but without interrupts.I am using internal osc. without clk,MCLRE disabled.Plz also give how to write configuration bits in MPLAB software,ITS HURRY, Thanks.
Deuh, sure it's not your whole program....
and your condif fuse line MUST looks likeQuote:
Originally Posted by MPLAB
Code:__CONFIG _INTRC_OSC_NOCLKOUT & _CPD_OFF & _CP_OFF & _BODEN_OFF & _PWRTE_ON & _WDT_OFF
Thanks friends for giving attention on my thread.I am feeling very happy to say that i have got the solutions from microchip pdf files and prog is working nicely.