Since everybody do it different. It depend on what you think is *easy to modify* and what is readdable. For my case i use common name for my variable and my called procedure. like
PiezoOutput VAR PORTA.0 ;Piezo pin
ReadI2cEEprom:
I2CRead ......
.....
return
I also add a lot of comment on my code, even on most lines. I Do a lot of subroutine and call them. So when i want to modify them i know exactly where to do (Easy to jump to with MicroCode Studio). Usually i do the same orgarnisation structure
DEFINES (osc , a/d ,Hser.....)
PINS definition and alias (Who and where)
VAR definition (what i use to work)
Main Procedure
Subroutine called by main or other subroutines
Hope this help
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks