Struggling with Creating a Simple Processing Unit? Here's Some Advice!

  • Thread starter Thread starter haren
  • Start date Start date
  • Tags Tags
    Processing Unit
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 1K views
haren
Messages
3
Reaction score
0

Homework Statement


Hi there
I'm trying to make a processing unit(digital)
1 1 -> A signal from output which lights a led(a)
1 0 -> A signal from another output which lights another led(b)
0 1 -> signal from (a) to light a
0 0 -> no signals

so basically there should be 2 inputs with 2 outputs


Homework Equations





The Attempt at a Solution



I tried this to do in pic controllers but finding it too hard to implement the assembly language. But since I'm running out of time I'm giving up on that
 
Physics news on Phys.org
This is very simple to do in a PIC using a combination of reading a port (and two pins on the port) and then some conditional statements that control the output of another port. Regardless, I suggest you make a proper truth table, with inputs on one side, and outputs on the other, since I'm certainly confused what should be happening, and when. For instance:

Code:
INPUTS		OUTPUTS
INA	INB	LEDA	LEDB
0	0	0	0
0	1	0	1
...