Preview

Nt1310 Unit 10 Research Paper

Satisfactory Essays
Open Document
Open Document
742 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Nt1310 Unit 10 Research Paper
Paper II - Section : II Embedded Systems INDEX No 1 2 3 4 5 6 7 8 9 10 Toggle Port LED Simulate Binary Counter at Port Generate delay using TIMER_0 Stepper Motor (clockwise/Anticlockwise) Generating square wave at port pin Generating Triangular wave at port pin Sine wave generation using look-up table Microcontrollers communicating over a serial link Read switch-status from i/p port and display at o/p port Using Input Capture Pin (ICP), measure pulse width & display at o/p port Topic Date 6-9-2010 9-9-2010 17-9-2010 24-9-2010 8-10-2010 15-10-2010 15-10-2010 29-10-2010 22-11-2010 24-11-2010 Page 02 03 04 06 07 09 10 11 13 15 Sign

2
Practical – 01 Toggle Port LED Aim : Write a program in embedded C programming language to alternately ON/OFF
…show more content…
Components Used: i)AT90S8535 Micro controller ii)LED‟S iii)Ground Code: #include int timeCount = 0; interrupt[TIM0_OVF] void timer0_ovf_isr(void) { TCNT0 = 6; if(++timeCount == 1000) { PORTA =PORTA ^ 0x01; timeCount = 0; } } void main(void) { DDRA = 0x01; PORTA = 0x01; TCCR0 = 0x02; TIMSK = 0x01; #asm("sei"); while(1); } Description: A variable timecount is initialized to 0. In the main function the LSB of PORTA is chosen for output and it is set to 1. Then the TIMER COUNTER CONTROL REGISTER (TCCR0) is initialized in such a way that divide by 8 (CK/8)clock source is selected again the “timer interrupt mask is set to enable the timer0 counter. “#asm” is a assembly language instruction „sei‟ stands for set enable interrupts to enable all the interrupts. Finaly ainfinite while loop.Then the function with keword interrupt is created.This function will be called automatically when the timer0 overflow interrupt takes place. This function returns nothing, since it is not called by any function and you cant pass any thing to function for the same reason .The timer0 is initialized to 6 in this function .As we have chosen ck/8 system as mentioned above and the clock frequency is 4 Mhz that‟s why 4/8 Mhz so 500 Khz(0.5 Mhz) will be the effective frequency so for one tick of counter 1/0.5 micro sec are required(1/freq.= time) that equals to 2 micro secondes. A timer can

