arduino - MATLAB and Arudino, set registers (PWM) -


i using arduino mega matlab first time try , control servo motor, issue default pwm frequency pin trying use @ 976hz, while need around 50hz. found code changing timer 0 b register affects frequency use in arudino ide.

so basically, need send following command arduino:

tccr0b = tccr0b & b11111000 | b00000101; 

does know how while using arduino mega through matlab? there not way have straight arudino code in .m file through function/syntax? or there way manipulate tccr0b register via matlab? know on arduino ide need use matlab rest of project.

thank time.


Comments

Popular posts from this blog

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

java - Creating a room by reading from a file (for a game) -

javascript - return highlighted cells to php -