[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-690302-105":59,"doc-detail-690302-en":130,"doc-similar-690302":149},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","gtm-tom-pwm-1-for-kit_aurix_tc387_tft-pwm-generation-aurix-tc3xx-microcontroller-training-v100","GTM TOM PWM 1 for KIT_AURIX_TC387_TFT - PWM generation - AURIX TC3xx Microcontroller Training V1.0.0","","GTM TOM PWM 1 for KIT_AURIX_TC387_TFT describes an AURIX TC3xx microcontroller training focused on generating a PWM signal using the Generic Timer Module (GTM) with its Timer Output Module (TOM). The PWM drives LED intensity via the TOM timer output channel, including TOM configuration, PWM start, duty-cycle updates, and an LED fading routine. It also provides a calculation example for PWM period from the FXU clock frequency and guidance for building, flashing, and verifying LED behavior on the kit board.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/gtm-tom-pwm-1-for-kit_aurix_tc387_tft-pwm-generation-aurix-tc3xx-microcontroller-training-v100/690302/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/gtm-tom-pwm-1-for-kit_aurix_tc387_tft-pwm-generation-aurix-tc3xx-microcontroller-training-v100/690302.png","ImageObject",300,407,{"name":92,"@type":93},"SundayMiles","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-11","2026-11-08",true,{"@type":102,"interactionType":103,"userInteractionCount":81},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the purpose of GTM TOM PWM in this training?","Question",{"text":112,"@type":113},"It generates a PWM signal using the GTM/TOM to control the intensity of an LED.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How is the TOM configured to produce the PWM output?",{"text":117,"@type":113},"The training calls initialization functions to enable GTM and clock sources, initializes the TOM PWM config with defaults, selects the counting TOM and the output channel, sets the PWM period, and selects the LED output pin.",{"name":119,"@type":110,"acceptedAnswer":120},"How does the duty cycle and LED fading behavior work?",{"text":121,"@type":113},"Duty cycle updates are applied by setting dutyCycle parameters and re-initializing the TOM PWM. LED fading is implemented by repeatedly increasing or decreasing the duty cycle step value in a fadeLED() routine.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},690302,1794162126,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":81,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":52,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":8,"preview_urls":144},1099529839202,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","GTM_TOM_PWM_ 1 for KIT_AURIX_TC387_TFT GTM TOM PWM generation  \nAURIX™ TC3xx Microcontroller Training V1.0.0  \nPlease read the Important Notice and Warnings at the end of this document  \nScope of work  \nGTM TOM is used to generate a PWM signal, which is driving the intensity of an LED.  \nThe LED is driven by pin 0 of the port 13. The state of the pin is controlled by the PWM signal generated by the TOM timer of GTM.  \nIntroduction  \n› The Generic Timer Module (GTM) is a modular timer unit designed to accommodate many timer applications.  \n› It has an in-built Timer Output Module (TOM) that can offer up to 16 independent channels to generate output signals.  \n› The Clock Management Unit (CMU) is responsible for clock generation of the GTM. The Fixed Clock Generation (FXU) is one of its subunits and it provides five predefined non-configurable clocks for GTM modules, including the TOM.  \nHardware setup  \nThis code example has been developed for the board KIT_A2G_TC387_ 5V_TFT.  \nLED D107 (1) is used for this example.  \n1  \nImplementation  \nConfiguring the TOM  \nThe configuration of the TOM is done by calling the initialization function initGtmTomPwm()  \ncontaining the following steps:  \n› Enable the GTM by calling the function IfxGtm_enable()  \n› Enable the FXU clocks by calling the function IfxGtm_Cmu_enableClocks()  \nThe function IfxGtm_Tom_Pwm_initConfig() initializes an instance of the structure IfxGtm_Tom_Pwm_Config with its default values.  \nThe IfxGtm_Tom_Pwm_Config structure can be modified to set the following parameters to initialize the module:  \n› tom – Selection of the TOM which is counting (TOM 2 in this example)  \n› tomChannel – Selection of the channel which is driving the LED (Channel 5 in this example)  \n› period – Setting of the period for the PWM signal to the desired value › pin.outputPin – Selection of the LED as output pin › synchronousUpdateEnable – Enabling of synchronous update of the timer  \nImplementation  \nConfiguring the TOM  \nAfter configuration, the function IfxGtm_Tom_Pwm_init() initializes and activates the TOM with the user configuration.  \nStart the PWM with the function IfxGtm_Tom_Pwm_start() .  \nSetting the duty cycle  \nThe setting of the duty cycle is done by calling the function setDutyCycle() , which contains the following steps:  \n› Set the dutyCycle parameters of the configuration structure to set the duty cycle of the PWM signal to the desired value  \n› Call the function IfxGtm_Tom_Pwm_init() to reconfigure the TOM with the new value of the duty cycle  \nAll the functions used for the configuration of the TOM are provided by the iLLD header IfxGtm_Tom_Pwm.h.  \nFading the LED  \nThe fading of the LED is done in the function fadeLED() by repeatedly adding or removing a step value to the duty cycle of the PWM.  \nImplementation  \nCalculation example  \nThe FXU clock 0 frequency (ffxclk0 ) is 100 MHz. The period value to have the desired PWM frequency (fPWM ) is calculated with the following formula:  \n􀝂􀯙􀯫􀯖􀯟􀯞0  \n􀜲􀝁􀝎􀝅􀝋􀝀 = ~~ ~~􀝂􀯉􀯐􀯆  \nIn this example: 􀜲􀝁􀝎􀝅􀝋􀝀 = 1020􀯞􀯆􀯁􀯁􀯭􀯭 = 50000 􀝐􀝅􀜿􀝇􀝏  \nCMU clock 0 Frequency of the clock  \nPWM signal Period of PWM  \n\n|  |  |  |  |  |  |  |  |  |  |  |  | t |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |\n|  |  |  |  |  |  |  |  |  |  |  |  |  |\n|  |  |  |  |  |  |  |  |  | t |  |  |  |\n|  |  |  |  |  |  |  |  |  |  |  |  |  |\n|  |  |  |  |  |  |  |  |  |  |  |  |  |\n|  |  |  |  |  |  |  |  |  |  |  |  |  |\n|  | Duty cycle of the PWM |  |  |  |  |  |  |  |  |  |  |  |\n\nRun and Test  \nAfter code compilation and flashing the device, observe the LED D107 (1), which should be fading.  \n1  \nReferences  \n› AURIX™ Development Studio is available online:›  [https://www.infineon.com/aurixdevelopmentstudio](https://www.infineon.com/aurixdevelopmentstudio)  \n› Use the „Import  “ function to get access to more code examples.  \n› More code examples can be found on the GIT repository:›  [https://github.com/Infineon/AURIX_code_examples](https://","cbCaieT09QNV2iZo","https://ap.wps.com/l/cbCaieT09QNV2iZo","pdf",668074,"English","# GTM TOM PWM generation\n## Introduction\n## Hardware setup\n## Implementation\n### Configuring the TOM\n### Setting the duty cycle\n### Fading the LED\n## Calculation example\n## Run and Test\n## References\n## Important Notice","[{\"question\":\"What is the purpose of GTM TOM PWM in this training?\",\"answer\":\"It generates a PWM signal using the GTM/TOM to control the intensity of an LED.\"},{\"question\":\"How is the TOM configured to produce the PWM output?\",\"answer\":\"The training calls initialization functions to enable GTM and clock sources, initializes the TOM PWM config with defaults, selects the counting TOM and the output channel, sets the PWM period, and selects the LED output pin.\"},{\"question\":\"How does the duty cycle and LED fading behavior work?\",\"answer\":\"Duty cycle updates are applied by setting dutyCycle parameters and re-initializing the TOM PWM. LED fading is implemented by repeatedly increasing or decreasing the duty cycle step value in a fadeLED() routine.\"}]","GTM TOM PWM 1 for KIT_AURIX_TC387_TFT - PWM generation - AURIX TC3xx Microcontroller Training V1.0.0 | PDF",25,[145],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/2f07145a5fa57c03f14d258b69bb9c16.webp",983,737,{"list":150,"token":66},[151,157,163,169,175,181,187,193,200,206],{"doc_id":152,"doc_title":153,"file_type":137,"home_preview_img_url":154,"slug":155,"view_count":34,"category_name":30,"create_tm":156},690304,"AURIX™ TC3xx - User's Manual - Open Market Version 2.0 - V2.0.0 2021-02","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002618367/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796234879&Signature=yZD3EZWhYJ%2BXvDGGogq9nNjAMB0%3D","aurix-tc3xx-users-manual-open-market-version-20-v200-2021-02",1794162141,{"doc_id":158,"doc_title":159,"file_type":137,"home_preview_img_url":160,"slug":161,"view_count":24,"category_name":30,"create_tm":162},720637,"7 SEGMENT MODULE - 4DIGIT - TM1637 7 Segment 4 Digit I2C Display Module Specification","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023676667/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796234879&Signature=mOhXvhXbM06Gd1MjWcOujuYcfb8%3D","7-segment-module-4digit-tm1637-7-segment-4-digit-i2c-display-module-specification",1795038588,{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":81,"category_name":30,"create_tm":168},720205,"Microcontrollers 3A - Arduino UNO and ATmega328 Programming & Peripherals","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024388172/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796234879&Signature=0P%2BdGnvO9BEODgFXwCWL48r0H5w%3D","microcontrollers-3a-arduino-uno-and-atmega328-programming-peripherals",1795035419,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":44,"category_name":30,"create_tm":174},561375,"SHARP GA1 - LED Flashing Code Troubleshooting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947645941/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796234879&Signature=6a3ZTsX%2BfzRfy9DAsQu%2BbJEyR1Q%3D","sharp-ga1-led-flashing-code-troubleshooting",1791805697,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":19,"category_name":30,"create_tm":180},689864,"ATtiny25/45/85 Automotive - Datasheet - Features and Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002163199/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796234879&Signature=IqAeMN2MoSfT7rDQ3qnLiNUGF48%3D","attiny254585-automotive-datasheet-features-and-overview",1794129871,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":19,"category_name":30,"create_tm":186},700420,"AURIX™ TC4Dx errata sheet - v1.0 - deviations, functional/parametric changes and application hints","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012025442/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796234879&Signature=e99aMbxTCVWEQdgH8m1kap%2F32ko%3D","aurix-tc4dx-errata-sheet-v10-deviations-functionalparametric-changes-and-application-hints",1794518662,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":24,"category_name":30,"create_tm":192},720253,"Arduino Nano Technical Overview - Pinout, Power, Memory, Communication","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024390057/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796234879&Signature=jGtJD2JhyDhYka2isD89iL1UD5g%3D","arduino-nano-technical-overview-pinout-power-memory-communication",1795035966,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":198,"category_name":30,"create_tm":199},670887,"Arduino UNO R4 WiFi Datasheet - Board Overview - Key Specifications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988352148/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796234879&Signature=j03BSkdSuHZEfBXotWDVDlmjmvk%3D","arduino-uno-r4-wifi-datasheet-board-overview-key-specifications",14,1793572476,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":39,"category_name":30,"create_tm":205},689895,"BerryBase 16-channel PWM/servo driver board - Product overview - PCA9685 I2C 12Bit 1.6kHz 3.3-5V","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002212508/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796234879&Signature=4iEwJQmWczlJJ37d1y1FBNUAweo%3D","berrybase-16-channel-pwmservo-driver-board-product-overview-pca9685-i2c-12bit-16khz-33-5v",1794133102,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":211,"category_name":30,"create_tm":212},689858,"XIAO RP2040 - Powerful MCU, GPIO, Interfaces and Example Functions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002159951/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796234879&Signature=JTXGS%2FU7DKY3SDVNDj9%2FcwTQujU%3D","xiao-rp2040-powerful-mcu-gpio-interfaces-and-example-functions",11,1794129633]