Upload
rashmi-deoli
View
63
Download
2
Embed Size (px)
Citation preview
ATMEGA 128 DESCRIPTION
• It is the high performance• Low power ATMEL• 8 bit AVR• RISC based microcontroller-128 kb programmable flash memory• JTAG interface on chip debugging• It operates between 4.5-5.5 volts• Pin count -64• No USB interface
Atmel Atmega128 Overview
MEMORY SYSTEM:-
There are four separate memory spaces on the AVR. Program space: -128K byte (64Kx16) in-circuit flash programmable. -Can be accessed by program for storage of constants.
SRAM Data Memory:-4K bytes
-variable storage area
EEPROM:-4K bytes-separate data space
COMMUNICATION PROTOCOL
In Atmega-128, there are various types of Protocols:-
- I2C (Inter Independent Circuit). - SPI ( Serial Peripheral Interface).
- UART (Universal Asynchronous Receiver/Transmitter)
I2C Protocol (cont.)
6. Receiver issues an ACK bit for the byte received7. Repeat 5 and 6 if more bytes need to be transmitted8. Master always sends stop condition (P)
a. For write transaction (master transmitting), master issues stop condition (P) after last byte of data.b. For read transaction (master receiving), master does not acknowledge final byte, just issues stop condition (P) to tell the slave the transmission is done
ADVANTAGES• Only two signal lines requires• Flexible data transmission rates
• Each device on the bus is independently addressable• Devices have a simple Master/Slave relationship.