Hello Everyone
I am really new to everything here, i just got nRF 52832 board,
Can anyone please tell me the step-by- step method on how to make a program in keil uVision.
Any help will be greatly appreciated.
thanks in advance
Hello Everyone
I am really new to everything here, i just got nRF 52832 board,
Can anyone please tell me the step-by- step method on how to make a program in keil uVision.
Any help will be greatly appreciated.
thanks in advance
Hi,
There is a blinky example in the SDK. Its located in the folder:
<SDK_InstallFolder>\examples\peripheral\blinky
You can download the SDK 12.2 here.
i have been able to blink led with the following code, but how to use this code to generate a PWM on any other GPIO pins than the 4 LED pins given. which command to be used for setting a pin low or high?
include <stdbool.h>
include <stdint.h>
include "nrf_delay.h"
include "bsp.h" /for gpio and led declrtn/
include "nrf.h"
include "system_nrf52.h"
define ENABLE_SWD 1
static const uint8_t leds_list[LEDS_NUMBER] = { 9, 7, LED_1, LED_4 };
int main(void) { /* Configure LED-pins as outputs. */ LEDS_CONFIGURE(LEDS_MASK); int i=0;
while(true) { while(i<500)
{
// Start LED here
nrf_gpio_pin_clear(LED_3);
nrf_delay_ms(1000);
nrf_gpio_pin_set(LED_3);
nrf_delay_ms(1000);
i++;
}
} }
i have been able to blink led with the following code, but how to use this code to generate a PWM on any other GPIO pins than the 4 LED pins given. which command to be used for setting a pin low or high?
include <stdbool.h>
include <stdint.h>
include "nrf_delay.h"
include "bsp.h" /for gpio and led declrtn/
include "nrf.h"
include "system_nrf52.h"
define ENABLE_SWD 1
static const uint8_t leds_list[LEDS_NUMBER] = { 9, 7, LED_1, LED_4 };
int main(void) { /* Configure LED-pins as outputs. */ LEDS_CONFIGURE(LEDS_MASK); int i=0;
while(true) { while(i<500)
{
// Start LED here
nrf_gpio_pin_clear(LED_3);
nrf_delay_ms(1000);
nrf_gpio_pin_set(LED_3);
nrf_delay_ms(1000);
i++;
}
} }