Question: I need help with this HW. This code must be used in Keil uVision 5 in C file Consider the delay function based on timers
I need help with this HW. This code must be used in Keil uVision 5 in C file

Consider the delay function based on timers below that is used in the skeleton code for the LCD Lab. Tvoid tim6-delay(void){ // enable APB1 bus clock RCC->APBIENRI=RCCAPBIENR TTM6EN ; ITIM6 prescaler set at default to 0 for novw TTM6-)PSC=(); // prescalar TIM6->ARR= 21000; //auto reload register TIM6->CNT-0//clear counter register - //WHEN COUNTER IS DONE THE TIM6 SR REG UIF FLAG IS SET while (TIM6->SR) TLM6S R=0; //CLEAR ulFFLAG You are asked to figure outthe actual delay from the above function. Upload a detailed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
