8051 Programs Download


feedinco


8051 program examples: These are several programs for the atmel 8051 core (general or at89c51ac2) which can be tested and debugged from the keil 8051 compiler
ċ
8051 Bit I/O
View
This example program shows how to change a state of the pin P1.0 input and watch the state of P1.1 output changes. This can be tested by the keil debugger:  Aug 13, 2011, 4:22 AM electronics control
ċ
8051 Counter 0
View
This program shows how to configure timer/counter 0 as a 16-bit counter with an input from Port 3.4. Each time P3.4 goes low, the 16-bit counter increments by 1.  Aug 13, 2011, 4:26 AM electronics control
ċ
8051 /INT0 External Interrupt
View
This example program that shows an externual interrupt 0 in falling edge interrupt.  Aug 13, 2011, 4:22 AM electronics control
ċ
8051 Memory Write
View
This program is a simple demonstration of the DATA, IDATA, PDATA, and XDATA memory areas of the 8051. The program writes a short string into each of these memory areas.  Aug 13, 2011, 4:23 AM electronics control
ċ
8051 Port I/O
View
This program shows how to read and write the 8-bit ports of an 8051.  Aug 13, 2011, 4:24 AM electronics control
ċ
8051 Pulse Width Measurement
View
This example program shows how to compute the width of a pulse using timer0 in mode 1. Port 3.2 is used as an external gate for the timer. An interrupt is used to accumulate timer overflow. The width of each pulse is output to the serial port.  Aug 13, 2011, 4:24 AM electronics control
ċ
8051 Timer 0 Mode 1
View
This example program shows how to configure timer/counter 0 as a 16-bit timer. An interrupt service routine (ISR) is invoked each time the timer overflows (goes from 0xFFFF to 0x0000). In the ISR, the overflow_count variable increments.  Aug 13, 2011, 4:24 AM electronics control
ċ
8051 Timer 1 Mode 2
View
This example program shows how to configure timer/counter 1 as an 8-bit timer. An interrupt service routine (ISR) is invoked each time the timer overflows (goes from 0xFF to 0x00). Inside the ISR, the overflow_count variable increments.  Aug 13, 2011, 4:25 AM electronics control
ċ
8051 von Neumann Memory
View
The following example program shows how you can build an application for a target with CODE, XDATA, and von Neumann memory.  Aug 13, 2011, 4:25 AM electronics control
Comments