umt134 Posted June 17, 2011 Report Share Posted June 17, 2011 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 : VI Programı: VI PROGRAM: THANKS Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.