39 Threads found on edaboard.com: Pic Frequency Counter C Code
counter-app with 16c5x:
Can't believe it is so hard to browse a website (o;
Though it's not for the exact MCU as you want...bus since you are an experienced pic guy it won't be hard to adapt it (
Microcontrollers :: 19.09.2004 08:24 :: davorin :: Replies: 8 :: Views: 13984
someone have developped a picbasic program for frequency counter pic based?
Microcontrollers :: 26.09.2004 12:41 :: leemarrow :: Replies: 16 :: Views: 11889
pic16F628 is not recommended by Microchip for new project. As a drop-in replacement the suggest pic16F628A .. so code for 628 is good for 628A ..
Microcontrollers :: 01.10.2005 23:40 :: IanP :: Replies: 2 :: Views: 1437
i am considering to design a frequency counter using atmega8, i want to use asynchronous operation of timer/counter2.
frequency counter developed by pic asynchronous timer is ther.... but i want to make it with atmega8.....
need some suggestion.. (...)
Microcontrollers :: 14.12.2006 08:08 :: arnab.bhaumik :: Replies: 18 :: Views: 20363
i did lots of work on frequency meter from silicon chip , did not succeed.
i am looking for another small but good working frequency meter using pic16F84A
last time i saw the ckt of such kind with 0.8vpp sensitivity , i am not exacty remember
web add of it but everything is given on that web page , and the pcb size of that (...)
Microcontrollers :: 23.01.2008 13:09 :: manish12 :: Replies: 3 :: Views: 4705
I did something similar but with a pic so not much use to you, the system also displayed road speed, oil pressure, oil temp, gear shift position, voltage etc, wasnt so hard to do, fairly basic stuff for a microc these days.
Hobby Circuits and Small Projects Problems :: 07.03.2011 01:28 :: dr pepper :: Replies: 3 :: Views: 1982
Here you Software 999MHz with 1kHz resolution (the hex files are Software
Microcontrollers :: 31.03.2012 01:01 :: wizpic :: Replies: 2 :: Views: 882
Here you'll find a nice implementation of a pic frequency counter in mikroc :
Microcontrollers :: 29.12.2012 00:17 :: hugo :: Replies: 9 :: Views: 553
Maybe code part of mine non-pic, zero parts, 50 MHz (at least), freq meter can help you.
Microcontrollers :: 18.06.2013 04:59 :: josiphal :: Replies: 1 :: Views: 338
Try this one, it uses a pic, it is very accurate and simple.
I had built it and works are also some other projects on the above page.
Microcontrollers :: 01.10.2006 12:47 :: platonas :: Replies: 11 :: Views: 21406
Best option is search on google.
Find out some sample code with ur pic microcontroller.
Microcontrollers :: 14.09.2010 05:28 :: chanchal.chauhan :: Replies: 6 :: Views: 1034
hiz. i have not much code skill. im using pic16F877A
after reading many codes, i make a code of CAPTURE module to calculate the frequency. my code is giving me some value regarding the frequency (having direct result from Capture Low and High register CCPR1H and CCPR1L). (...)
Microcontrollers :: 21.07.2011 08:57 :: muhammadali_16 :: Replies: 3 :: Views: 617
You may use some of the projects available on the internet:
The 2002 DFD Updated
LCD frequency counter using pic16F84 :: HamRadioIndia
pic 16F84 50MHz frequency counter
Microcontrollers :: 08.08.2011 03:59 :: mister_rf :: Replies: 3 :: Views: 581
Hello I have found this project for a frequency counter
Since it has many pins not used and since space is limited, I would like to port the code to another pic.
As far as I can see from the datasheet
Microcontrollers :: 21.03.2013 07:16 :: neazoi :: Replies: 2 :: Views: 127
To catch the information send to the LCD is a hard way.. because mode 4bits , but not impossible..
You can test in Win Xp environment to use VB6 + inpout32.dll
see i don't know if the speed will be enough...
because using a dll is not the fastest way.. best is 100% asm !!!
PC Programming and Interfacing :: 14.08.2013 05:58 :: paulfjujo :: Replies: 2 :: Views: 329
any one kno how to calibrate properly the internel oscillator of pic12f629 ? the factory defined calibration is not correct as far i have concerned
Microcontrollers :: 01.03.2005 11:24 :: ful babu :: Replies: 2 :: Views: 1632
Microcontrollers :: 26.05.2005 17:08 :: leemarrow :: Replies: 3 :: Views: 2377
I suppose this is a fairly simple question, but...
I'm trying to write software for 3 PWM outputs on a pic, with a frequency of roughly 100=200Hz. Its for controlling the brightness of LEDs, a red, green, and blue. (Don't have an RGB led, but I'm using tiny 0403 chips close together, its as good as).
I'm using the pic16F628A (...)
Microcontrollers :: 18.09.2005 03:20 :: Buriedcode :: Replies: 14 :: Views: 7823
I recently came across a schematic in PCS's schematic vault named "digital guitar tuner". The code included was written for an Atmel 2323 chip. Now heres the thing: I want to use the same idea for a pic16f877a chip so I have tried to change all the instructions to suit a pic orientated program! am I mad?
I used the hex file from a (...)
Microcontrollers :: 05.12.2005 14:38 :: crocklip :: Replies: 2 :: Views: 1348
If you are for frequency counter .. here are some .
Microcontrollers :: 20.02.2006 10:38 :: UroBoros :: Replies: 6 :: Views: 631
This is a rarther basic and easy thing to do.
Don't forget switch debouncing, though you may prefer to do that in hardware.
You have to choose a time period below above which you start repeatedly incrementing your number.
You can do timing in two ways
a) by having the pic execute a loop that takes a suitable amount of time, somthing equ
Microcontrollers :: 16.01.2007 21:20 :: throwaway18 :: Replies: 10 :: Views: 2771
I want to build a pic controlled dimmer. I need to sinhronize pic microcontroller to AC power line. I measure the period with timer1 in the external interrupt subrutine. The problem is that the bulb still blinging sometimes. How to eliminate this?
Microcontrollers :: 27.02.2007 09:47 :: tomikan :: Replies: 4 :: Views: 1112
Can someone convert this code
to suite into pic
;Project: Siren Sound
List P = 16F84
__CONFIG 1Bh ;_CP_OFF & _PWRTE_ON & _WDT_OFF & _RC_OSC
ORG 0 ;This is the start of memory for the program.
Setup BSF 03,5 ;Go to Bank 1
CLRF 06 ;Make all port B output
BCF 03,5 ;Go to Bank 0 - the program memory a
Microcontrollers :: 23.12.2008 07:54 :: me_guitarist :: Replies: 48 :: Views: 9934
If you're using a mid-range pic (such as a pic16F8XX or similar) you can utilize the External interrupt (PORTB<0>) and a Timer interrupt (Easiest with MCUs that have CCP and a 16-bit Timer module)
In a nutshell, you will count the number of times an external interrupt occurs until the number of CCP (or Timer0 overflow) interrupts amounts to one
Microcontrollers :: 24.05.2009 16:52 :: jumper2high :: Replies: 2 :: Views: 2039
I want to build multimeter which can measure V,I,R,C etc.I hope to use pic,ADC...But i have nt clear idea about how Current is measured ,how maintain autoranges..please give me some ideas,directions to do this project.
Microcontrollers :: 25.01.2011 12:43 :: nicko-391 :: Replies: 7 :: Views: 2627
Is that possible to generate 50Hz PWM frequency with using 20MHz external crystal ?
From what I heard, with 20Mhz crystal frequency it couldn't create such low PWM frequency, it that correct ?
Is the any other method to create PWM 50Hz by using 20MHz external crystal?
Below is my current coding basically I'm using timer0 (...)
Microcontrollers :: 17.03.2011 00:32 :: twinsratio :: Replies: 0 :: Views: 1201
This tutorial might help pic Tutorial* Five - Infrared Communication
Also think you mentioned earlier about a frequency counter - this is another good linkfrequency counter with pic and 4- to 5-digit LED display
Microcontrollers :: 09.08.2011 16:22 :: wp100 :: Replies: 3 :: Views: 435
which the required length input from the customer is taken and that input must be displayed on the LCD and also it should be given in the microcontroller for future calculation...
frequency counter using AT89C2051 and LCD (Assembly) : 8
Microcontrollers :: 07.02.2012 00:45 :: ud23 :: Replies: 18 :: Views: 1922
Bit 6 in T1CON, T1RUN, is a read-only status bit. You can't write to it.
---------- Post added at 23:41 ---------- Previous post was at 23:32 ----------
Further... T1RUN is set only when the pic is using the Timer1 Oscillator (external 32.76KHz source) as the whole system clock, in some sort of po
Microcontrollers :: 04.03.2012 18:41 :: FoxyRick :: Replies: 2 :: Views: 409
i wrote this code and i want you to help me if there somehting wrong in it
T0_delay: movlw 0x28;0x21
display: call Table
Microcontrollers :: 30.03.2012 14:33 :: imnimn :: Replies: 4 :: Views: 736
Can someone convert the codes from 16f to 18f ? I will use these 'frequency counter' codes in my pic18F452. i will be very grateful
// frequency counter
// Y.Erol (...)
Microcontrollers :: 10.05.2013 10:24 :: nicoise :: Replies: 9 :: Views: 462
I am trying to find the frequency of incoming signal ( lab power supply properly transformed to small value) to my pic. I used Zero Cross Detection ckt in such a way that at every zero cross detected point I get high pulse and low pulse elsewhere.
Can anyone provide me required c code for such operation. I am using (...)
Microcontrollers :: 09.08.2013 04:49 :: Kkrishn :: Replies: 1 :: Views: 253
DO YOUR F DONKEY WORK
SOUNDS LIKE YOU WANT A WHOLE PROJECT
SO WORK FOR IT!!!!
MAKE A pic PROGRAM FOR 0 -1KHZ STEPS OF PWM UNIT
IN 1 KHZ STEPS +0 -100 STEP SELECTABLE IN INCRUMS OF 1 HZ
POST IT AS C code
THEN ASK FOR HELP
DONT BE LAME THINK IN STEPS UP OR DOWN PLEASE !
I COULD WRITE code LIKE THIS WITH MY EYES (...)
Analog Circuit Design :: 07.09.2006 19:09 :: VSMVDD :: Replies: 3 :: Views: 2363
You could use the pics PWM output, set to 50% at 125kHz
If teh 125kHz needs to be accurate your pic will need a crystal controlled clock.
code will be something like this snip used on a pic18F4525.
;set up PWM on CCP1 for PSU sync generator & turn it ON
bcf TRISC, 2 ;set RC2 as output
bsf T2CON, TMR2ON (...)
RF, Microwave, Antennas and Optics :: 27.02.2007 03:08 :: G4BCH :: Replies: 1 :: Views: 1259
or how about a pic code w/c multiplies its pulse input by 60??
Hobby Circuits and Small Projects Problems :: 05.01.2008 23:39 :: rx5 :: Replies: 5 :: Views: 1641
I don't know about the pic but generally it can be like this.
1. Based on desired frequency (fo) decide the counter/Timer clock(fc) and Timer overflow rate(ft). ft = fc/MAX(timer value)
2. Make a table of the "PWM duty cycles" for the desired frequency. the number of entries in the Table will be n = ft/fo
3. Enable (...)
Microcontrollers :: 12.02.2009 00:09 :: AMK1971 :: Replies: 7 :: Views: 6224
thanks for your reply friend but i am not having idea about pic controllers.
can we interface HS1101 to AT89s52 in same way as you have interfaced to pic?
Ok. I can give you the idea only as I dont have ready code.
Develop a circuit using 8051 to calculate frequency of a signal.
As we all k
Microcontrollers :: 15.02.2012 03:14 :: papunblg :: Replies: 3 :: Views: 990
The program generates a "1 second interrupt" if the pic is running at 8MHz. Maybe you have not set the pic clock frequency as 8MHz in Proteus. If you haven't, set the pic clock frequency as 8MHz.
Microcontrollers :: 14.10.2012 13:08 :: Tahmid :: Replies: 2 :: Views: 1514
//Project: GSM Modem Lesson
//Programmer: Shahrulnizam Mat Rejab
//pic: pic16F877A, pic16F887, pic18F4550
//Crystal frequency: 20MHz
//Compiler: HI-TECH C for pic10/12/16 V9.83, pic18 V9.65
//Last Modified: 8 August 2012
Microcontrollers :: 30.10.2012 22:08 :: engshahrul :: Replies: 1 :: Views: 861