The concept of register banks adds a great level of flexibility to the 8051, especially when dealing with interrupts (we'll talk about interrupts later). However, always remember that the register banks really reside in the first 32 bytes of Internal RAM. Programming Tip: If you only use the...
Interrupts are used to handle events that do not happen during the normal execution of a program but when a specific trigger occurs. For example, if we write a program to blink an LED the microcontroller will execute each command one by one. But if we want to monitor a switch to start ...
Embedded Memory Microcontroller: When an embedded system has a microcontroller unit that has all the functional blocks available on a chip is called an embedded microcontroller. For example, 8051 having program & data memory, I/O ports, serial communication, counters and timers and interrupts on th...
This OLED module leverages I2C for communication with the microcontroller. You can also find similar displays with either I2C or SPI interface or even with both in the same PCB. The module we are using has 4 pins in total. The pinout of an I2C OLED Display Module is shown below- GND Gro...
Interfacing LED with 8051:The LED in the 8051 Trainer Board works by turning on an LED, then off, and then looping back to START. However, because the microcontroller’s operating speed is very high, the flashing frequency will be sufficiently fast to be detected by the human eye. ...