Loading...
Pages: [1]   Go Down
Author Topic: PWM Output with timer 1  (Read 262 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is there any good reason why the PWM outputs on the timer 1 channel are limited to 8 bits? They are capable of 16 bits. I'm considering making a PID servo control library for the arduino capable of controlling a servo motor with quadature encoder feedback. It would be great know what current limitation there are on the use of timmer 1. If it is being used for other operations I would hate to be limmited to using an 8 bit output for a servo drive. Any information in why the analog output is limited to 8 bits would be wonderful.
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 7
Posts: 3532
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

It's limited to 8 bits only for consistency with the PWM output on other timers / pins.  You should be able to use it in whatever mode you like.  Only timer 0 is used for other things (the millis() and delay() functions).
Logged

SouthEast UK
Offline Offline
Jr. Member
**
Karma: 0
Posts: 65
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Take a look here  http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1206876336

I am using 10 bit resolution ok.
Logged

Pages: [1]   Go Up
Print
 
Jump to: