Truncated match.
PICList
Thread
'My first project'
2000\06\11@101519
by
Michael Koehler
part 0 611 bytes content-type:application/octet-stream; (decoded 7bit)
I'm new to the pic world. I'm attaching to you my first project. The project
is: a counter from 0 to 99 with two 7 segments, the counter will increment
every time the push button is pressed.
My question: Is this the right way to write the program, or there is another
way. I want to know if I'm on right way with pic.
Michael
Content-Type: application/octet-stream;
name="pushb.asm"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="pushb.asm"
Attachment converted: creation:pushb.asm (????/----) (0001641F)
2000\06\12@064753
by
John Perkinton
|
Yeah, your well on the way, but to make life easier for the future document
your code well.
When I write a proggy i lay out my routines first like comments eg:
;****************************
;*****init pic chip**********
;****************************
;****************************
;*****main routine***********
;****************************
; set up all the shite
; scan this and that
; do this
; do that
; loop back
end
then i fill in the rest eg:
;****************************
;*****init pic chip**********
;****************************
;****************************
;*****main routine***********
;****************************
call setupshite ; set up all the shite
call scannerstuff ; scan this and that
call thatroutine ; do this
; do that
; loop back
;****************************
;*******setupshite***********
;****************************
return
;****************************
;*******scannerstuff*********
;****************************
return
;
etc
end.
If you break up your program like this doing comments before you actually
write the code it is a shit load easier to do the code, and you don't have
to document it afterwards, cause you've already done it. Then, if you have
any bugs afterwards it is easy to sort. Its just like taking some notes on
paper before hand. Saves loads of time, makes it easy to read by others,
makes it easier to check afterwards, and makes it neat and understandable.
{Original Message removed}
'My First Project'
2004\04\13@163349
by
Matt Marsh
More... (looser matching)
- Last day of these posts
- In 2004
, 2005 only
- Today
- New search...