A unique way to reverse bits in C

Hello friends, today we came across a very unique method to reverse bits in C. We needed reversing bits of any byte or integer. As an example 10011011 should be reversed to 11011001.   We came across this unique answer This was done by Sth on stack overflow. How this works? First the higher nibble […]

Using “If else” condition in Assembly language

FAQ about “IF…ELSE” condition in assembly language. Question: Can we use “if….else” condition in assembly language? Ans: Yes!!!! Question: How to use “IF….ELSE” in assembly language? Ans: you can access “IF….ELSE” same as any other higher level language. Question: What is the syntax of “IF….ELSE” statement in assembly language? Ans: This depends mostly in assembler to […]

8051 PWM C Program with 50 percent duty cycle

PWM(pulse width modulation) generation guide using 8051. 8051 PWM generation What is PWM? PWM(pulse width modulation) is a technique of generating pulses(square wave) having a specific on time and off time. Main use of PWM is to control power mostly in motor speed control. PWM is also used to perform DAC(digital to analogue) operation. How […]

LED blinking with 8051:C Program and Proteus design files

>> Here I am starting new series of proteus simulations with programing with this post. LED blinking with 8051 microcontroller >>LED blinking is one of the most basic technique used for peripheral interfacing. >>All you have to do is on and off your input output pin at regular interval (not so fast that you can’t […]

1 millisecond delay in 8051 C Program

>> Most of microcontroller beginners begins with 8051 microcontroller. And also starts with LED blinking. LED blinking is a simplest program for beginners. So they can test their development board with it. >> But it is somewhat difficult to make precise delay in LED blinking. You can calculate precise delay in assembly language. In c language […]