1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

[Ask] PPI8255 or Serial?

Discussion in 'General Electronics Chat' started by Tumpal H.S, Oct 14, 2008.

  1. Tumpal H.S

    Tumpal H.S New Member

    Joined:
    Oct 13, 2008
    Messages:
    4
    Likes:
    0
    hallo...

    As a newbie i want to ask about the easiest or better way to establish communication between mainboard PC with Microcontroller?using PPI8255 or Serial?

    and if you don't mind can you explain it tu me?

    Thx.....:D
     
  2. Diver300

    Diver300 Well-Known Member

    Joined:
    Oct 19, 2007
    Messages:
    3,063
    Likes:
    101
    Location:
    England
    Use serial. It uses a lot less wires.

    PCs usually have RS232 ports. You need a MAX232 or similar to convert voltage levels from the +/-12V of RS232 to 0 - 5 of a microcontroller.

    Chose a microcontroller with a EUSART.

    You can use a terminal emulator to send what you type to the serial port, and put on screen what arrives from the serial port.
     
  3. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,213
    Likes:
    640
    Location:
    Derbyshire, UK
    And why would you want to use an antique 8255 anyway?, micro-controllers are far better ports to start with.
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. Tumpal H.S

    Tumpal H.S New Member

    Joined:
    Oct 13, 2008
    Messages:
    4
    Likes:
    0

    But if i want to use 2 microcontrollers ( DT-AVR 8535 ) and RS232 port from PC, what device should added between them ( mainboard PC can communicate with 2 mircocontrollers separately ) ?
    And what are the different between RS232 and RS485? advantage and disadvantege between them?
     
  6. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,213
    Likes:
    640
    Location:
    Derbyshire, UK
    Use a MAX232 or similar, or (with a PIC, and using a software UART) you can use just a single resistor.

    It's really extremely easy to do RS232, in either hardware or software - there are PIC examples in my tutorials.
     
  7. CCD

    CCD New Member

    Joined:
    Jul 27, 2008
    Messages:
    74
    Likes:
    1
    Location:
    Chennai, India
    If u use MAX232 or compatible, it has two RS232 tranceivers on single chip. So, two microcontrollers can communicate with pc, both at a time if you use two different ports on pc.

    RS232 signals are +15, -15 referenced to ground, while RS485 signals are differential. Also, RS485 is multipoint communication where many devices can be connected on a single RS485 bus. the problem is, PCs don't have RS485 port,so u need a RS485/RS232 converter!!

    -----------
    AVR projects:
    Design with Microcontrollers
     
    Last edited: Oct 15, 2008
  8. Tumpal H.S

    Tumpal H.S New Member

    Joined:
    Oct 13, 2008
    Messages:
    4
    Likes:
    0
    @Nigel Goodwin

    my adviser told me to find out about serial and PPI8255, i don't really know if PPI 8255 is antique.....:D

    @All

    So can i say to make my PC board ( with only 1 serial port ) can communicate with 2 ┬Ácontrollers separately ( multipoint communication ), it's better to use RS485/RS232 converter ( PC board -> RS485/RS232 -> 2 ┬Ácontrollers ) ?
     
  9. CCD

    CCD New Member

    Joined:
    Jul 27, 2008
    Messages:
    74
    Likes:
    1
    Location:
    Chennai, India
    Max3162 can do the job. it's an RS232-RS485 protocol translator. the RS232 side u can use for connecting with PC and both your controllers can be connected on RS485 line.
    refer to this application note from maxim:
    Selecting and Using RS-232, RS-422, and RS-485 Serial Data Standards - Maxim

    And here is a simple RS232/485 converter using the max232 & max485:
    RS485 to RS232 converter | Aquaticus ROV

    for starting on RS485, u can refer to this application note on RS422/485 bus:
    RS422/485 Application Note - Table of Contents

    --------------
    Design with Microcontrollers
     
    Last edited: Oct 16, 2008
  10. Tumpal H.S

    Tumpal H.S New Member

    Joined:
    Oct 13, 2008
    Messages:
    4
    Likes:
    0
    @nigel

    can you explain to me why PPI 8255 is an antique?

    @All

    Can you explain to me what are disadvantage n advantage using 8255?can 8255 do multidrop communication?
     

Share This Page