code source


Closed Thread
Results 1 to 3 of 3

Thread: code source

  1. #1
    meyou's Avatar
    meyou Guest

    Default code source

    Please,
    i need to do a program in java on my pc that controls and sends data to a pic16f877(master) via an interface max232.
    The master also communicates with 31 slaves and all of them are programmed with picbasic to serially communicate each other.

    please, i want the code source in java that should be written on the pc to communicate with the external pic.


    Thank you a lot.

  2. #2
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello Meyou,

    Meyou>>i need to do a program in java on my pc that controls and sends data to a pic16f877(master) via an interface max232.
    The master also communicates with 31 slaves and all of them are programmed with picbasic to serially communicate each other.

    please, i want the code source in java that should be written on the pc to communicate with the external pic.<<

    Meyou, their are a few problems with your request

    1. It takes a great deal of time to produce a program as such.
    2. Very few folks use Java.
    3. You are expecting us to do all the work for you.
    4. You are asking for program in a 4th or 5th generation language... Most folks here use Pic Basic Pro...not Java. Some (like me) use large compilers like Borland, Watcom, and Microsoft, but not to use with PIC's, because it is too combersum for most applications. If we want to communicate with our chips, we use the built in Hyperterminal for our use. Much easier, quicker, and no coding.

    Now what you can do, is there are some examples of communication with Hyperterminal and the Max232 on this forum. Download that, get the Hyperterminal working with your project first, then attempt the Java program. This would be the easiest way to accomplish your idea.

    I would suggest the following order.

    1. Download the Max232/PIC schematic and wire it all up.
    2. Try hyperterminal and see if it works.
    a. If it doesn't work, you have a wiring or programming error
    3. If everything works so far, then start writing your Java communication package.

    Dwayne
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

  3. #3
    FrankM's Avatar
    FrankM Guest


    Did you find this post helpful? Yes | No

    Default

    Hi meyou,

    you should search a forum about Java and ask there for a source code that acesses the RS-232 Port.

    FrankM

Similar Threads

  1. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. Replies: 1
    Last Post: - 21st February 2008, 15:36
  4. Please help ? RF Remote Source code
    By sorasit46 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th April 2007, 14:40
  5. Replies: 0
    Last Post: - 15th December 2006, 19:16

Members who have read this thread : 1

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