Shasas

Only available on StudyMode
  • Topic: Display device, Nixie tube, Display technology
  • Pages : 4 (619 words )
  • Download(s) : 7
  • Published : May 21, 2013
Open Document
Text Preview
http://www.engineersgarage.com/microcontroller/8051projects/8-candidate-quiz-buzzer-AT89C51-circuit Transistor BC548BC548 is general purpose silicon, NPN, bipolar junction transistor. It is used for amplification and switching purposes. The current gain may vary between 110 and 800. The maximum DC current gain is 800....| * 65,058-Reads| Seven Segment Display A seven segment display is the most basic electronic display device that can display digits from 0-9. They find wide application in devices that display numeric information like digital clocks, radio, microwave ovens...| * 18,970-Reads| Piezo Buzzer The piezo buzzer produces sound based on reverse of the piezoelectric effect. The generation of pressure variation or strain by the application of electric potential across a piezoelectric material is the underlying...| * 127,195-Reads| AT89C51 MicrocontrollerAT89C51 is an 8-bit microcontroller and belongs to Atmel's 8051 family. ATMEL 89C51 has 4KB of Flash programmable and erasable read only memory (...|

// Program to make a quiz buzzer using seven segment

#include<reg51.h>
unsigned int digi_val[10]={0x40,0xF9,0x24,0x30,0x19,0x12,0x02,0xF8,0x00,0x10}; // Hex value corresponding to the digits 0 to 9
sbit output_on_pin = P3^0; // Enable pin to enable the seven segment.
sbit stop_pin = P3^1; // Stop pin to reset the buzzer.
sbit buzzer_pin=P0^0; // Buzzer pin to sound the buzzer.
int flag;

void delay() // Time delay function
{
int i,j;
for(i=0;i<200;i++)
for(j=0;j<1275;j++);
}

void display(unsigned int current_dig) // Function to display...
tracking img