With the last program I can do that the PORTB oun the data that the PORTC recive, I don't know if the declaration of the register are in a wrong way or what if some body have an example of program that declarete a IN PUT port I will be thanksful
Reading a PORTn register returns the current values in the register, not the port n pin values. And reading a PORTnP/SETn register returns the current state of the port n pins.
Hi, How do you use this micro-controller: in master mode or single chip mode? in master mode ports A,B,C D have dedicated function (address bus, data bus) so it is quite normally to behave different than you like. Regards, Pai