Hi everyone, below is a portion of my code on how I defined the input of AT89S52 microcontroller. Also attached is the circuit diagram. My questions are:
1. Is it necessary add a resistor between the input of the microcontroller and the ground in other to make the input of the microcontroller be well defined at all times.
2. Must I always write a logic one in the code in other to configure the pins as input.
3. The way I defined the pins in the main program, is it alright.
Please if there needs to be adjustment anywhere let me know, thank you
1. Is it necessary add a resistor between the input of the microcontroller and the ground in other to make the input of the microcontroller be well defined at all times.
2. Must I always write a logic one in the code in other to configure the pins as input.
3. The way I defined the pins in the main program, is it alright.