PIC Based Oscilloscope Clock

For those are not into electronics, you must know that an oscilloscope has basically only one timebase to move the spot horizontally from left to right with the same intensity. The vertical deviation is function to the input voltage. You understand immediately that you can’t directly display 7 segment digits, because you can’t move the spot from right to left.

By using X/Y mode, where the spot is controlled on two axes by two different voltages, it is possible to draw a picture (as in the examples mentioned above), but a fast digital to analog converter with two channels and at least 8 bits of resolution would be needed.PIC Based Oscilloscope Clock

So we have to deal with a spot that always goes from left to right in the same period of time.
If we want to have a 7segment-like display, we have to draw :

vertical segments : easy to do, just change voltage up and down quickly a few times.
horizontal segments : easy to do, just set a voltage level and keep it as long as you need.

By using 2 PIC outputs and a basic R2R digital to analog converter, we can have up to four different voltage levels : 3 for the vertical segment, and another one where to put the spot when it is not in use to draw a segment.

But the problem is that a 7 segment digit may have up to 3 horizontal lines at a time (like 2, 3, 8, 9..) but we can draw only one during one spot deviation.
So we will have to cheat with retinal persistence and use multiple frames : since we can have only one vertical segment per period, three periods will be needed to draw a full 7 segment digit.

Supposing we want to display 12:34:56 on the screen :

During the first period, we will draw all vertical segments, and horizontal upper segments only :

As a game, I let you try to find out the spot trajectory.
Don’t forget the rules :PIC Based Oscilloscope Clock schematic

you can’t go backward
you can’t clear the spot

But you can move so fast vertically that the eye can’t see the spot moving.

The lowest line under the digits is not significant, it his the place where the spot is parked when not used to draw a segment.



For more detail: PIC Based Oscilloscope Clock

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.