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.

Help in addressing pins of AT89C4051.

Status
Not open for further replies.

vinash

Member level 2
Joined
Nov 3, 2005
Messages
45
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,999
Hi,
I do have a very fundamental question to ask, How do i directly address port 3.6 directly instead of using ((P3&0x40)?
as P3.6 is hard-wired as an input to the output of the on-chip comparator and is not accessible as a general-purpose I/O pin.for (AT89C4051)

I cant simply use the command,
#define P3_6=0xB6 rite?
Please do help. Thank you
 

Simple.
In C, you use
sbit COMP_INP = P3^6;

if (COMP_INP == 1) do this and that

in A51, you use
COMP_INP EQU P3.6

JB COMP_INP,LABEL
 

    vinash

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top