Dear Sir,
I am using free version of Flowcode 9.
My problem is:
I have loaded the two Example programs (provided in your website) of Quad 7 segment display into my Microcontroller 16F877A .
https://www.matrixtsl.com/wiki/index.ph ... :_Segment)
But the 7 Segment display is flickering for a while and then stops working.
How can I solve this problem and make the display stable? Please Help.
Thank you
Fahim
Quad 7 Segment display is flickering
-
- Posts: 5
- http://meble-kuchenne.info.pl
- Joined: Sun Jan 16, 2022 9:42 am
- Has thanked: 1 time
-
- Matrix Staff
- Posts: 1481
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 525 times
- Been thanked: 481 times
Re: Quad 7 Segment display is flickering
Hi.
It will probably be a mixture of the hardware configuration settings and timer interrupt speed.
A tip would be to make sure the hardware speed matches the configuration settings.
This can be done by running a one-second flasher at the start of a new project.
If your hardware is running slower than the example, then you will need to adjust interrupt speed accordingly.
You can do that by double-clicking on the interrupt icon and change the settings.
If you post your flowchart, I will see if I can spot the issue for you.
It will probably be a mixture of the hardware configuration settings and timer interrupt speed.
A tip would be to make sure the hardware speed matches the configuration settings.
This can be done by running a one-second flasher at the start of a new project.
If your hardware is running slower than the example, then you will need to adjust interrupt speed accordingly.
You can do that by double-clicking on the interrupt icon and change the settings.
If you post your flowchart, I will see if I can spot the issue for you.
Martin
-
- Posts: 5
- Joined: Sun Jan 16, 2022 9:42 am
- Has thanked: 1 time
Re: Quad 7 Segment display is flickering
Thank you Medelec35 for your reply.
I've tried the One_second Flasher in my Microcontroller.
One second counting is fine. I counted for a minute using stopwatch.
Here is the flowcode: Please suggest How can I stable the Quad 7 segment displays Flickering.
Thank you
I've tried the One_second Flasher in my Microcontroller.
One second counting is fine. I counted for a minute using stopwatch.
Here is the flowcode: Please suggest How can I stable the Quad 7 segment displays Flickering.
Thank you
-
- Matrix Staff
- Posts: 1481
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 525 times
- Been thanked: 481 times
Re: Quad 7 Segment display is flickering
I have just tried the flowchart you posted, set for my target device and 7seg LEDS.
No flickering at all running at 19.06MHz.
Count up is working as expected
Does the numbers look like they are correctly formed, so 1 looks like a 1 and 2 looks like a 2? etc.
Or are random segments lit?
No flickering at all running at 19.06MHz.
Count up is working as expected
Does the numbers look like they are correctly formed, so 1 looks like a 1 and 2 looks like a 2? etc.
Or are random segments lit?
Martin
-
- Matrix Staff
- Posts: 1290
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 171 times
- Been thanked: 289 times
Re: Quad 7 Segment display is flickering
Another thought - if it's flickering in a random way then it could be there is a problem with the hardware (e.g. the cables between the micro and display or perhaps the power supply). This could also explain why it stops working after a while.
-
- Posts: 5
- Joined: Sun Jan 16, 2022 9:42 am
- Has thanked: 1 time
Re: Quad 7 Segment display is flickering
I am using a 20MHz crystal oscillator. The numbers are not correctly formed or may be I can't understand the numbers due to flickering.
Today while loading program in the Microcontroller I got an electric shock. Now my Microcontroller is not working at all. No flickering and nothing.
The USB gives an electric shock. The measured voltage in USB is 5.17 V . Electric tester glows in all four wires of USB.
I am completely new in this. So please suggest me the hardware and other necessary details.
Thank you
Today while loading program in the Microcontroller I got an electric shock. Now my Microcontroller is not working at all. No flickering and nothing.
The USB gives an electric shock. The measured voltage in USB is 5.17 V . Electric tester glows in all four wires of USB.
I am completely new in this. So please suggest me the hardware and other necessary details.
Thank you
-
- Posts: 5
- Joined: Sun Jan 16, 2022 9:42 am
- Has thanked: 1 time
Re: Quad 7 Segment display is flickering
While running I am using an external power source.
In my last question I told about the Electric shock when I touched 7805's body during program Loading into Microcontroller from my Computer.
Is my power supply okay for the project ? Or do I need to improve it?
Thank you
- A 12V transformer
- Full Bridge rectifier using 4 X 1N4007 diodes
- 2200uf 50V Capacitor
- 7805
- 103 Ceramic capacitor in Input and Ground Pin of 7805
- 103 Ceramic capacitor in Output and Ground Pin of 7805
In my last question I told about the Electric shock when I touched 7805's body during program Loading into Microcontroller from my Computer.
Is my power supply okay for the project ? Or do I need to improve it?
Thank you
-
- Valued Contributor
- Posts: 168
- Joined: Wed Dec 02, 2020 7:28 pm
- Has thanked: 71 times
- Been thanked: 62 times
Re: Quad 7 Segment display is flickering
You need to find where the over voltage originates as it might be life threatening!nbgiltdnaogaon wrote:
In my last question I told about the Electric shock when I touched 7805's body during program Loading into Microcontroller from my Computer.
Is my power supply okay for the project ? Or do I need to improve it?