View previous topic :: View next topic |
Author |
Message |
xwindows2000
Joined: 18 Oct 2009 Posts: 12
|
How to use Visual C#? |
Posted: Wed Mar 24, 2010 11:31 am |
|
|
In case mcu any bit activate high or activate low. How to program Visual C# to check status of mcu? |
|
|
John Morley
Joined: 09 Aug 2004 Posts: 97
|
|
Posted: Wed Mar 24, 2010 8:42 pm |
|
|
Hi,
This isn't a C# forum, but I can give you a project overview that might help to get you going.
You'll need to establish a serial or USB connection between the PIC and the PC. You can use interface chips like the MAX232 for serial communications, or the FT232R for USB communications, or find a PIC chip with internal USB support.
The rest is programming. You could program the PIC to transmit a status string whenever an input change was detected, or you could program it to respond to 'polling' commands from the PC. Pick the method that best suits your needs.
I have a number of products that use similar techniques, so this does work. It's pretty basic stuff once you've been around a while, but maybe a bit daunting if you are a beginner....
I use VB6 for all my PC software development, and writing a program to fetch and display a couple of I/O states would be a fairly quick project.
John _________________ John Morley |
|
|
xwindows2000
Joined: 18 Oct 2009 Posts: 12
|
|
Posted: Wed Mar 24, 2010 9:15 pm |
|
|
Sorry John
I used interface with PIC by bluetooth. I can send command to activate I/O. After that I turn off my program development and turn on again but I can't check I/O remain status from mcu or I can't development mcu program send status to my program development.
Profile of bluetooth module is serial port.
Can you help me?
Regards |
|
|
LostInSpace
Joined: 09 Mar 2010 Posts: 13
|
|
Posted: Thu Mar 25, 2010 6:35 pm |
|
|
Sounds like the Bluetooth modules terminated the connection when you turned off the development system. You will probably need to write code to have them rediscover themselves and reconnect. _________________ HTH - Steve H. |
|
|
xwindows2000
Joined: 18 Oct 2009 Posts: 12
|
|
Posted: Thu Mar 25, 2010 7:59 pm |
|
|
LostInSpace wrote: | Sounds like the Bluetooth modules terminated the connection when you turned off the development system. You will probably need to write code to have them rediscover themselves and reconnect. |
Can you help me?
I'm want send requirement from development my program checked remain output status of mcu after I'm connect Bluetooth again or MCU send active remain output status to development program after connected bluetooth and shown remain status at my development. |
|
|
arunb
Joined: 08 Sep 2003 Posts: 492 Location: India
|
RE: |
Posted: Fri Mar 26, 2010 10:12 pm |
|
|
this isn't a C# forum. If you want to connect a PIC to a bluetooth module and if you are using the CCS C compiler, then this is the forum.
thanks
arunb |
|
|
xwindows2000
Joined: 18 Oct 2009 Posts: 12
|
Re: RE: |
Posted: Fri Mar 26, 2010 10:16 pm |
|
|
arunb wrote: |
this isn't a C# forum. If you want to connect a PIC to a bluetooth module and if you are using the CCS C compiler, then this is the forum.
thanks
arunb
|
Yes. I used CCS C develop with C#?
What do you think? |
|
|
|