Page 1 of 1

Need Help with Code Structure

Posted: 23 Mar 2021 09:05
by Mc Daniel
Greetings my name is Mc Daniel

i new to Micro-Controller programming and i need help with coding a Pic16F877a. I need the structure for declaring a port as input or Output and been able to read output from lets say;
1. the output from an AND gate into the Microcontroller.
2. the output from LM35

Then implement some conditions based on the two inputs from the LM35 and an AND gate and out one output through a set pin in the microcontroller.

Hope you understand my question and your response is highly appreciated

Thank you for your time

Re: Need Help with Code Structure

Posted: 24 Mar 2021 09:54
by filip
Hi,

I believe I have answered you here :
viewtopic.php?f=146&t=77999

Regards,
Filip.