4 Digit Seven Segment Display Clock Using MG82FD16 28pin Microcontroller
by ayushbjain2005 in Circuits > Microcontrollers
178 Views, 0 Favorites, 0 Comments
4 Digit Seven Segment Display Clock Using MG82FD16 28pin Microcontroller

This tutorial shows how to initiate a mm:ss custom time clock using the megawin MG82FD16 28 pin microcontroller and a 4 digit common anode seven segment display.
Downloads
Supplies


The Keil IDE will be used for programming and generating a hex file.
The MG82F6D16_RTC_Timer file contains the source code for the project of this robust microcontroller
The Megawin programmer application that will be used to program our hex file into the microcontroller
These files will be available by contacting the company Empere .
What You’ll Need
2.Programmer (e.g., M-Link-TH185A)
3.Breadboard & Jumper Wires
4.LED & Resistor (220Ω for current limiting)
5.Keil IDE
Understanding the Pins of Microcontroller

The microcontroller MG82F6D16AE28 contains 28 pins. Each pin has its own functionality. For our project we will be using the pins mentioned in the next step.
Understanding the Programmer Wiring Table

Ensure your M-Link programmer voltage (3.3V or 5V) matches your microcontroller’s operating voltage.
Understanding the Segments Wiring

Note : This is a common anode display , so the segments turn on when driven Low (0)
Understanding the Digits Wiring

Note : The digits turn on when their line is driven High (1)
Setting Up the Programmer IDE

- Select the exact part number of the microcontroller.
- Select load file and then select the file you want to upload.
- Once the file is selected , select Update.
Note : make sure the detect 4.2V is selected (voltage can change according to microcontroller)
Make sure to give the VDD and VSS pin a 5V external supply for the microcontroller to start up.
Final Output
The time can be custom set through the code for the seven segment display.
For more information regarding the sale of these components : https://empere.in
Megawin MG82F6D16AE28 : https://empere.in/product/mg82f6d16ae28-8051/
Programmer : https://empere.in/product/megawin-m-link-th185a/
For more information regarding contact through email id at 'sales@empere.in' .