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

  • Thread starter Thread starter haren
  • Start date Start date
  • Tags Tags
    Processing Unit
Click For Summary
SUMMARY

The discussion focuses on creating a simple digital processing unit using PIC microcontrollers. The user aims to implement a system with two inputs and two outputs to control LEDs based on specific input combinations. The suggested approach involves utilizing conditional statements and reading from a port to manage outputs effectively. A truth table is recommended to clarify the relationship between inputs and outputs, ensuring accurate implementation.

PREREQUISITES
  • Understanding of digital logic design
  • Familiarity with PIC microcontrollers
  • Basic knowledge of assembly language programming
  • Ability to create and interpret truth tables
NEXT STEPS
  • Learn how to program PIC microcontrollers using MPLAB X IDE
  • Study conditional statements in assembly language for PIC
  • Explore the creation of truth tables for digital circuits
  • Investigate input/output port configurations in PIC microcontrollers
USEFUL FOR

Electronics enthusiasts, students learning digital logic design, and developers working with PIC microcontrollers who need guidance on implementing simple processing units.

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
...
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
5
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
2
Views
5K