Revision: 1345 Author: [email protected] Date: Sat Sep 26 11:41:08 2009 Log: tutorial added, serial port board with max232 http://code.google.com/p/jallib/source/detail?r=1345
Added: /trunk/doc/dita/tutorials/tutorial_serial_port_board.xml Modified: /trunk/doc/dita/tutorials/tutorials.ditamap ======================================= --- /dev/null +++ /trunk/doc/dita/tutorials/tutorial_serial_port_board.xml Sat Sep 26 11:41:08 2009 @@ -0,0 +1,48 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!-- This document was created with Syntext Serna Free. --><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd" []> +<topic id="topic-1"> + <title>Building a max232 circuit for serial port communication</title> + <prolog> + <author>Matthew Schinkel</author> + <publisher>Jallib Group</publisher> + </prolog> + <body> + <p>In this tutorial, we're going to build a serial port that can connect your PIC's TX and RX pins to your pc or other hardware using a max232 chip.</p> + <section> + <p>Many circuits will require some serial port communication, you may buy yourself a rs232 to TTL adapter off the net for as little as $10, or you can build one yourself. The max232 is a very popular chip. It converts your 5v circuit to the 12v required for serial communication to things like your PC. Many microcontrollers have RX and TX output pins. Here is a image of the max232 adapter I purchased. It has input pins for RX, TX, CT, RT as well as GND and 5v. The RX and TX pins can be directly connected to your PIC.</p> + <p><image href="E:/Electronics 2/max232/DSC00011.JPG"/><image href="E:/Electronics 2/max232/DSC00012.JPG"/><image href="E:/Electronics 2/max232/DSC00013.JPG"/></p> + </section> + <section> + <p>Now, lets build our own! + +</p> + <p>First get yourself a RS232 port, you can cut up one of your serial port cords, or buy a port from the store for a dollar or two. +</p> + <p><image href="E:/Electronics 2/max232/port.jpg"/><image href="E:/Electronics 2/max232/port2.JPG"/></p> + </section> + <section> + <p>I am going to use a cut serial port cord since it already has leads on it, and is long enough to reach my pc. Use your millimeter to find the pin numbers, and touch up the wires with solder so they’ll go into your breadboard easily. + +</p> + <p>Now build the circuit, As you can see, you will need the max232 chip from your local electronics store and a few 1uf capacitors. +</p> + <p><image href="E:/Electronics 2/max232/max232.JPG"/></p> + <p><image href="E:/Electronics 2/max232/DSC00017.JPG"/></p> + </section> + <section> + <p>Great job, now connect the RX and TX pins to your circuit, and plug the rs232 port directly your pc, or to a usb-to-serial adapter, or even to a bluetooth-to-serial adapter for short range wireless.</p> + <p>I strongly suggest you make this on a PCB with pins that will plug to your breadboard. you’ll use it a lot!</p> + <p><image href="E:/Electronics 2/max232/DSC00018.JPG"/></p> + <p>You can use serial_hardware lib or serial_software lib to transmit data to your pc, check for it in the other jallib projects. I suggest the software realterm for sending/receiving data to your PIC</p> + <p>Open Source REALTERM http://realterm.sourceforge.net/ +</p> + <p>It can be downloaded for free from http://sourceforge.net/projects/realterm/files/ +</p> + <p>Open the software, click “Port”, choose your speed and port number and press “open”</p> + <p>Hex output</p> + <p><image href="E:/Electronics 2/max232/realterm.bmp"/></p> + <p>Ascii output</p> + <p><image href="E:/Electronics 2/max232/realterm2.JPG"/></p> + </section> + </body> +</topic> ======================================= --- /trunk/doc/dita/tutorials/tutorials.ditamap Fri Sep 25 13:30:54 2009 +++ /trunk/doc/dita/tutorials/tutorials.ditamap Sat Sep 26 11:41:08 2009 @@ -3,7 +3,7 @@ <bookmap id="bookmap_tutorials"> <booktitle> <mainbooktitle>The Tutorial Book</mainbooktitle> - <booktitlealt><image placement="break" href="images/logo.jpg" width="300"/>Have fun with PIC microcontrollers, Jal v2 and Jallib</booktitlealt> + <booktitlealt><image href="images/logo.jpg" width="300" placement="break"/>Have fun with PIC microcontrollers, Jal v2 and Jallib</booktitlealt> </booktitle> <bookmeta> <bookrights> @@ -44,4 +44,7 @@ <topicref href="tutorial_gp2d02.xml"/> <topicref href="tutorial_lcd.xml"/> </chapter> + <appendix> + <topicref href="tutorial_serial_port_board.xml#topic-1"/> + </appendix> </bookmap> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jallib?hl=en -~----------~----~----~----~------~----~------~--~---
