Ok guys I have been burning out my brain for the last 3 weeks trying to understand microcontrollers and I am now officialy obsessed.
I built a pic programmer from an altronics kit which I am happy to report works. I have been searching high and low for a basic or C code file or project for my specific task and can only find projects for LCD display or seven segment tacho's.
All I want is to illuminate a cluster of 7 leds at a predefined RPM.
I have been trying to find tutorials on C code with little results. I did find some basic code tutorials but am unsure as to the quality of the lesson.
I have been studying the datasheet for the PIC16F84 and I am more confused than when I started. I am getting a basic knowledge of the file registers and the banks and bits but still cant put it all together into a working pic.
My main issue is to understand the way the chip calculates the frequency and how to define the triggering RPM or frequency.
Could someone please offer some code that can count frequency up to 1000hz and how to trigger the leds at the predefined frequency?
I understand that most of the gurus on this site want to help guys like me to solve the problems ourselves and trust me it is not through lack of trying. Can someone steer me in the right direction? If anyone knows of frewuwncy counting specific tutorials I would be eternally grateful.
I built a pic programmer from an altronics kit which I am happy to report works. I have been searching high and low for a basic or C code file or project for my specific task and can only find projects for LCD display or seven segment tacho's.
All I want is to illuminate a cluster of 7 leds at a predefined RPM.
I have been trying to find tutorials on C code with little results. I did find some basic code tutorials but am unsure as to the quality of the lesson.
I have been studying the datasheet for the PIC16F84 and I am more confused than when I started. I am getting a basic knowledge of the file registers and the banks and bits but still cant put it all together into a working pic.
My main issue is to understand the way the chip calculates the frequency and how to define the triggering RPM or frequency.
Could someone please offer some code that can count frequency up to 1000hz and how to trigger the leds at the predefined frequency?
I understand that most of the gurus on this site want to help guys like me to solve the problems ourselves and trust me it is not through lack of trying. Can someone steer me in the right direction? If anyone knows of frewuwncy counting specific tutorials I would be eternally grateful.