TTL Simulation

Viewed 11 times

How i set up my breadboard:

Placed SN74LS08N (AND gate) on a breadboard. Connected IC pin 7 to GND and IC pin 14 to 5 V for IC to get powered. connected GPIO pin 16 to IC pin 13, connected GPIO pin 12 to IC pin 12 and connected GPIO pin SCLK to IC pin 11. connected LEDs’ anode (+) to GPIO 12, 16 and SCLK, connected LEDs’ cathode (-) to one end of resisters and connected the other end of resisters to GND

I’m fairly new to RPi and for some reason i cant wrap my head around how to write a python code to simulate an AND gate.

 New contributor
  • Hello @Vinx7, Welcome and nice to meet you. Ah, let me see. First, requirement and specification. (1) User requirement v0.1: “How to simulate TTL AND gate SN74LS08N using Rpi python”, (2) Functional spec suggestion v0.1: “Input parameters: in1a, in1b, in2a, in2b, … in4a, in4b (b) Output parameters: out1y, … out4y”. Your comments and counter suggestions welcome. Best Regards, Your sincerely, Ta and cheers. – tlfong01 36 mins ago    
  • Notes on Spec v0.1: We need to agree that we only want to simulate the logical input/output states. In other words, we will confine to function logical truth table (Table 1 of datasheet below). We don’t care about power supply features, operating frequency and timing, temperature ranges etc. References: (1) SNx4HC08 Quadruple 2-Input Positive-AND Gates Datasheet – TI (Texas Instruments) 2016june: ti.com/lit/ds/symlink/sn74hc08.pdf. – tlfong01 38 secs ago   Edit   

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: