Description: Write interrupt routine: on the SCM system p1 port connected with 8 LED, LED anode connected to+ 5V, the cathode connected to the P1 port pins. When a certain line P1 port output is 0, the LED lights. In the pull-up resistor connected to the external interrupt and then there is a button to switch on the K1 0 output pin P3.2 pin. With K1 button to generate an external interrupt 0 input signal. Write timer programs: On AT89S51 microcontroller P1 port is connected with 8 LED timer below using the timer T0 interrupt the way a way to make the P1 port 8 LED external flash once every 0.5 seconds. C51 Procedure: AT89S51 of P1.0 pin is connected with a light emitting diode is connected to P1.0 cathode and the anode through the current limiting resistor connected to+ 5V, now let the light emitting diode flash off every 800 ms, the duty cycle is 50 . Do not use the function strcat (), with the character pointer variable as a function parameter programming string concatenation function strcat ()
To Search:
File list (Check if you may need any files):
include.docx