[SOLVED] LATB and PORTB register in PIC18XXX ?

Status
Not open for further replies.
N

Notty07

Guest
latb pic

Hi all

In pic18xxx I found register LATB in datasheet and it comment to
Read-modify_write .
What defferent between LATB and PORTD ?
What is the adventage of LATB register?
How to use it?

Thank you.
 

pic latb

I think that Latb means latchB, in normal use between 16 series Portx or 18 series Latx I have found anything difference, the use is tthe same
 

portb latb

Hi,

For the Pic 18 Series:

Reading a I/O port or bit uses the "PORT" register.

Writing to an I/O port or bit should use "LAT" register.

Regards,

Maximilius26
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…