Get a better programmer, such as the Microchip PICkit 2 or PICkit 3. The data sheet is essential for this - read it thoroughly. ![]() Getting the right baud rate setting on the PIC can be a little tricky, depending on which specific language you are programming in - some calculations are often required to get the divisor from the system clock speed. Note that the PIC doesn't have any hardware handshaking as standard, and a very tiny (2 character) receive buffer, so I tend to write my own send/receive routines which implement hardware handshaking using a couple of other I/O lines which also go through the MAX232 chip (CTS/RTS). The PIC doesn't have this, but adding something like a MAX232 chip will convert the output to standard RS-232 levels.Īll you need to know is the correct protocols to use to talk to the remote device, and to implement them in the PIC's firmware. The only difference between the two is the PC will most likely have an RS-232 line driver in the circuit to provide the proper +/-12V or so. The PIC has an industry standard UART, and anything the PC can do the PIC can do as regards communicating.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |