Vdd LED RX63N Figure Q3: LED interface Change the LEDs intensity by changing the duty cycle. We want to use Timer TPU6 a
Posted: Mon May 09, 2022 7:33 am
Vdd LED RX63N Figure Q3: LED interface Change the LEDs intensity by changing the duty cycle. We want to use Timer TPU6 and PWM mode 1. 1. If Ydd is 3.3V and the LED has a voltage drop of 1.3V Calculate the resistor R required to have a current of 15mA. (5 marks) 2. Explain what would be the reason to use a transistor to drive the LED? (5 marks) 3. Give the 2 possible microcontroller pins that can be used to connect to the transistor's base (5 marks) 4. Write the initialisation of the timer to generate a 200Hz square wave with a 25% duty cycle. List all assumptions. Include the port initialisation (15 marks) 5. Explain why we might be using a frequency as high as 200Hz to control the LED? (3 marks)