ATMega_2560_Embedded_THT/GPIO_Output/Full_port_toggle
Tanish25 63bd4b3f03 adding files 2022-10-04 18:52:43 +05:30
..
Makefile adding files 2022-10-04 18:52:43 +05:30
main.c adding files 2022-10-04 18:52:43 +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

F_CPU= 16000000= To set clock frequency as 16MHz
MS_DELAY= 1000= To set value 1000 as equivalent to 1 second

Registers Involved:
DDRC: Data Direction Register for Port C= 0xFF for output
PORTC: Port C Data Register= Data written here is observed in the corresponding output pins(Port C= pin 37:30)