CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 22 matches
CCS Forum Index
Author Message
  Topic: Interface VB with PIC
stacey

Replies: 24
Views: 28906

PostForum: General CCS C Discussion   Posted: Wed Mar 23, 2011 8:59 am   Subject: Interface VB with PIC
Can I know how to change my code?

Mean something like below?

#include <16F877A.h>
#fuses HS, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock=20000000)
#use rs232 ( ...
  Topic: Interface VB with PIC
stacey

Replies: 24
Views: 28906

PostForum: General CCS C Discussion   Posted: Wed Mar 23, 2011 7:29 am   Subject: Interface VB with PIC
Can I know is that the reverse, to send data from PIC to Visual studio. We just use "putc" in the serial_isr function?

#include <16F877A.h>
#fuses HS, NOWDT, NOPROTECT, BROWNOUT, ...
  Topic: Interface VB with PIC
stacey

Replies: 24
Views: 28906

PostForum: General CCS C Discussion   Posted: Tue Mar 22, 2011 10:27 am   Subject: Interface VB with PIC
hey, really thanks so much yea.. Tomorrow I gonna try the other way that is pic send signal to visual studio... Hopefully its work too..

I need the both way communication for my final year project ...
  Topic: Interface VB with PIC
stacey

Replies: 24
Views: 28906

PostForum: General CCS C Discussion   Posted: Tue Mar 22, 2011 10:16 am   Subject: Interface VB with PIC
ya, its work!!! Thanks.. I am so happy right now.

Its a good beginning... But then more works to be comng up... I can create other function and try.. Thanks thanks

Really thanks so much.
  Topic: Interface VB with PIC
stacey

Replies: 24
Views: 28906

PostForum: General CCS C Discussion   Posted: Tue Mar 22, 2011 10:11 am   Subject: Interface VB with PIC
Ohh.. okie.. i go try agian..
  Topic: Interface VB with PIC
stacey

Replies: 24
Views: 28906

PostForum: General CCS C Discussion   Posted: Tue Mar 22, 2011 10:10 am   Subject: Interface VB with PIC
Sad it cant work. I dont know why...
  Topic: Interface VB with PIC
stacey

Replies: 24
Views: 28906

PostForum: General CCS C Discussion   Posted: Tue Mar 22, 2011 9:55 am   Subject: Interface VB with PIC
Thanks. I go try now..
  Topic: Interface VB with PIC
stacey

Replies: 24
Views: 28906

PostForum: General CCS C Discussion   Posted: Tue Mar 22, 2011 9:25 am   Subject: Interface VB with PIC
Can you help me correct it?

I really have no idea on using serial port.
  Topic: Help!!! My PIC does not receive signal from Visual Studio
stacey

Replies: 5
Views: 6410

PostForum: General CCS C Discussion   Posted: Tue Mar 22, 2011 6:55 am   Subject: Help!!! My PIC does not receive signal from Visual Studio
I dont understand the first part. You mean disconnect the connection of UART in PIC then what is loopback connector?

Where should I add the while(1) ?

I never use ISR before and dont know what i ...
  Topic: Help!!! My PIC does not receive signal from Visual Studio
stacey

Replies: 5
Views: 6410

PostForum: General CCS C Discussion   Posted: Tue Mar 22, 2011 6:18 am   Subject: Help!!! My PIC does not receive signal from Visual Studio
I test the UART with Visual studio 2010 with one button. If the button is press, it will send "A" to PIC. If the PIC receive "A", it will turn on portC0 then the LED will turn ON. ...
  Topic: Interface VB with PIC
stacey

Replies: 24
Views: 28906

PostForum: General CCS C Discussion   Posted: Tue Mar 22, 2011 5:34 am   Subject: Interface VB with PIC
I test the UART with Visual studio 2010 with one button. If the button is press, it will send "A" to PIC. If the PIC receive "A", it will turn on portC0 then the LED will turn ON. ...
  Topic: Interface VB with PIC
stacey

Replies: 24
Views: 28906

PostForum: General CCS C Discussion   Posted: Fri Mar 18, 2011 9:32 pm   Subject: Interface VB with PIC
you are using the USB to UART connector also?
  Topic: Interface VB with PIC
stacey

Replies: 24
Views: 28906

PostForum: General CCS C Discussion   Posted: Fri Mar 18, 2011 7:34 am   Subject: Interface VB with PIC
I still cant get what you mean but then
#use rs232 (UART1,baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS)

is needed right??

I want send a signal to Visual Basic when specific condition, and receiv ...
  Topic: Interface VB with PIC
stacey

Replies: 24
Views: 28906

PostForum: General CCS C Discussion   Posted: Thu Mar 17, 2011 6:07 pm   Subject: Interface VB with PIC
I had go thru the CCS compiler Reference Manual, is that

UART_RX : Returns the receive pin for the first UART on this PIC (see PIN_XX)
UART_TX : Returns the transmit pin for the first UART on thi ...
  Topic: Interface VB with PIC
stacey

Replies: 24
Views: 28906

PostForum: General CCS C Discussion   Posted: Thu Mar 17, 2011 5:50 pm   Subject: Interface VB with PIC
Thanks for the reply.

I am using CCS IDE version 4.038 and VB 2010 express edition as window 7 do not support visual basic 6.

The PIC using is 16F877A and I am using UART for the communication b ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group