hi
i dont want to make a digital signal to analog and then digital again.
and i have maked the pcb so it has to be done with the pic
hi
i dont want to make a digital signal to analog and then digital again.
and i have maked the pcb so it has to be done with the pic
Hi, PicPw
so, The question is to know what else do yo do w/the PIC ...
If just Speed I and U and display implemented, a PicBasic interrupt ( RTFM : simple to do ... ) will be OK.
The question is also wich is your refresh rate ??? one I and U measure per second could be enough to be readable.
We do not know enough about your project to give valuable solutions ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
i only have to messure I and U and the speed.
it is possible to start timer0 when i receive a high pulse and stop the counter when the next high pulse is coming?
and can the pic do other things when the timer0 counts?
You can implement your speedometer easily with the PULSIN command.
You don't have to wait for a full revolution of you wheel.
Just install either magnets or reflective tape at equidistant intervals around your wheel and measure the time between any two magnets (or tape), keeping in mind that this measurement is only a fraction of a wheel revolution (and a fraction of a second). Handle the extrapolation in integer math.
I'm doing something similar with rotor tachometers and many other things on a helicopter. The software is written in a loop structure, such that all the measurements are taken and processed many times a second.
Hi,PicPwOriginally Posted by picpower
You can use the CCP in capture Mode ...
You could also use Timer 1 as a free running timer and read it periodically ...see Microchip datasheet Timer section for details.
There are many many ways to do it ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
I too would like to get some pointers for a similar project. I want to decode CTCSS tones using a pic. These are pre defined tones lying between 50 and 300Hz. How would I go about having a lookup table of tones and comparing the incomming tone with one in the lookup table? this would have to be done very quickly, 100ms or better
Attached is a program for counting pulses using Tmr1 set in the counter mode and Tmr0 set as an interrupt timer.The interrupt timer counts ticks,after 1 second Tmr1's accumulated count is serial outputed.
good !!!
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks