8051 Hardware Timer Tutorial
Hello, and welcome to Huffman Computer Science!
In this video, I go over the basics to programming the built in hardware timers of an 8051 MCU. Specifically, Timer 0 is programmed in this video, although the same concepts apply to Timer 1 as well (only requiring a few different values loaded into the registers).
While any microcontroller containing the 8051 architecture will work for this tutorial, I recommend acquiring the AT89S52 from Atmel/Microchip if you intend to follow along (this will be more important for two upcoming videos in particular).
GitHub: https://github.com/HuffmanCS/8051-Tutorials
AT89S52 Datasheet: https://ww1.microchip.com/downloads/en/DeviceDoc/doc1919.pdf
C51 Assembler: https://www.microchip.com/en-us/development-tool/C51ASM
SDCC: https://sdcc.sourceforge.net
Minipro Software: https://gitlab.com/DavidGriffith/minipro
Other Resources or References: Intel Corporation, (1994), MCS 51 MICROCONTROLLER FAMILY USER'S MANUAL.
If you'd like to say thanks by funding my coffee addiction or funding my supply of electrical components... https://www.patreon.com/HuffmanCS
726881896 Bytes