You May Also Find These Documents Helpful

  • Good Essays

    Xc60 Unit 8 Project

    • 568 Words
    • 3 Pages

    In the PC the math lab code is written to get the frequency of different voltages that are produced by brainwave sensor. This is given to the ARM processor by the protocol which is responsible by the UART. The ARM will process the signal and the corresponding emotion is displayed on the LCD display and the speed of the DC motor is reduced or increased based on the voltage and by changing the duty cycle of the PWM signal which is derived by the relay driver and the below diagram represents the serial data transmission to the arm through UART and driving the output to different devices which is responsible by the GPIO. The speed of the wheel is reduced based on the generated frequencies and there cross- ponding emotions by differing the PWM signal which is done by writing the embedded C programme in keil software and it is processed by using the ARM…

    • 568 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Altera Quartus Experiment

    • 19294 Words
    • 78 Pages

    performance of the pushbutton enabled counter by the DE1 board, the pulsar symbol was followed…

    • 19294 Words
    • 78 Pages
    Powerful Essays
  • Satisfactory Essays

    Bascom8051 Program

    • 2277 Words
    • 10 Pages

    2. Write the program for a system that will turn ON a LED when the PBNO switch is pressed. Pressing and then releasing again this PBNO switch will turn the LED OFF.…

    • 2277 Words
    • 10 Pages
    Satisfactory Essays
  • Good Essays

    LED Flasher Project ver3

    • 619 Words
    • 6 Pages

    software program written in the C programming language. The hardware circuit consists of a PIC…

    • 619 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    propeller clock

    • 596 Words
    • 3 Pages

    In this project, our aim is to use PIC or 8051 microcontroller to control a row of LEDs to function it as a clock.…

    • 596 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Electronics

    • 541 Words
    • 3 Pages

    We were assigned with the task of designing and building a digital clock that displays the time in Binary. First a power supply that outputs a 60Hz square wave is fed into the circuit. We used 74160 decade counters in the project. A 74160 divided the clock down to 6Hz, and then a truncated 74160 divided it down to a 1Hz wave that would be the input for the clock. This clock will display in military time. The 1HZ is equal to one second and is fed into the first 74160. There are six 74160 counters and one J/K Flip-Flop to count and display the time in 4 bit blocks. One nibble for the ones column of seconds, One nibble for the tens column for seconds and so on, except the hours which has only 2 bits. The outputs are hooked to LEDs. It the LED is on it represents a 1 and if it is off it represents a 0.…

    • 541 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    |To construct a 24-hours Digital Clock using components like 7490, 7447 and some other simple gates. |…

    • 564 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Complete calculation of time period through the electronic hardware in laboratories. Laser light is used to make an incident on pendulum in the plane perpendicular surface to osculation of pendulum and li ght sensor is mounted behind it, every time the bob of pendulum oscillates it obstructs the laser beam. The micro controller is programed to record the time difference and display it on screen.…

    • 892 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    tor R4. IC1 is wired as a monostable multivibrator to delay the clock given to decade counter-cum-driver IC CD4017 (IC2). Out of the ten outputs of decade counter IC2 (Q0 through Q9), only five (Q0 through Q4) are used to control the fan. Q5 output is not used, while Q6 output is used to reset the counter. Another NE555 timer (IC3) is also wired as a monostable multivibrator. Combination of one of the resistors R5 through R9 and capacitor C5 controls the pulse width. The output from IC CD4017 (IC2) is applied to resistors R5 through R9. If Q0 is high capacitor C5 is charged through resistor R5, if Q1 is high capacitor C5 is charged through resistor R6, and so on. Optocoupler MCT2E (IC5) is wired as a zero-crossing detector that supplies trigger pulses to monostable…

    • 377 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    The objective of the project was to create a circuit with an 8051 microcontroller that senses when an object passed through an infrared receiver’s receive path to automatically turn on lights and count how many times the receive path was blocked.…

    • 1822 Words
    • 8 Pages
    Good Essays
  • Good Essays

    The project makes use of an IC NE555 timer configured as a monostable multivibrator. An LDR is used to control the trigger of the multi-vibrator. During daytime, the trigger is high and the multi-vibrator is in OFF condition. During the night the trigger goes low and the device starts to operate i.e. the LED is ON.…

    • 1083 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    74193

    • 1290 Words
    • 6 Pages

    The DM74LS193 circuit is a synchronous up/down 4-bit binary counter. Synchronous operation is provided by having all flip-flops clocked simultaneously, so that the outputs change together when so instructed by the steering logic. This mode of operation eliminates the output counting spikes normally associated with asynchronous (rippleclock) counters. The outputs of the four master-slave flip-flops are triggered by a LOW-to-HIGH level transition of either count (clock) input. The direction of counting is determined by which count input is pulsed while the other count input is held HIGH. The counter is fully programmable; that is, each output may be preset to either level by entering the desired data at the inputs while the load input is LOW. The output will change independently of the count pulses. This feature allows the counters to be used as modulo-N dividers by simply modifying the count length with the preset inputs. A clear input has been provided which, when taken to a high level, forces all outputs to the low level; independent of the count and load inputs. The clear, count, and load inputs are buffered to lower the drive requirements of clock drivers, etc., required for long words. These counters were designed to be cascaded without the need for external circuitry. Both borrow and carry outputs are available to cascade both the up and down counting functions. The borrow output produces a pulse equal in width to the count down input when the counter underflows. Similarly, the carry output produces a pulse equal in width to the count down input when an overflow condition exists. The counters can then be easily cascaded by feeding the borrow and carry outputs to the count down and count up inputs respectively of the succeeding counter.…

    • 1290 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    89s52 C Program

    • 1000 Words
    • 4 Pages

    Here is a very simple but complete example program to blink a LED. Actually it is the source code of the example project that we are going to construct in the next part of the tutorial, but for now it is important to concentrate on the programming to summarize the notions discussed above.…

    • 1000 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    8085 microprocessor

    • 9441 Words
    • 38 Pages

    EE 201 : Digital Circuits and Microprocessors Dr. Amit Sethi Room 303, EEE Dept. 2529, amitsethi Objectives for this session Introduce the 8085 Microprocessor Introduction to 8085 programming model Introduction to 8085 instruction set All computers are based on the Turing Machine concept • In 1937, Alan Turing described this abstract idea of a computer • Turing Machines consist of: – A tape of infinite length with symbols printed in cells – A read-write head that can move along the tape to read and write symbols – A state from a finite set stored inside the machine – A finite set of instructions that translate the current state and the read symbol into an action which can be: • Change to another state • Move to another place on the tape • Write a symbol on the tape Computer: Basic definitions • Computer is a machine that sequentially and automatically carries out a sequence of arithmetic or logical operations given as instructions in form of a program, which can be changed readily, allowing the computer to solve more than one kind of problem • Data and programs can be read from memories, storage or input devices • Data can be written into memory, storage and output devices Computer components: Memory • Write: An arbitrary word can be written into the memory • Store: Memory can store data (multiple words) • Read: An arbitrary word can be read from the memory for usage • Examples so far – Data latches are 1-bit memories – Registers are 1-word (e.g. 1-byte) memories • But, we want to study bigger memories Each bit of a memory is a latch I1 2n lines out DECODER n-bit address in bit Lx EN D ……

    • 9441 Words
    • 38 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Stealth Technology

    • 276 Words
    • 2 Pages

    In this chapter we discussed about the components and their details which are used in this project like microcontroller and its pin description, crystal oscillator, Regulator IC and its uses, Ceramic capacitor, LED and PCB, Resistors, Single phase induction motor etc. we also described thes component in briefly.…

    • 276 Words
    • 2 Pages
    Satisfactory Essays