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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -