Jump to content

LabVIEW and Proteus comminication settings (RS232) HELP...


Recommended Posts

Hello friends,

LabVIEW with the PROTEUS programs via rs232 want to light an LED. But I'd done, I can not run a kind of study. I do not know where the error was doing. Would you please help. THANKS.

CSS C CODE:

#include <16f877.h>

#fuses XT,NOWDT,NOPROTECT,NOBROWNOUT,NOLVP,NOPUT,NOWRT,NODEBUG,NOCPD

#use delay (clock=4000000) // Gecikme fonksiyonu için kullanılacak osilatör frekansı belirtiliyor.

#use rs232 (baud=9600, xmit=pin_C6, rcv=pin_C7, parity=N, stop=1,FORCE_SW)

#use fixed_io(d_outputs=PIN_D0,PIN_D1,PIN_D2,PIN_D3)

void veri ()

{

char x;

gets(x);

if(x=='A')

output_d(255);

return;

}

void main()

{

setup_psp(PSP_DISABLED);

setup_spi(SPI_SS_DISABLED);

setup_timer_1(T1_DISABLED);

setup_timer_2(T2_DISABLED,0,1);

setup_adc_ports(NO_ANALOGS);

setup_adc(ADC_OFF);

setup_CCP1(CCP_OFF);

setup_CCP2(CCP_OFF);

//output_d(0x00);

while(1)

{

veri();

}

}

Proteus DESIGN :

2.jpg?psid=1

VI Programı:

1.jpg?psid=1

VI PROGRAM:

3.jpg?psid=1

THANKS

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.