I have a task and i am primarily new to micro controllers, i am using an atmega 256 rfr microcontroller and what i want to do is:
connect a sensor having a switch to its port pE0 , i couldn't find the pin diagram of the microcontroller otherwise , i would have posted here. Can you please guide me how to get started with this project.
What i want is:
whenever the switch is closed, the microntroller should show True or logic 1 on the terminal and whenever the switch is open it should show False or logic 0.
i Just need the basic overview or a pseudo code would be great, so that i can really know how to play around with this stuff.
Thanks a lot