AnsweredAssumed Answered

PWM Generation for LED Brightness control

Question asked by MCU ism on May 21, 2019
Latest reply on May 21, 2019 by Mark Butcher

Hey,

I've got my KL25Z evaluation board a couple of weeks ago and I've decided not to use any of this HAL software like MCUexpresso or Kinetis SDK. I've been coding in Keil in bare metal. So, I have some problem with my PWM signal generation....I am not able to control the brightness of LED. The moment i power up my board the led is glowing with very feeble brightness that I could barely notice it glowing. I have attached my code here. 

 

Please do tell me what's so wrong in my code for controlling the brightness of LED?? Suggest me the correction, Thanks in advance.

Attachments

Outcomes