Digital I/O Atmega16- Codevision AVR and Proteus

Digital I/O Atmega16- Codevision AVR and Proteus

Digital I/O Atmega16- Codevision AVR and Proteus covers the full tutorial on how to use the digital input/output pins of Atmega 16 using the software Codevision AVR and the Proteus ISIS for simulation.

First of all a little bit about the micorcontroller digital bits

A standout amongst the most essential component of the microcontroller is various information/yield pins utilized for association with peripherals. For this situation, there are altogether of thirty-five universally useful I/O pins accessible, which is sufficiently very for the most applications.

All together pins’ operation can coordinate inward 8-bit association, every one of them are, like registers, assembled into five supposed ports meant by A, B, C, D and E. They all have a few elements in like manner:

For handy reasons, numerous I/O pins have a few capacities. On the off chance that a pin is utilized as whatever other capacity, it may not be utilized as a universally useful info/yield pin; and

Each port has its “satellite”, i.e. the relating TRIS register: TRISA, TRISB, TRISC and so forth which decides execution, yet not the port’s substance bits.

By clearing some piece of the TRIS register (bit=0), the comparing port pin is arranged as yield. So also, by setting some piece of the TRIS register (bit=1), the comparing port pin is designed as info. This principle is anything but difficult to recall 0 = Output, 1 = Input.

This video shows digital pins of atmel atmega 16. When the switch is pressed, the led turns on for 500 ms and then it turns off.

Digital I/O for ATMEGA16 – Proteus and Codevision by Techni Cult