WhiteSpace
Well-known member
I see from the manual that, for IRIN
“Effect of Increased Clock Speed:
This command will automatically use the internal 4MHz resonator for correct operation” (Manual 2, page 128)
and, for PWM,
“pwmout is dependant on the clock frequency. On some X1/X2 timing sensitive commands, such as readtemp [and IRIN, if I understand page 128 correctly], the command automatically drops to the internal 4MHz resonator to ensure timing accuracy. This will cause the background pwm to change, so pwm should be stopped during these commands.” (page 175)
I assume this means that this applies at all times when PWM is running in the background, and not just while the initial pwmout or subsequent pwmduty commands are being sent? So essentially it means that for a project with PWM running more or less constantly and very regular IRIN commands to drive the vehicle, I’m limited to 4MHz? I couldn’t find anything specific on the forum. Maybe it’s too obvious!
Are there any cunning workarounds to get higher frequencies while using IRIN?
Thanks very much.
“Effect of Increased Clock Speed:
This command will automatically use the internal 4MHz resonator for correct operation” (Manual 2, page 128)
and, for PWM,
“pwmout is dependant on the clock frequency. On some X1/X2 timing sensitive commands, such as readtemp [and IRIN, if I understand page 128 correctly], the command automatically drops to the internal 4MHz resonator to ensure timing accuracy. This will cause the background pwm to change, so pwm should be stopped during these commands.” (page 175)
I assume this means that this applies at all times when PWM is running in the background, and not just while the initial pwmout or subsequent pwmduty commands are being sent? So essentially it means that for a project with PWM running more or less constantly and very regular IRIN commands to drive the vehicle, I’m limited to 4MHz? I couldn’t find anything specific on the forum. Maybe it’s too obvious!
Are there any cunning workarounds to get higher frequencies while using IRIN?
Thanks very much.