Naming ports..........

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
Eduardo Grieger
Posts: 9
Joined: 04 Mar 2011 23:48

Naming ports..........

#1 Post by Eduardo Grieger » 05 Mar 2011 00:54

I wonder how do I assign a port with names for easy identification,
I looked in one instance but failed in that compiler.


#bit button = portb.0
#bit LED = portb.1

I tried to do so but did not work ...

#define button = portb.f0
#define LED = portb.f1

I'm using PIC16f877A..
In this compiler, as I do.


Thank you....

p.erasmus
Posts: 3391
Joined: 05 Mar 2009 10:28

Re: Naming ports..........

#2 Post by p.erasmus » 05 Mar 2011 09:09

What has this to do with PIC32 compiler from your post you are using 16F
When posting Please make sure you use the correct forum
Posts in incorrect Forums might not get answered

Read the language manual :wink:

Code: Select all

#define myPORT PORTB 
#define Led  PORTC.B0
#define button PORTD.B6
P.Erasmus
Saratov,Russia
--------------------------------------------------------------

Post Reply

Return to “mikroC PRO for PIC32 General”