Monthly Archives: August 2009

Square Wave Generation using Delay in 8051

To create a square wave generation using Delay. let us say we want to construct a 1khz square waveform the processor instruction cycle of 8051 is 1.085microseconds so for 1khz (1milli seconds =1/1khz), is 1ms/1.085microseconds = 921.6 (this value is … Continue reading

Posted in 8051 | Tagged | Leave a comment

To find the processor instruction cycle of 8051

  To find processor instruction cycle (Machine cycle) of 8051 microcontroller Clock frequency of 8051 is 11.059MHz. 12 machine cycle makes 1 clock cycle so, 12 * machine cycle = 11.059MHz. Machine cycle = 11.059Mhz/12 = 921583 Hz. Instruction cycle … Continue reading

Posted in 8051 | Tagged | Leave a comment

Main Algorithms of a Linux Kernel

Signals Signals are one of the oldest facilities of Inter Process Communication. Signals are used to inform the processes about the events. signals will be sent via the following function (by the Kernel) int send_sig_info(int sig, struct siginfo *info, struct … Continue reading

Posted in Linux Kernel Programming | Tagged | Leave a comment

Kernel Data Structures

Task Structure The fundamental entity of any operating system is the task or a process. The task structure is defined in the linux/sched.h and it is the important data structure and following are some of its parameters.struct task_struct {volatile long … Continue reading

Posted in Linux Kernel Programming | Tagged | Leave a comment

Introduction to Linux Kernel

The Linux or the unix kernel is just developed under the microkernel architecture… The Microkernel provides only the necessary minimum of functionality (inter process communication and the memory management) and can be accordingly be implemented in a small and compact … Continue reading

Posted in Linux Kernel Programming | Tagged | Leave a comment

Kernel Directory Structure

In Linux the Kernel source is available under /usr/src/linux. Architecture dependent code is available in the following directory structure arch/alpha – for the DEC Alpha Architecture arch/x86 – for the Intel 32 bit Architecture arch/arm – for the ARM Architecture … Continue reading

Posted in Linux Kernel Programming | Tagged | Leave a comment

Characteristics of Linux

Linux is Multiuser – allows number of users to work with the system at the same time Multitasking – supports true preemptive multitasking. All processes independently of each other. Multiprocessing – from kernel Version2.0 onwards, linux supports multiprocessor architectures. Applications … Continue reading

Posted in Linux Kernel Programming | Tagged | Leave a comment

8051 Program to handle the Ports

  Tool used: Keil Compiler for 8051 Microcontroller used: Intel 8051AH (with 32 I/O Pins, Two timers/counters, 5 interrupts with 2 priority levels) //Program to handle ports of 8051 #include <reg51.h> void main() { P0=0x50; P1=0x10; P0=P1+P0; } The Port0 … Continue reading

Posted in 8051 | Tagged | Leave a comment