ATMega_2560_Embedded_THT/GPIO_Input
Tanish25 759597d8f9 Adding files 2022-10-05 20:05:08 +05:30
..
Makefile adding files 2022-10-04 18:52:43 +05:30
main.c Adding files 2022-10-05 20:05:08 +05:30
main.elf adding files 2022-10-04 18:52:43 +05:30
main.hex adding files 2022-10-04 18:52:43 +05:30
main.o adding files 2022-10-04 18:52:43 +05:30
readme.txt adding files 2022-10-04 18:52:43 +05:30

readme.txt

Registers involved:

GPIO:
DDRA: Data Direction Register for Port A= 0xFF for output (Port A- pin 22:29)
DDRB: Data Direction Register for Port B= 0x00 for input (Port B- pin 53:50[B0:B3] & pin 10:13[B4:B7] ) 
DDRC: Data Direction Register for Port C= 0xFF for output (Port C- pin 37:30)

PORTB: Port B Data Register
PINB: Port B Input Pins Address

About pull-up and pull-down resistors: