i am doing assignment with ADSP-BF 506F EZ-KIT LITE which is going to control the brushless DC motor. So i need to write a code for PWM to control the speed of motor. The frequency is 20KHz and 100%duty cycle to just rotate the motor firstly. i am going to use GPIO pin 15,16,37 from P2 on kit which are PF8, PF9, LED0 going to interface with Hall effect sensor from DC motor. Then, PWM Crossover and Output Enable (PWM_SEG) Register is going to be used to control the inverter to drive the motor. However, i couldnt find any example code for Blackfin 506 processor to generate PWM. So plesase help me out to implement the code for PWM.