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

  • Thread starter Thread starter haren
  • Start date Start date
  • Tags Tags
    Processing Unit
AI Thread Summary
The discussion focuses on creating a simple digital processing unit with two inputs and two outputs to control LEDs based on specific signal combinations. The user expresses difficulty implementing the logic in PIC assembly language and considers abandoning the project due to time constraints. A suggestion is made to create a truth table to clarify the input-output relationships, which could help in understanding the required functionality. The importance of using conditional statements to control outputs based on input signals is emphasized. Overall, a structured approach is recommended to simplify the implementation process.
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
...
 
Back
Top