Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

difference between PORTD.B2 and PORTD2_bit...

Status
Not open for further replies.

_SquiD_

Advanced Member level 4
Joined
Jul 30, 2008
Messages
114
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Activity points
2,035
difference between ...

what is the difference between?

1:
Code:
sbit RS485_rxtx_pin at PORTD.B2;
sbit RS485_rxtx_pin_direction at DDRD.B2
and
2:
Code:
sbit RS485_rxtx_pin at PORTD2_bit;
sbit RS485_rxtx_pin_direction at DDD2_bit


Thanks in advance.

-SQD-
 

difference between ...

Hi,
If it's in mikroBASIC, it's the same thing.
For mikroC,
Code:
PORTD.B2
needs to be changed to
Code:
PORTD.F2
,
Code:
DDRD.B2
to
Code:
DDRD.F2
Hope it helped.
Tahmid.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top