1 Attachment(s)
Code: Why is this code greater than 2000 words?
Hi Guys,
I am new to PICs and picbasic pro, and an using a PIC 16F628a. I have a program up and running, but I seem to have run out of space on my PIC. The 628 has a 2000 word limit, and it seems that my compiled code exceeds that. I don't quite understand what in the code amounts to one word of data. Is it possible to take a peek at my code and see what is taking up so much space, am I doing something wrong, or is this normal for the commands I am using?
Right know I have commented out several blocks of code that use the pulsout command to generate a pwm signal to move a servo. I have commented them so that the code remains below 2000 words. With those blocks it grows to roughly 2300 words.
I appreciate the help,
Andreas
Nice flight stabilizer...
just missing ref. to a twin axis gyroscope sensor ... IDG 300 ???
<< if Ratio < 100 And Ratio > 0 then ... >>
other room to save : Ratio is ALWAYS > 0 ( Coz. PbP only works with POSITIVE INTEGERS !!! ) ...
<< Alpha = Ratio*11 + 732*10 >>
Why not directly write " Alpha = Ratio*11 + 7320 "
saves one 16x16 multiplication !!!
Was just some examples ...
Alain