AVR: Stopwatch With Interrupt Timer and Multiplexed 7 segment Display
Here we are connecting the 7 segment display with PORTA, i.e. Multiplexing of six-7segment display, with the control lines to PORTB. Following is the program to Interface the 7segments.
Crystal : 8MHz
Time: 0.125uSec
Prescaler: clk/1025
Timer Interrupt : 25mSec.
For 1sec , run this timmer...
Monday, 28 October 2013
Multiplexed 7 Segment With Timer0 Interrupt in ATmega16/32 for Stopwatch
Posted by Unknown
On 08:53
| No comments
Friday, 25 October 2013
AVR : NotePad Using ATmega16./32 and 16x2 LCD
Posted by Unknown
On 10:15
| No comments
NotePad Design with Atmega16/32 on 16x2 LCD with UART
Here in this program we are designing the notepad by using Atmega16/32 as a controller and LCD for displaying the typed that we will be sending from the help of UART. In Proteus, with the help of the Virtual Terminal , we will send the data to the uC and the same data will be displayed on the 16x2 LCD in...
AVR: UART , Keypad and LCD Interfacing in Atmega16
Posted by Unknown
On 09:58
| No comments
KEYPAD...UART (Universal Asynchronous Receiver Transmitter)...AND LCD (Liquid crystal display) Interfacing with Atmaga16/32
Following code will be defining the processing of the UART (checked in Proteus) with baud rate of 1200 bits/second with internal crystal of the ATmega16.
Here we are connecting the Keypad in the PORTC of the uC , LCD on the PORTB and the Virtual terminal...
Thursday, 17 October 2013
AVR : Basic->Interfacing Switch and Seven Segment Display with ATmega16/32 UP/DOWN COUNTER
Posted by Unknown
On 14:59
| 2 comments

Here the switch is connected to the PORTB pin no 0 and 1, for Up and Down Counter. The value of the counter will decrease at the time it reaches to max value (i.e. 9). Till then switch 2 will not work. Only access to the switch for making counter in forward direction is allowed. When counter reaches to the 9, switch 1 will stop working and only switch 2 will come into action.
/*
*
*
*...
AVR : Basic->Interfacing Switch and Seven Segment Display with ATmega16/32.
Posted by Unknown
On 03:13
| No comments

Here the following uses the Switch to be connected on the PORTB, pin no 0 and 1, i.e PB0 and PB1.
PORTA is connected with the SEVEN SEGMENT display (common cathode). Switch used here is in Active Low condition.
Following is the Program to Interface two switch with SSD.
/*
* DAY1QUE1.c
*
* Created: 10/15/13 17:00:24
* Author: Raj Prajapati
*/
#include...
Wednesday, 16 October 2013
AVR : Interfacing Seven Segment Dispay (Atmega16/32)
Posted by Unknown
On 00:01
| No comments

Here we had made use of 7 segment common cathode display for the Interfacing. Along with the Atmega16.
Simulation work is done in Proteus Software.
Header file: avr is providing its own header filr "avr/io.h"
for using delay in the avr , we had used util/delay.h
This header file can provide the delay in milli...
Sunday, 13 October 2013
LINUX : Writing data to file by reading data from KEYBOARD
Posted by Unknown
On 22:29
| No comments
Open file , Take input from KEYBOARD, write in the file, Display the content of the file and close the file.
/* Program to open the File, read data from the Keyboard and write it in the file.*//* User Progam , to be executed in the user space *//* openfile3.c */// Author : (Raj)#include<stdio.h>#include<fcntl.h>static int count;int main(){ int fd1,i,len; char buffwr[100],buffr[100]; ...
LINUX : Opening and Closing the File.
Posted by Unknown
On 21:47
| No comments
Program to Open a File and Close it , Along with printing the File Discripter value.
Program will never return the file discripter value as 0,1,or 2 as these values are already reserved for
0---> Standard Input
1---> Standard Output
2---> Standard Output
Here two system calls are used, read and write, you can get the details of it just by typing man read or man write in the terminal window.
Save the file in .c extension,...
Thursday, 10 October 2013
Device Driver : Basic Program to make MODULE
Posted by Unknown
On 20:08
| No comments

Basic program to make the module in Kernel Space and add it into the process
Write the program with the file extension ".c" . After that, make the Makefile. Then execute the Makefile by writing make. after that insert the module in the Process by writing insmod <filename>.ko . Then check the Kernel module by writing the command dmesg|less. For removing the module from...
Device Driver: Char Driver part 1 -> Kernel and Application Program for file handling
Posted by Unknown
On 08:32
| No comments

Tutorial :
Program in a KERNEL to be use by user for open,close,read and write, along with the USER program to access Kernel program, with make file.
-----------------------------------------------------------------------------------------------------
/* Program to make a kernel to be accessed by the user */
#include<linux/module.h>
#include<linux/kernel.h>...
Subscribe to:
Posts (Atom)