Go Down

Topic: DuinOS: small and simple rtos (Read 51 times) previous topic - next topic


I just saw that as things are, pins 9 and 10 will not be available for PWM? I know of at least one shield, the Adafruit Motor/Stepper/Servo shield that uses PWM on 9 and 10 for the servos. I have this shield, but I can get around it.

I'm coming to hate shields. They should at least offer breakout pins so that you can use them and have some control of what pins the thing grabs. The WiFi shield from AsyncLabs does this.


I appreciate this project grately!
Where can I read the sourc-code of DuinOS?

(and how come you named it DuinOS rather than ArduinOS?)


Hi, the project is deployed in source form, so you can find the sources in the hardware\cores\arduino.DuinOS.

You can donwnload it from http://www.multiplo.org/duinos/wiki



I understand that because DuinOS uses Timer1 that PWM on pins 9 and 10 are not available.  On the Duemilanove 328 Timer1 uses OutputCompare1A (OC1A) and (OC1B) which are on AVR pins 15 and 16 which map to Arduino pins 9 and 10.

On the Arduino Mega (1280) Timer 1 uses OC1A, OC1B, and OC1C on AVR pins 24,25, and 26, which map to Arduino pins 11, 12, and 13.  I'm new to the Arduino, but am I correct that for the Mega PWM is available on pins 9 and 10, but not on 11,12, 13?


Jan 14, 2010, 03:34 am Last Edit: Jan 14, 2010, 03:36 am by Dennis_Meade Reason: 1
Not that I figured this out from ATMega1280 reference , but on the  Arduino Mega "PWM is on 0 to 13 and provides 8-bit PWM output with the analogWrite() function." ( paraphrased from the Hardware page )

Go Up