In SX Microcontrollers, SX/B Compiler and SX-Key Tool, John Kauffman wrote:
[3]I am finishing up a hobbyist exercise in SX/B to sense, timestamp, store and display simple data like temperature and voltage. [/3]
[3] [/3]
[3]I wrote five individual test programs in SX/B for interfaces with five externals: EEPROM, DS1302 clock, LCD display, A/D and the temperature sensor. Each test program works fine on its own. [/3]
[3][/3]
[3]Each program is broken by comments into sections from the SX template: Constants, Variables, Start: SUB declaration table and subroutines. Every variable, SUB and pin has a globally unique name. No ISR in the project.[/3]
[3] [/3]
[3]Any thoughts on the *best* way to bring them together for the final project?[/3]
[3] [/3]
[3]So far I have just been copying the Constant sections from each test program into the Constants section of the master program. Then I repeat for Variables, etc. The result is that the constants are all in one place, but the package of code for one objective is split up. It is time-consuming to swap in an improvement that I have made in a test program.[/3]
[3] [/3]
[3]Is there a way to package up a set of code (including variables, start:, sub declarations table and constants) so that I can insert an entire functional unit into the main program in one copy/paste?[/3]
[3] [/3]
[3]Thanks.[/3]
[3] [/3]
[3] [/3]
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=255276
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)