Transmitting simple signal with PIC18F4550 (Manchester Code using mikroc)

Status
Not open for further replies.

pelagie

Newbie level 2
Joined
Mar 1, 2013
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,294
I try to transmit a simple signal using pic 18F4550. There is an error when I use Man_Send_Config() expression. (undeclared identifier)
My code is: Man_Send_Config(&PORTB,0);

text= "PB=";

while(1) {
Lcd_Out(1,1,text);
Delay_ms(2000);
PB=0b01011101;
Man_Send(0x0B);
Delay_ms(100);


Man_Send(PB);
Delay_ms(1000);
Man_Send(0x0E);
Delay_ms(1000);
Can anyone help me ??
 

First challenge: Try to ask clear questions.

Man_Send_Config() isn't a function of recent mikroc versions. Do you use an old version or did you define the function yourself? Or did you copy a code example that doesn't fit your compiler version?

In any case, you should tell the exact prototype.

P.S.: I find the function defined in a 2006 version.
 

Change

Code C - [expand]
1
Man_Send_Config(&PORTB,0);

to

Code C - [expand]
1
Man_Send_Config(PORTB,0);



I think you als have to use

Code C - [expand]
1
Man_Send_Init(PORTB)

 

I have alread tried Man_Send_Config(PORTB,0); and Man_Send_Init(PORTB) but I get "too many actual parameters" error. I will try it again. Thank you for the reply.
 

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…