Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[Moved] Readout cycles off and on

Status
Not open for further replies.

bluejets

Newbie level 2
Newbie level 2
Joined
Mar 29, 2009
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,291
Downloaded this project for digital tacho driving 4 x 7 led display.
It works ok as far as tracking the revs but the display blanks out for a few seconds and then it displays for the same period and then turns off again repeatedly.
Is the problem somewhere in the "delay" in the sampling section..??

https://pic16f628a.blogspot.com.au/2010/10/contact-less-tachometer.html
 
Last edited:

It works ok as far as tracking the revs but the display blanks out for a few seconds and then it displays for the same period and then turns off again repeatedly.
Is the problem somewhere in the "delay" in the sampling section..??

Yes, most likely the issue with display is due to the over use of software generated delays.

As a general rule software delay routines should be avoided, except perhaps during device initialization, e.g. LCD, GLCD, etc.

Even during these device initialization phases, the software generated delays should be kept to a minimum, 150ms or less.

In the case of stated example code, a much more prudent method of implementation would be the utilization of interrupts, rather than software generated delays.

One of the main issues with software delay routines is they essential suspend code execution during the entire delay interval, in a sense locking up microcontroller for the duration of the delay.

An interrupt combined with an interrupt service routine (ISR), on the other hand, allows the microcontroller to perform other tasks until an interrupt occurs at which point the code exection flow switches to the task defined within the ISR.

As many seven segment implementation rely on refresh multiplexing to effectively update and refresh each of the seven segment displays, software delay routines can obviously impede the required refresh multiplexing routines.

BigDog
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top