PDA

View Full Version : Help me with this please



mnkjoi
- 29th November 2016, 19:47
Hey ,

Could someone helps me please with this :

Write a program that will check the input of 2-input quadruple NAND , if the NAND gate works properly then the LED connected to RD6 should be ON , otherwise the LED should be ON . Assume PORTC connected to the inputs of quadruple 2-input NAND gates , two LEDs connected to most two bits of PORTD .

Using pic assembly language .



If the four nand gates outputs matching the truth table , then we say the quad two input nand gate is working properly and the GOOD LED is On .


Please help me with this code .


Thanks

Demon
- 30th November 2016, 00:48
Don't you want to know how much most charge by the hour first?

richard
- 30th November 2016, 01:02
looks pretty easy


if the NAND gate works properly then the LED connected to RD6 should be ON , otherwise the LED should be ON



asm

MOVE?CT 0, TRISD, 6
MOVE?CT 1, PORTD, 6

ENDASM