PROJECT 11 – Interrupt Driven Event Counter with 4-digit LED Display Function This project shows how the external interrupt input of the microcontroller can be programmed using the C language. The project is a simple interrupt-based event counter which can count external events from 0 to 9999. A TSM5034 type 4-digit display is connected to […]
Continue reading…
Uncategorized
Light Projects:Four-digit LED Display Interface
PROJECT 10 – Four-digit LED Display Interface Function This project shows how a 4-digit display can be interfaced to a microcontroller. The display we shall be using in this project is the TSM5X34 series 0.311 4-digit display with on-board driver. This display can be used in many microcon- troller-based applications, including digital clocks, thermometer circuits, […]
Continue reading…
Light Projects:7 Segment Display Driver
PROJECT 9 – 7 Segment Display Driver Function This project shows how a 7 segment display can be interfaced to a micro- controller. In this project, a 7 segment display is connected to port 1 of the microcontroller and a program is written to count up from 0 to 9 and display the data on […]
Continue reading…
Light Projects:TIL311 Dice
PROJECT 8 – TIL311 Dice Function This project is a dice made up from a TIL311 type hexadecimal display. When a push-button switch, connected to bit 0 of port 3, is depressed, a random number between 1 and 6 is displayed on the display. After about 2 seconds the display is cleared and the user […]
Continue reading…
Light Projects:Two-Digit Decimal Count
PROJECT 7 – Two-Digit Decimal Count Function This project shows how a microcontroller can be interfaced to two TIL311 type hexadecimal displays. This project counts up continuously from 0 to 99 in decimal with about a second delay between each count. Circuit Diagram The circuit diagram of this project is shown in Fig. 3.15. Two […]
Continue reading…
Light Projects:Hexadecimal Display
PROJECT 6 – Hexadecimal Display Function This project shows how a microcontroller can be interfaced to a TIL311 type hexadecimal display. The program counts up from 0 to 9 and then in hexadecimal format from A to F and then back to 0. This process is repeated forever with a 1 second delay inserted between […]
Continue reading…
Light Projects:LED Dice
PR0JECT 5 – LED Dice Function This project simulates a dice by displaying a random number between 1 and 6, on six LEDs connected to port 1 of the microcontroller. Bit 0 of port 3 (P3.0) is used as the input and a push-button switch is connected to this pin. Every time the switch is […]
Continue reading…
Light Projects:Cyclic LED Pattern
PR0JECT 4 – Cyclic LED Pattern Function This project turns on the LEDs connected to port 1 in a cyclic manner such that first only 1 LED is on, then 2 LEDs are on, then 3, 4, 5, … , 8 are on (Fig. 3.7). The process is repeated indefinitely with 1 second delay between […]
Continue reading…
Light Projects:Random LED Pattern
PR0JECT 3 – Random LED Pattern Function This project turns on the LEDs connected to port 1 randomly. A random number is generated between 0 and 32 767 using the built-in C function rand and then this is output to turn on the corresponding LEDs. The data is displayed with about 1 second delay between […]
Continue reading…
Light Projects:LED Chasing Circuit
PR0JECT 2 – LED Chasing Circuit Function This project turns on the LEDs connected to port 1 of the microcontroller in sequence, resulting in a chasing LED effect. The data is displayed with about 1 second delay between each output pattern. Figure 3.4 shows the output pattern displayed by the LEDs. Circuit Diagram The same […]
Continue reading…