 Okay, in next, next lab we will use again the timer, but we will try to force the timer to handle the blinking, the toggling with the LED automatically, without interrupt, without the CPU load. We can try to start new project, in my case F4, 4011, 401, sorry, I look with P64 in package, we will open this part. Now how to do this, I will check first if on the PA5 is some output from the timer, then I search, I see that there is the ADC, there is possible to have the SPR clock, but there is possible to have the timer to channel 1 output, then I will mark this pin, and I need to configure now timer 2, then I will not use the timer 10 like before, I use the timer 2, because the timer 2 is internally connected to the pin PA5. I first enable the timer 2 internal clocks, and I need to use the channel 1, then I will use the channel 1 as a PWM output, then it's enabled, it's green, then it's everything from the configuration, then the timer will be handled automatically, sorry the pin will be, LED pin will be handled automatically with the timer, we can offload the CPU fully. The clock configuration, we will left this configuration in the default state like before, we only need to remember the 16 MHz for the clocks, for the timers, and we start with the timer configuration. You can see here is more possibilities how to configure the timer, but for the period we will use the same configuration like before, we use the 16 1000 for the pescalar, and the 15999 for the timer, this will be the timer period, but then we need also use the, configure the PWM, because this is the output, we use the PWM mode 1 or 2, it's now doesn't matter, but we need to select the pulse, the pulse mean where the polarity will change, the pulse corresponds with the auto-reload register, with the maximum, and we know if we want the 50% duty cycle, we need to put there the half of this value, if here this 15999, here we put the 7999, the half to create 50% duty cycle, the rest we can left unchange, definitely we don't need any interrupt, we also don't need the DMA, we only check the configuration of this pin, it's the auto-enfunction push-pull, it's okay, and also we have no pull-up and pull-down, and our speed of the GPO is low, then we are completely satisfied with this with this configuration, okay, now we can save our project, I name it timer 2, why not, I will create the project for the system warbench, okay, and I can generate my project for system warbench, now I open the system warbench, system project, I think it's from the last last hand zone, then I will close or delete from my workspace the previous project, and I will import the last project which we have here, then I want to import the timer, I will check all the projects, and I will use only my timer which I want to have inside my workspace, okay, here it will be more simpler than before, in main.c we have here only the timer initialization, the timer initialization is the basic timer initialization, and then we can see we configure the clock source, we configure now also the PWM, and we also are configuring the channel, and you can see that the timer configuration, it's more difficult than for example SPI or USART, but it's more advanced, more advanced verified, we don't use any interrupts only in the MSP, we use the pin, we enable the pin, we configure the timer 2 as the alternate function source, in the it.c we can find there is no interrupt handling, but how to start this timer, we do this very simply, we type hl, again the theme, underscore, this will be underscore x, it's the no, not x, the normal one, sorry, the PWM underscore start, we can start this without without DMA, it's okay, first we need to put the handle, it will be h, I think timer 2, and then we need to put the parameter for the channel, then I'm not sure what parameter is this, then I will go to the declaration, and here you can see as the second parameter we can put channel 1 to switch for, then if you remember well from the pinout we're using the channel 1, then here I put channel 1, and this start for me the timer, and this timer will automatically toggle with my led, then I will try to save all these parts, I will compile my code, and in case that you do everything correctly as my myself, then you will get no error, it seems that everything is still okay, no error, we can set the debug configuration on the AC6, I will select again my debugging source, it's in my case it's a stealing version 2.1, and I can start debug, when I run the code you can find that my led is blinking with the frequency one second now, then it's working, we created a very simple example, which creates the duty cycle, the PWM with 50% duty cycle, and it's not handled with CPU at all, CPU can do something else in the main loop.