??? 01/17/10 22:15 Read: times |
#172527 - If SDCC Then Keil Responding to: ???'s previous message |
If you happen to be using the SDCC compiler (as the linked code was apparently developed for) you may want to take a quick look to see if another compiler with optimizations turned on can produce tighter code. A tighter code may just allow you to get the same MCU to handle more servos within the 100uSec of the sample code.
A faster processor, as Erik has already suggested, may really be the scheme that gets you all the way to the solution for six servos without a lot of code rewriting. I could comment that if you were to convert over to an MCU such as the SiLabs C8051F344 (my current favorite) you could order the development board for this and get with it CD that has on it an evaluation copy of the Keil tool set that lets you make programs up to 8K in size. The Keil tool set will optimize your code down a lot. Michael Karas |