Categories
STM8

STM8 Microcontroller Readout Protection (ROP) Features and Practical Considerations

You must want to protect your intellectual property firmware in this case. Like any other microcontroller STM8 also provide features to protect the memory access for unauthorized access. We previously added ATMEGA328 microcontroller protection system. But our today’s focus is STM8 microcontroller. STM8 microcontrollers are widely used in various applications due to their robustness and […]

Categories
8051-8052 Assembly Language

Controlling a Motor with 8051 Microcontroller and L298N Motor Driver

Today we are going to use the L298N motor driver with 8051 microcontrollers to control a DC Motor. This motor control system is specially for robotic 2-wheel differential drive car. Or could be used with any other use case where we need to drive one or two motors with the push buttons. The program which […]

Categories
8051-8052 Assembly Language

Mastering the Art of 1-Second Delay Using Timer in 8051 Assembly

In our previous 8051 LED blinking example we used loop iterations to generate the delay but, in this post, we are trying to make use of 8051 timers. With the help of 8051 timers, we will generate exactly 1 second delay. We will explain the process of timer configuration, timer registers, timer register value calculation […]

Categories
8051-8052 Assembly Language Examples

8051 Assembly Frequency Counter Example

Today we are going to make a very simple 8051 Assembly code for a frequency counter example. We are going to make the example very simple and to the point just the way we normally do in our previous examples. Today’s focus is to demonstrate the very simple frequency counting algorithm implementation in 8051 assembly […]

Categories
8051-8052 Assembly Language Keil uVision

8051 7 segment display Interfacing

Want to create a digital counter using a 7-segment display and an 8051 microcontroller? This comprehensive guide walks you through the process step-by-step, from wiring connections to code examples in both assembly and C. We will demonstrate the 7 segment interfacing code in assembly as well as 7 segment interfacing C code with keil uvision compiler. Seven […]

Categories
8051-8052 Assembly Language

8051 Assembly Code for LCD Display in 8-bit mode

Today we are going to provide the 8051-assembly code for lcd display. The LCD 16×2 is very famous and mostly used for various projects to display the readings. We will be using 16×2 LCD display interfacing with 8051 microcontrollers in assembly language. This is our ongoing series on the 8051-assembly language programming. If you are […]

Categories
8051-8052

LED blinking program in KEIL for 8051 Timers

We know we can generate delays with the help of loops and/or NOP instructions but we are talking today about 8051 timers. Although the accuracy of exact timings is compromised, yet it satisfies the needs so why are we talking about timer now specifically?There are some scenarios where we need to do more complex timings […]

Categories
8051-8052 Assembly Language

Digital Dice using 8051 microcontroller Assembly Language

Let’s create a digital dice using 8051 microcontrollers in assembly language. This is very basic problem and will help you to learn very core concepts of 8051 microcontroller assembly language programming. By creating a digital dice using 8051 microcontroller you will get hands on experience on how to make use of most widely used instructions […]

Categories
8051-8052 Assembly Language

New way to write 8 Led blinking program in assembly for 8051

Blinking LEDs like 8 led blinking are one of most common tasks. Once you learned how to blink single LED with 8051 microcontrollers in Assembly language. You may want to experiment with different ways to write 8 led blinking program. This is a good practice to grip your grounds in Assembly language programming and 8051 […]

Categories
Assembly Language Examples Microchip PIC16 PIC16F877A

PIC16F877A PIC Microcontroller Keypad Interfacing in Assembly Language

Matrix 4×4 keypad interfacing with pic microcontroller is another one of the most wide problem which we often face and in today’s tutorial we are going to explain the 4×4 keypad interfacing with pic16f877a microcontroller. It makes very special problem to not even decode the matrix 4×4 keypad but also to open the door of […]