ok i got this....as i did the changing of the numbers from 0 to 3. It was obvious that those numbers represents binary numbers of the portc and corresponds to LED1 and LED2(assigned via software)
I did add one more latc.2 to ground and placed one more LED to porta.2 (changed the trisa as well), then went up to 7th number and realised the change in binary on the porta.
I would love if you could explain to me were this could be useful in real life. I know time is limitted but some time i would love to read your explanation.
Many thanks.
Bookmarks