From 17ebf685b095f0c6ab8869af16dff2a09b07004d Mon Sep 17 00:00:00 2001 From: Sanyog Ramesh Nevase Date: Sun, 22 Sep 2024 20:35:30 +0530 Subject: [PATCH] update period value --- Group21_Lab06_Task1/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Group21_Lab06_Task1/main.c b/Group21_Lab06_Task1/main.c index 6101304..3bd6808 100644 --- a/Group21_Lab06_Task1/main.c +++ b/Group21_Lab06_Task1/main.c @@ -29,7 +29,7 @@ void GPIO_PORT_F_init(void) #define SYSTICK_RELOAD_VALUE(us) ((CLOCK_HZ / 1000000) * (us) - 1) // SysTick reload value in microseconds based on clock frequency volatile int duty = 50; // Initial duty cycle -const volatile int PWM_PERIOD = 1000000; // Period for 100kHz in microseconds (10ms) +const volatile int PWM_PERIOD = 1000; // Period for 100kHz in microseconds (10ms) volatile int ontime = 0; // Variable to track on time //volatile bool ledState = false; // State of the LED