sim- / tgy

tgy -- Open Source Firmware for ATmega-based Brushless ESCs
http://0x.ca/tgy/
688 stars 387 forks source link

tgy_debug firmware #20

Closed blind-oracle closed 11 years ago

blind-oracle commented 11 years ago

Hello!

Is there any plans to add tgy_debug firmware to the code tree?

RCTimer ESCs with external oscillators seem to use it, but it's not available publicly, no updates etc. Or i can just change frequency to 8Mhz and it's good to go? I think it'll use internal oscillator for clocking with tgy.hex, and not external crystal.

Thanks in advance.

sim- commented 11 years ago

Sigh. ;) The tgy_debug firmware was just a build of tgy.hex with MOTOR_DEBUG enabled, hence the name. It's just that and F_CPU set to 8000000 (8MHz) in tgy.inc. With higher electrical RPM (higher pole count motors, etc.), you may have better luck just using the regular tgy build and disabling the fuses for the external oscillator so that it can run at 16MHz. The 8MHz crystal they used was left over from the older software they were using, and should no longer be present on newer boards (not sure about their stock, though).

blind-oracle commented 11 years ago

Thanks for the clarification, there isn't enough info on the net about this.

Seems that i should be careful if i'm going to use "RCTimer HVSK-40A Opto" ESCs with 18 pole or more motors.

So, current boards, if they have 16Mhz crystals, should run fine on standard tgy.hex firmware, i got that right?