Sunday, September 4, 2011

(ATMEGA 16) USART

Let us go through presentation



When you make communication with computer you would need Max232 IC which is voltage translator. You can find its schematic online. As it is one of the most popular form of communication there are plenty of resources on this online.
You can search for schematic in google images and i bet it would be the first pic.



You can find the code here

(PIC16F877A) USART

Let us see the presentation



When you make communication with computer you would need Max232 IC which is voltage translator. You can find its schematic online. As it is one of the most popular form of communication there are plenty of resources on this online.
You can search for schematic in google images and i bet it would be the first pic.

You can find the code here

(P89v51RD2) UART

Serial Communication is one of the essential component of embedded design. I am going to explain RS232 communication using this controller.
Let us go through the presentation which explains the register to configure
Look for PORT 3 Pin configuration PIN named RX & TX are used for Serial communication



When you make communication with computer you would need Max232 IC which is voltage translator. You can find its schematic online. As it is one of the most popular form of communication there are plenty of resources on this online.
You can search for schematic in google images and i bet it would be the first pic.

You can download code from here

(PIC16F877A) 128x68 Graphic Display

Let us see the presentation first 

Schematic


Please refer the specific controller page for details for Microcontroller & Compiler

You can download the code from here

(Atmega 16) 128x68 Graphic Display

Let us see the presentation first 

Schematic


Please refer the specific controller page for details for Microcontroller & Compiler

You can download the code from here




(P89v51RD2) 128x68 Graphic Display

Let us have presentation



Schematic
Please refer the specific controller page for details for Microcontroller & Compiler

You can download the code from here

(Atmega 16) 20x4 LCD


20x4 LCD is extended version of 16x2 LCD the only difference is their size & capacity to display
16x2 is 16 character x 2 lines &
20x4 is 16 character x 4 lines
Their interfacing is same. Please refer the bottom memory diagram for 20x4 in the slide which is same for 16x2


Please find controller specific details & compiler details on that specific page.
You can download code from here

(PIC16F877A) 20x4 LCD


20x4 LCD is extended version of 16x2 LCD the only difference is their size & capacity to display
16x2 is 16 character x 2 lines &
20x4 is 16 character x 4 lines
Their interfacing is same. Please refer the bottom memory diagram for 20x4 in the slide which is same for 16x2

Please find controller specific details & compiler details on that specific page.
You can download code from here

(P89v51RD2) 20x4 LCD

20x4 LCD is extended version of 16x2 LCD the only difference is their size & capacity to display
16x2 is 16 character x 2 lines &
20x4 is 16 character x 4 lines
Their interfacing is same. Please refer the bottom memory diagram for 20x4 in the slide which is same for 16x2


Please find controller specific details & compiler details on that specific page.
You can download code from here

(Atmega 16) 16X2 LCD


Let us see the presentation



Schematic
     
I have in operated the LCD in 4 bit data mode
You can find details of compiler & Controller on Specific controller page
Download the code from here

(PIC16F877A) 16x2 LCD


Let us see the presentation



Schematic
     
I have in operated the LCD in 4 bit data mode
You can find details of compiler & Controller on Specific controller page
Download the code from here

(P89v51RD2) 16x2 LCD

Let us see the presentation



Schematic
     
I have in operated the LCD in 4 bit data mode
You can find details of compiler & Controller on Specific controller page
Download the code from here

(Atmega 16) 7 segment


Let us have the presentation first


Now we have 8 7-segment display.
How many microcontroller pins are required to interface it.
You might me thinking it would be 8x7=56. Microcontroller don't even have that many I/O.
So we would go ahead for multiplexing which would utilize just 16 I/O lines

Refer to schematic below


Now i have 2 codes for this that explain different cases when you work on it

You can see all compiler details on page Atmel AVR page 


You can download the codes from 
1) here
2) here

(PIC16F877A) 7 Segment


Let us have the presentation first


Now we have 8 7-segment display.
How many microcontroller pins are required to interface it.
You might me thinking it would be 8x7=56. Microcontroller don't even have that many I/O.
So we would go ahead for multiplexing which would utilize just 16 I/O lines

Refer to schematic below


Now i have 2 codes for this that explain different cases when you work on it 


You can find specific details of compiler and controller on the page Microchip PIC

You can down load code from here 
1) here
2) here

(P89v51RD2) 7 Segment

Let us have the presentation first



Now we have 8 7-segment display.
How many microcontroller pins are required to interface it.
You might me thinking it would be 8x7=56. Microcontroller don't even have that many I/O.
So we would go ahead for multiplexing which would utilize just 16 I/O lines

Refer to schematic below


Now i have 2 codes for this that explain different cases when you work on it

Get the details
Microcontroller Platform: MCS 51
Microcontroller: NXP P89v51RD2
Compiler: Uvision Kiel
You can download code from
1) here
2) here

(Atmel Atmega16) Blink LED!!!

When you work on AVR I/O ports you have to take care of 3 register
1)DDR:- to set the direction (either input or output)
2)PORT: write your output data to PORT
3)PIN: Read your data input from PIN



You can download code from here