From the CHEAPIC tutorial:
I have a problem with using CCP pins for measuring time difference between two pulls signals where by timer1 will bee running free and CCP1capture is red throw CCPR1H-CCPR1L and CCP2 throw CCPR2H-CCPR2L complementing CCPR1H-CCPR1L and adding it to CCPR2H-CCPR2L after converting to ASCII and display on LCD the time measurement constantly flatcars with what looks like a random number and back to accurate measurement
Welcome any suggestions
There are commercial speedometer calibrators available for electronic speedometers, and they are adjustable to compensate for different tire diameters, pressure, gear ratios, etc. Does anyone know how this could be accomplished with a PIC? The output from the speedometer pickup is a 5 volt pulse with a maximum frequency of 21khz. The device wires in between the speedo pickup and the speedometer.
Thanks in advance, Bob
i am using Pic 18c452. i am using Hitech C compiler and i am unable to get how the prescaler is used and how the Tmr0l and Tmr0H should be assigned . plz do explain to me how to get acquianted with the timer. Thanking you sree
I'm just starting to experiment with the PIC16F877 using the HITECH C compiler. I am running the PIC at 10 Mhz and want a 50 MHz PWM period with a 7.5% duty cycle. However this means that I need the PR2 to be 3124 which is too large (max is 255 right?). Is there a way around this? am I doing something wrong? or do I have to use a 4MHz clock instead? or maybe create my own pulse using TIMER0 which would allow a prescalar of 256? Thanks in advance!
|file: /Techref/microchip/time.htm, 13KB, , updated: 2013/7/22 17:42, local time: 2015/3/26 15:52,
|©2015 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.piclist.com/techref/microchip/time.htm?key=clock"> Microchip PIC,crystal oscillator,microcontroller clock</A>
|Did you find what you needed? "clock"|
PICList 2015 contributors:
o List host: MIT, Site host massmind.org, Top posters @20150326 IVP, RussellMc, Bob Blick, James Cameron, alan.b.pearce, Josh Koffman, Dwayne Reid, Isaac Marino Bavaresco, Robert Dvoracek, Neil,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!