Pic Basic Pro and C#


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Dec 2012
    Location
    Tennessee
    Posts
    262


    Did you find this post helpful? Yes | No

    Default Re: Pic Basic Pro and C#

    using your C code and a serial port to send receive data from the PIC, its like communicating with 2 computers via null modem cable in the old days. I use VB.net and its got a prebuilt in control for serial communication, if your using visual c/c++ it should have that too. to communicate with PIC USB Ports you should have to use a HID.dll file to communicate I think. Not sure how to do this on C, but in microcode studio it has a HID maker.

    But I would try just interfacing with the PIC via serial port to get the understanding and your program in c working first then change the type of communication.
    Chris


    Any man who has accomplished anything in electronics at one time or another has said... " STOP! WAIT! NOOO! Dangit.... Oh Well, Time to start over..."

  2. #2
    Join Date
    May 2011
    Posts
    17


    Did you find this post helpful? Yes | No

    Default Re: Pic Basic Pro and C#

    aha

    thx for answer now I understand how that works and it is clear to me now. So program created in C++ or C# will send info to USB, and program for PIC will register that info from USB and do what ever he is program to do.

  3. #3
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default Re: Pic Basic Pro and C#

    Quote Originally Posted by CipiCips View Post
    aha

    thx for answer now I understand how that works and it is clear to me now. So program created in C++ or C# will send info to USB, and program for PIC will register that info from USB and do what ever he is program to do.
    I would start by sending out serial from a PIC programed with compiler of your choice to a PC serial port and run HyperTerminal which is found in windows in the start menu under accessories > communications.
    The sent text will display on the terminal screen.
    Hyperterminal can also be configured to send keystrokes back to the PIC with a receive routine for example to blink an LED if RX is "1".
    This is a major cool factor for a beginner programmer!


    Norm

Similar Threads

  1. More Pic basic pro maths help.
    By retepsnikrep in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 10th February 2011, 07:09
  2. serial interface pic 18f452 using pic basic pro
    By syed ahmed in forum Serial
    Replies: 0
    Last Post: - 16th May 2010, 06:46
  3. Replies: 5
    Last Post: - 17th January 2006, 20:26
  4. Pic Basic Pro Syntax
    By Finn in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 26th January 2004, 19:07
  5. help pic basic pro
    By f6ggy in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th September 2003, 01:55

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts