Editing Serial Communications (RS232) in BoostC
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 13: | Line 13: | ||
=== News === | === News === | ||
− | + | This page is still draft | |
− | |||
=== Features === | === Features === | ||
Line 32: | Line 31: | ||
<!--------------------------------> | <!--------------------------------> | ||
|-valign="top" | |-valign="top" | ||
− | |Code includes preprocessing for changing the processor | + | |Code includes preprocessing for changing the processor or baud rate |
|uses multiple files and #define | |uses multiple files and #define | ||
− | |||
− | |||
− | |||
− | |||
<!--------------------------------> | <!--------------------------------> | ||
|-valign="top" | |-valign="top" | ||
Line 115: | Line 110: | ||
− | [[Stepper Motor Tester]] has a Eagle file that will work for this demo. You can drop the stepper driver chip. Even the level shifter can be dropped if you use a cable with a level shifter. The circuit is an easy project to do on a proto board. Another project, with very similiar hardware, but no | + | [[Stepper Motor Tester]] has a Eagle file that will work for this demo. You can drop the stepper driver chip. Even the level shifter can be dropped if you use a cable with a level shifter. The circuit is an easy project to do on a proto board. Another project, with very similiar hardware, but no loevel shifter is [[PIC based Stepper Motor Dancing Analog Clock]] |
=== Compiling the Program === | === Compiling the Program === | ||
The code for the library and the demo program is in one zip file ( called DemoSerial.zip, see Download below ). Unzip into a directory of its own. Open the project file SerialDemo.__c and compile with the source boost C compiler. The source files are SerialDemo.c SerialDemo.h..... | The code for the library and the demo program is in one zip file ( called DemoSerial.zip, see Download below ). Unzip into a directory of its own. Open the project file SerialDemo.__c and compile with the source boost C compiler. The source files are SerialDemo.c SerialDemo.h..... | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
I am not sure if the program is small enough to compile with the free compiler, my compiler reports a size of 2392 bytes of ROM, which is probably not small enough. There should enough demo code that can be deleted to get under the 2K limit. | I am not sure if the program is small enough to compile with the free compiler, my compiler reports a size of 2392 bytes of ROM, which is probably not small enough. There should enough demo code that can be deleted to get under the 2K limit. | ||
+ | Before compiling make sure you change the target PIC to 16F877A. | ||
− | + | Before you actually try it with real hardware review your clock frequency and baud rate settings in the code. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Running the Program === | === Running the Program === | ||
Line 242: | Line 210: | ||
=== Download === | === Download === | ||
− | Zip file here | + | Zip file here ...comming.... I may have more recent versions, email me if you want to check [[russ_hensel]] |
=== Projects using this Library === | === Projects using this Library === |