I know, manual adresses this, but it says all that abstract, here's how I understand it, please correct me if I wrong.
From the included sample, I've borrowed the code for 16F628A:
If I understand properly, the command TRISB addresses ports in the following manner, the first char on the left is for the PORTB.7 and last char from the left is PORTB.0, right?Code:TRISB = %11001111 ' Set PORTB.4,5 (LEDs) to output, rest to input
So, if I want to modify this string to make ports 7,4,5,2 output, others as input, it should look like:
Correct ?Code:TRISB = %01001011 ' Set PORTB.7,4,5,2 (LEDs) to output, rest to input




Bookmarks