Writing I/O Ports LATA.B15 -vs- LATA15_bit

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
Pets
Posts: 4
Joined: 10 Mar 2019 01:36

Writing I/O Ports LATA.B15 -vs- LATA15_bit

#1 Post by Pets » 10 Mar 2019 01:44

When writing I/O ports both statements work which is better to use?


LATA.B15 -vs- LATA15_bit

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Writing I/O Ports LATA.B15 -vs- LATA15_bit

#2 Post by stefan.filipovic » 11 Mar 2019 15:05

Hi,

Welcome to the mikroE forum.

They are the same, LATA15_bit is defined as a sbit variable of the LATA.B15 bit, you can see that if you press Ctrl+D while the mouse cursor is on the end of the LATA15_bit word.

Kind regards,
Stefan Filipović

Pets
Posts: 4
Joined: 10 Mar 2019 01:36

Re: Writing I/O Ports LATA.B15 -vs- LATA15_bit

#3 Post by Pets » 12 Mar 2019 22:49

Thanks!!! :D

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Writing I/O Ports LATA.B15 -vs- LATA15_bit

#4 Post by stefan.filipovic » 13 Mar 2019 11:09

Hi,

You're welcome.

Kind regards,
Stefan Filipović

Post Reply

Return to “mikroC PRO for PIC32 General”