puneetnepsam
New Member
hi i am a beginner in the embedded systems.....please help
in the I/O ports section i have read.....
TRIS register means that it will define the direction of the pin which is connected to the particular port
exmple:
TRISGbits.TRISG1 = 1 will make that line in the input mode...
but what does
PORTGbits.PORTG1 = 1;
and
LATGbits.LAT1 = 1;
means??
does it mean that it would write 1 to the corresponding line??
thanks
Puneet Gupta
in the I/O ports section i have read.....
TRIS register means that it will define the direction of the pin which is connected to the particular port
exmple:
TRISGbits.TRISG1 = 1 will make that line in the input mode...
but what does
PORTGbits.PORTG1 = 1;
and
LATGbits.LAT1 = 1;
means??
does it mean that it would write 1 to the corresponding line??
thanks
Puneet Gupta