I'm new to 8862, especially native SDK. I wanted to play a bit with PWM and servos. I wrote some basic code:
uint32 duty = 100000000;
pwm_init(20000, &duty, 1, io_info);//~50Hz
pwm_start();
but I noticed that the servo twitches occasionally. I tried different servo and ever multiple servos in parallel - they all twitch, but not at the same time. At first I suspected power supply issue, but ruled that out. I even added ferrite bead on a servo's cable to eliminate any potential hf noise, but to no avail. Than I zoomed in on my scope and noticed a few nanosecond square pulse right before the proper PWM pulse. I can change the duty cycle to whatever I like, but this additional pulse stays there to matter what. I recon it might be the reason the servo twitches. Did any of you notice anything like this before?