Mplab #use function working

Status
Not open for further replies.

jovin555

Advanced Member level 4
Joined
May 20, 2012
Messages
115
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
2,036
in mplab we use "#use rs232(baud=9600,xmit=pin_c6,rcv=pin_c7)"....how does the compiler assign these pins. whats the internal code that get replaced for this function...i want to make a lcd header..where i would lik to pass #use LCD(RS=PIN_B5,E=PIN_B6,D4=PIN_B4,D5=PIN_B2,D6=PIN_B1,D7=PIN_B0)..is it possible to write this code??can anyone explain me its working?
 

Thats not the MPLAB function...

MPLAB is just an IDE where one can integrate there compiler's..


the #use directive is a part of CCS PIC C compiler....

This compiler has lots of function and this directive is used for serial communication it also has functions for lcd and other things..
 

can i create a function lik dat...for lcd..???
 

No Dear..

I think no..
These are compiler features..

for lcd functions are available
like
lcd_init()
lcd_putc()
lcd_gotoxy()

have a look on these
 

is it available in hi-tech?
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…