![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
Hi all, I am using PIC16F877A ucontroller to control a cart. The PWM pins are both used to drive the dc motors I have on the cart. I read in the manual that I can use a count function on other pins. I tried to use the function with Port B pin 7 and display the result on LCD The LCD works fine, I can display the A/D result and other text when using the count function the code is COUNT PIN, PERIOD IN us, var its suppose to count how many times the the pin goes TRUE/FALSE in a period of time and store the value in a variable the LCD always show 1 as the result. I tried to move the count function outside the main program loop and nothing happend.. did anyone use this function beofre? any suggestions? | |
| |
|
| Tags |
| count, function, pica |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| Help: count down timer | radiomans | Electronic Projects Design/Ideas/Reviews | 10 | 22nd July 2008 06:50 PM |
| Count Up and Down !!!! | watzmann | General Electronics Chat | 4 | 24th March 2008 11:26 PM |
| count up and count down | crys | Micro Controllers | 0 | 21st January 2008 11:27 AM |
| Count Down | drosera88 | Electronic Projects Design/Ideas/Reviews | 2 | 20th July 2006 03:35 AM |
| Function Generator question: What is GATE function? | Cifrocco | General Electronics Chat | 8 | 14th April 2005 04:11 AM |