Kayode Ayandokun [kayode.ayandokun at VIRGIN.NET] says:
I recently wrote two small PC programs that may be of use to anyone developing a serial application on a 16F84 or other PIC using a bit-banged serial interface.
gps_sti is a program to create the *.sti files used by the MPLAB simulator. You give it the starting point for the serial input in cycles from the start of your PIC program and the string to be sent to the PIC in the simulation and an sti file is generated. Uses RB0 for the input and assumes inverted TTL. The program is available as C source so it can easily be modified if required. A batch file is also provided to demonstrate the command line.
serialDemo is a very simple C++ program that demonstrates how to set up a PC serial port from a Win32 console app, open a text file and transmit it line by line to the PIC or whatever else is attached to the serial port. It uses the freeware SerialPort MFC class by PJ Naughter. It comes with project and resource files for MSVC++ 5.0.
Both programs are available for download from the free demo code page at http://www.stv5730A.co.uk
http://www.blackboxcamera.com/Stv5730a/gps_sti.zip (cached 20001220081855 Source in HTML)
|file: /Techref/microchip/mplab/sti-rs232.htm, 2KB, , updated: 2007/12/11 10:13, local time: 2020/2/26 05:49,
|©2020 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.massmind.org/Techref/microchip/mplab/sti-rs232.htm"> .sti file generator for RS232 simulation in MPLAB</A>
|Did you find what you needed?|
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232!
Welcome to www.massmind.org!