RonDumas
New Member
I just finished a project in Basic Pro,pic 16f876 where I read a pot on portA.0 and connected 4, 7-segment LED's to PortB.0-6,and portA.1-4
The pot position was stored in a variable where I then multiplexed it out to the LED's.
It all worked well.
I now want to connect an ultrasonic rangefinder to the pic, and store the data in a variable to put out to the LEDs.
I'm using pulsout and pulsin commands for the rangefinder. The problem I 'm having is the 4, 7-segment LEDs are now lighting up and going off about 3 times/sec. instead of strobing to look continuous.
My question is are there timing issues to using the pulsout/in commands that may be making the program run too slow to allow the multiplexing of the LEDs?
The pot position was stored in a variable where I then multiplexed it out to the LED's.
It all worked well.
I now want to connect an ultrasonic rangefinder to the pic, and store the data in a variable to put out to the LEDs.
I'm using pulsout and pulsin commands for the rangefinder. The problem I 'm having is the 4, 7-segment LEDs are now lighting up and going off about 3 times/sec. instead of strobing to look continuous.
My question is are there timing issues to using the pulsout/in commands that may be making the program run too slow to allow the multiplexing of the LEDs?