Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Using other timers for PWM in atmega128

Posted by misiekg on November 20, 2009

I have an atmega128 with freeRTOS and tried to create PWM signal on 2 channels. First I tried to use CLOCK/TIMER3, but there were some "delays" on it while task switching, the same is for timer 0 nad 2.

I set modulation values in the task and thats all. Shouldnt it work independent? Do some interrupts form timer 1 created by FreeRTOS can afect it?

Thank you in advance for your help.

RE: Using other timers for PWM in atmega128

Posted by Dave on November 20, 2009
If the PWM peripheral is free running then you should not see any delays. If it relies on regular fast interrupts then you will have to have some form of interrupt nesting for it to work reliably.

[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

Version 10.1.0 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers


STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner