Question about PICBASIC Pro.


Closed Thread
Results 1 to 6 of 6
  1. #1
    tkdev2007's Avatar
    tkdev2007 Guest

    Question Question about PICBASIC Pro.

    I have a few questions.
    1. With PICBASIC Pro Can you program i to commuinicate with RS485?(does it support the RS485 commuinication)
    2. Can it create Program that can run for PIC16C65B and PIC16F877A.

    Sorry if I sound dumb. I an very new to PIC program. I have these two chips and I have a programmer that will program both of these chips I just don't have a Development software to create the program to load.

    If you have some links for learing for newbies. That would be great!

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,610


    Did you find this post helpful? Yes | No

    Default

    Hi,
    1) RS485 is, as far as I know, an electrical specification (voltage swing, drive capability of the driver chip etc) for multipoint communication, not a protocol. PBP has various built in routines for serial communications. What you do with that signal once it leaves the PIC chip is up to you. (Connect it to a RS485 transmitter for example).

    2) Yes and yes. The list of supported chips can be found here: http://www.melabs.com/products/pbp.htm Start (and IMO continue...) with the 16F877 since it's a flash part. The 16C65 is either UV eraseable or an OTP part so developing code on that one will be quite a struggle.

    Have a look at MELABS site and browse this forum for a information, there's lots of it. Then start slow with the standard blink-a-led and Hello World programs. Make sure to read the PBP manual and the datasheet for the PIC you are using. If you find yourself in trouble there's lots of people here to help with the specifics.

    /Henrik Olsson.

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    To have a true RS485 the easy way is to go through a MAX3162. Pic Basic handles 232 so a converter of some kind is needed.

    http://www.maxim-ic.com/appnotes.cfm...te_number/723/

    Here is another good place for info on Pic Basic

    http://www.rentron.com/
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Jul 2003
    Location
    Sweden
    Posts
    237


    Did you find this post helpful? Yes | No

    Lightbulb

    No need to go from TTL to RS232 to RS485. Just use MAX485 or similar(there's about a Gazillion of them), they convert directly from TTL to RS485.

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    In a perfect world.
    Quote Originally Posted by Ingvar View Post
    No need to go from TTL to RS232 to RS485. Just use MAX485 or similar(there's about a Gazillion of them), they convert directly from TTL to RS485.
    But when it comes time to trouble shoot, and the PIC output is RS232, then hyper-terminal or a simple display could be used to check the data.
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Jul 2003
    Location
    Sweden
    Posts
    237


    Did you find this post helpful? Yes | No

    Arrow

    True, but for debugging it's cheaper(and simpler) to use a couple of resistors as suggested in the manual. If one just MUST use the hardwareuart for debugging it's still alot cheaper to hook up a max232(or similar) in parallell with the 485 driver.

Similar Threads

  1. New to PICBASIC Pro and have simple question
    By plyrathrt in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 22nd January 2008, 15:26
  2. PICBASIC Pro Question
    By jmbanales21485 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 18th October 2007, 06:39
  3. How to configure SPI in PICBASIC PRO?
    By moogle in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 15th April 2007, 18:31
  4. Question for all that use MELABS PICBASIC PRO
    By oskuro in forum Off Topic
    Replies: 2
    Last Post: - 24th March 2005, 17:15
  5. PicBasic Pro & PicBasic syntax different
    By Billyc in forum General
    Replies: 5
    Last Post: - 16th April 2004, 21:19

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