In SX Microcontrollers, SX/B Compiler and SX-Key Tool, John Bond wrote: Sure, then move them back into the program, it doesn't make it much more complex. You can also move the Declaration, I/O and CONs/VARs back into the program if you like. It's just make the template more complex. My strategy is that the code should be easy to use and to understand (none of the examples I have seen so far meet this MINIMUM standard). In addition the SYSTEM DISCIPLINE should be to make the code simple and reusable (the examples also perform poorly in this test). My mindset is a little different because you look in the main template for the program, the declaration file for the MCU and the component file for the virtual peripherals. We should understant this because when dealing with hardware, we look at the schematic for the logic, the BOM for the components and the PCB layout for assembly. I prefer this approach to a top heavy and unreadable template but hey, the purpose of my post is to create discussion. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=352776#m352828 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)