0% found this document useful (0 votes)
17 views

UNIT 5- Memory and Programmable Logic

Uploaded by

Kulwinder Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

UNIT 5- Memory and Programmable Logic

Uploaded by

Kulwinder Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

1

UNIT 5: Memory and Programmable Logic

UNIT 5: Memory and Programmable Logic


Computer Science Department: University of the People
CS 1105-01 - AY2025-T2
Altaf Din
December 20, 2024.
2
UNIT 5: Memory and Programmable Logic

INTRODUCTION: In this project we will design a digital circuit that controls a street light

depending on the time of the day, the digital circuit will employ Programmable logic devices

to control the logic of the system.

1. Project Overview

We need to design a digital circuit that controls a street light. The light should:

 Turn ON at 6:00 PM.

 Turn OFF at 6:00 AM.

To achieve this, we’ll use a Programmable Logic Device (PLD) to simplify the design and

increase flexibility.

Key Components in the Circuit

A. Real-Time Clock (RTC): this will provides accurate time data to our circuit, we will

utilize the DS3231 RTC, a Highly Accurate RTC to completely manage all

Timekeeping Functions. (Dejan, 2022)

B. Light-Emitting Diode (LED) or Bulb: we will require an LED Street Light as the

primary source of light.


3
UNIT 5: Memory and Programmable Logic

C. Relay Module: we will also require a relay module which will act as a switch to

control the light.

D. Programmable Logic Device (PLD): The heart of the circuit is a PLD Receives time

signals from the RTC and controls the relay by sending Low or High singal to manage

the light.

E. Power Supply: we will require a 12V power supply to provide power to all

components.

2. Design Logic for the PLD

The PLD will handle the decision-making. Here’s how we program it:

 The digital clock module(RTC) provides the current hour in binary format to the PLD

 Four input pins on the PLD receive this time information

 The PLD processes these inputs using programmed logic equations

 If the time is between 6:00 PM (18:00) and 6:00 AM (06:00), the PLD outputs a

High signal to turn the relay ON, otherwise, it sends a Low output to the relay which

turns it OFF.

 The Output signal is a single digital output signal (1(high) for ON, 0(low) for OFF)

connected to the relay.


4
UNIT 5: Memory and Programmable Logic

PLD Programming

The PLD of choice ATF22V10, Can be programmed using a TL866II+

programmer. The logic functions for programming the ATF22V10 are specified using

a human-readable hardware description language, which needs to be compiled into a

device-specific “fuse map” for programming the device. (Mike, 2024)

3. Advantages of Using a PLD in this circuit.

o Flexibility: PLDs can be reprogrammed to modify the logic easily, there’s No need to

change physical components when more lights are added.Moreover, additional

features can be added without circuit redesign due to its programmability.

o Compact Design: The PLD reduces the need for multiple logic components,hence

fewer components are required.

o Cost-Effectiveness: Simplifies hardware, and this ATF22V10 model comes with low

cost easy to use software tools for programming.

o Scalability: Allows for future enhancements, like adding motion sensors or other

features.
5
UNIT 5: Memory and Programmable Logic

o Reliability: Fewer components means higher reliability, there will be no mechanical

timing parts that can wear out with time. According to Alldatasheet.com, this PLD

model has a 20 year Data Retention and 100 Erase/Write Cycles.

4. Reasons Why PLDs are valuable tools in digital circuit design.

 Easy Integration: PLD’s can replace multiple Gate components in the circuit,

this reduces the circuit’s complexity and minimizes space requirements. This

also makes it easy to integrate numerous electronic circuit projects.

 Flexibility: PLD’s are easily programmable to fit any electronic circuit

project, this also makes it easy to implement complex logic functions.

 Cost-Effectiveness: the advantage of a reduced component count means less

assembly cost.

 Reliability: Due to fewer components required means fewer mechanical

components that can break.

Conclusion:

Our design shows how a PLD may streamline tasks that would otherwise call for a number of

timing components and logic integrated circuits. While producing a practical gadget, it offers

novices a hands-on introduction to programmable logic. Future extensions, like the addition

of light sensors or motion detection capabilities, are also made possible by the design's

modularity.
6
UNIT 5: Memory and Programmable Logic

Reference:

Dejan. (2022, February 18). Arduino and DS3231 Real Time Clock Tutorial. How to

Mechatronics. https://howtomechatronics.com/tutorials/arduino/arduino-ds3231-real-

time-clock-tutorial/

Mike. (2024, September 8). A first look at programmable logic. Mike’s Software Blog.

https://mike42.me/blog/2021-08-a-first-look-at-programmable-logic

alldatasheet.com. (n.d.-b). ATF22V10 Datasheet(PDF). ATMEL Corporation.

https://www.alldatasheet.com/datasheet-pdf/pdf/56313/ATMEL/ATF22V10.html

You might also like