ATmega16

How to interface serial ADC0831 with AVR microcontroller (ATmega16)

ADC is an electronics device that converts the analog signals to digital number proportional to the magnitude of voltage. The ADC chips like ADC0804, ADC0809 etc., give 8-bit digital output. The controller device needs eight pins to receive the 8-bit data (For more details about ADC refer to Using Inbuilt ADC of AVR). Some applications […]

How to interface serial ADC0831 with AVR microcontroller (ATmega16) Read More »

How to configure Watchdog Timers of AVR Microcontroller (ATmega16)

Some high end applications require multiple or critical calculations to be done by the microcontroller. This may lead to cases when the controller enters into wrong or infinite loops. As a result of this, the system either hangs up or gets crashed. The solution to overcome these situations is to automatically reset the system whenever

How to configure Watchdog Timers of AVR Microcontroller (ATmega16) Read More »

How to Initialize Peripherals from Boot Loader Section

In almost all the microcontroller codes the peripheral initialization functions like uart initialization, spi initialization are written along with the different application codes. These initialization functions are actually repetitions of the original initialization functions. The same is the case with the external hardware initialization like LCD initialization, GSM modem initialization etc. Suppose the case in which

How to Initialize Peripherals from Boot Loader Section Read More »

How to Use SPM for Flash to Flash Programming

The Self Programming Mode (SPM) is a feature which enables a microcontroller to program its own flash memory. Using the SPM a microcontroller can program itself with an SPM code. The SPM is commonly used with the microcontroller Boot-Loader codes which help to program the microcontroller serially. In AVR microcontroller the SPM is available only for

How to Use SPM for Flash to Flash Programming Read More »

How To Use SPM To load Application from EEPROM

In any microcontroller the Boot-Loader is the first code which executes before the application code does. The major function of the Boot-Loader is to load the application code into the flash memory of the microcontroller and execute it. In AVR microcontroller the Self Programming Mode (SPM) helps the Boot-Loader to load a particular application from

How To Use SPM To load Application from EEPROM Read More »

Scroll to Top