- This topic has 2 replies, 3 voices, and was last updated 9 years, 10 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › PIC › Three input NOR gate in PIC
Hey guys,
I was wondering if i could get some help with an assignment question we were given (in a very short span of time),The question is as follows :”Implement a three input NOR gate in PIC.Input pins are 33,35 and 37.(Connect three switches to input the biits) and the output pin is 21(connect an led to indicate the output)
I tried using a simple code as follows,but when i check for a change in the SFRs during line wise debugging,I dont get a change as expected.
Do you have a C code of the same? Could you please explain the logic which you are using in the code?
I dont see any conditional instructions in ur code
I dont know any assembly language but
the logic is u hv to use conditions like
if else or case