RSS
Sort by » date activity ▼ answers views votes

133 questions

Tagged
  • x
44
views
no
votes
1
answer
Last activity 2017-04-26 12:39:40 +0200 by Jørn flag of Norway

Infrared Transmitter only with PWM driver on nrf52

Hi all,

I need to transmit an infrared beacon every X seconds and the beacon does not change over time. I am using the PWM driver on nrf52 to generate the 38kHz carrier frequency and I am currently working on ... (more)

77
views
2
votes
2
answers
Last activity 2017-04-24 15:28:16 +0200 by akshaey

pwm hardware individual loading mode nrf52

Please can anyone help me on how to use(program) PWM hardware with individual loading mode? My goal is to control 12 LEDs individually with different duty cycles and playbacks using pwm hardware which has 12 outputs to make a ... (more)

26
views
no
votes
no
answers
Last activity 2017-04-21 10:49:19 +0200 by MVR

making Tune instead of Beep using Bizzer with PWM library

i have added pwm into proximity profile example and now i am able to make beep using buzzer with pwm library.Now i want to make some sort of Tune instead of beep.

Can any one help!....Thanks.

33
views
no
votes
no
answers
Last activity 2017-04-13 21:07:03 +0200 by dustinface

nRF52832 : PWM Driver Clock lower then 125kHz

Hey,

just wondering if its possible to lower the pwm driver clock of the nRF52832 to around 500Hz? Im working on a LED dimming application and the LED spots i use have really bad on/off times. Im getting much ... (more)

30
views
1
vote
1
answer
Last activity 2017-04-11 08:31:07 +0200 by Jørgen Holmefjord flag of Norway

Do I have any restriction with HW Pinout Peripheral when using s130?

if I use softdevice 130 Enabled, then do I have any restriction with using all of the pinout of NRF51xxx?

Or if I use Nrf-51 DK, Do I have any restriction with nrf 51xxx's full pinout functionality?

To Make ... (more)

32
views
no
votes
2
answers
Last activity 2017-04-11 08:24:15 +0200 by Jørgen Holmefjord flag of Norway

PWM Error when using with nrf52 PCA10040 s132 nrf52832

I have implemented pwm as suggested in the info centre of nordiac semiconducter. But it showing the following error as shown below image.

Please Help if any one is aware of it.

Thank you.

image description

56
views
no
votes
no
answers
Last activity 2017-04-06 18:26:16 +0200 by akshaey

Using 12 hardware and 1 software channel for pwm on nrf52

Hello I am new to work on nrf52,

Please can someone help me regarding how to use hardware and software pwm together. I have a need of using 13 leds , so i need 13 pwm. As max h/w pwm ... (more)

74
views
no
votes
1
answer
Last activity 2017-03-24 12:31:31 +0200 by Hung Bui

Outputting a PWM signal at 8Mhz with 50% dutcy cycle

We are working with SDK 12.1 and are noticing the max value we can output using the PWM driver is about 5.3Mhz (top value to 3 and 16Mhz for the clock) this isn't a 50% duty cycle ... (more)

35
views
no
votes
1
answer
Last activity 2017-03-06 13:30:35 +0200 by Kristin flag of Norway

PWM input signal

Hi,

Is it possible to have a PWM input signal with a nRF51822? Is there any example of how it works? I want to read the dutycycle of a PWM signal.

75
views
no
votes
no
answers
Last activity 2017-03-02 22:39:30 +0200 by DAneill flag of Hungary

pwm_driver period is always 50Hz.WHY?

Hello all,

I have created a BLE application on nRF52 PCA10040 devboard with S132 SD, in which I would like to use a PWM with the PWM_Driver. My pwm source code as below wants to control an RGB LED on ... (more)

72
views
no
votes
1
answer
Last activity 2017-03-02 12:28:00 +0200 by Sigurd flag of Norway

what is the maximum limit for PWM outputs pins on nrf52832? Can we use all the GPIO pins as a PWM output?

Hello

what is the maximum limit for PWM outputs pins on nrf52832? Can we use all the GPIO pins as a PWM output?

For ADC, i can see there are 8 dedicated pins , but i want to confirm for PWM ... (more)

106
views
no
votes
2
answers
Last activity 2017-02-26 14:07:02 +0200 by Lipraxde

Low-power PWM library: PWM doesnt stop if low_power_pwm_stop is called from handler. Is this a bug?

I am using SDK 12.0.0.

I am working with low_power_pwm_init() to initialise the pwm and I have passed a handler while initialising. I want to stop the pwm from the handler hence I am calling low_power_pwm_stop() from the ... (more)

380
views
2
votes
2
answers
Last activity 2017-02-15 09:37:37 +0200 by Martin Børs-Lind flag of Norway

nRF52 PWM Glitch Error

I have an implementation that is using a PWM output to drive a LED. It has been observed that when the LED is on in a constant drive state, fixed PWM output train, the LED will "flash". i.e. change ... (more)

42
views
no
votes
no
answers
Last activity 2017-02-13 10:52:31 +0200 by Ole Bauck flag of Norway

pwm dimming led rgb with trouble on third and thourth channel.

i am having trouble with pwm module 2. only two of the channels are working but not the third nor the fourth. i tried pwm module 1 but im having the same problem there. i cant tell what im missing ... (more)

45
views
no
votes
no
answers
Last activity 2016-12-27 16:05:53 +0200 by Petter Myhre flag of Norway

nrf51822 pwm working some minutes will loss. [closed]

APP_PWM_INSTANCE(PWM1,1); 


void PWM_init(void)
{
    u32 err_code;

    app_pwm_config_t pwm1_cfg = APP_PWM_DEFAULT_CONFIG_1CH(1000, 8);   

    err_code = app_pwm_init(&PWM1,&pwm1_cfg,NULL);
    APP_ERROR_CHECK(err_code);
    app_pwm_enable(&PWM1);
    while (app_pwm_channel_duty_set(&PWM1, 0, 0) == NRF_ERROR_BUSY); 
}


void PWM_Set( u8 duty )
{
    if ( duty>100 )    duty = 100;

    while (app_pwm_channel_duty_set(&PWM1 ...
(more)

85
views
1
vote
1
answer
Last activity 2016-12-21 04:02:18 +0200 by bbslhb

nRF52832 No accurate 4MHz PWM output with SoftwateDevice 332 in SDK11.0.0

SDK:11.0.0

MCU:nRF52832

Using example:ble_ant_app_hrm

SoftwateDevice Version:s332

PWM is turned on and accurate 4MHz is available before entering ble_stack_init();

PWM is unstable after enterd SOFTDEVICE_HANDLER_INIT(&clock_lf_cfg, NULL); in ble_stack_init();

How to keep 32MHz external crystal ... (more)

244
views
no
votes
1
answer
Last activity 2016-12-20 17:54:32 +0200 by Alessandro Fato

nrf pwm library increases current consumption

Hi, I am using nrf pwm library from here: https://github.com/NordicSemiconducto.... I am driving two gpios for a piezo buzzer.

I call pwm_init(), then use the call set_frequency_and_duty_cycle() to start pwm. To stop, I call nrf_pwm_set_enabled(false)

The ... (more)

86
views
no
votes
no
answers
Last activity 2016-12-16 16:40:09 +0200 by Felipe Ribas

PWM Driver starting new sequence with NRF52

I am not sure how exactly the NRF52 handles a call to start a new sequence. There are 3 different scenarios (trying to start a new sequence before, right after and way after the current sequence):

1) When the current ... (more)

121
views
no
votes
1
answer
Last activity 2016-12-15 00:18:45 +0200 by ms360

SDK 12 PWM Driver + Softdevice 132 + NRF52832

Hi Devzone.

I've taken the ble_app_hrs example, and then added the example code from the PWM Driver example.

The PWM module is mostly functional, however I have a fatal error that is prohibiting operation for more than a minute ... (more)

52
views
no
votes
no
answers
Last activity 2016-12-13 05:20:04 +0200 by robotden

nRF51822 PWM and GPIOTE: differrences between Keil MDK(ARMCC) and GNU_GCC_ARM Compiler

Hello everybody!

I have a problem with compilers for nRF51822. My problems: I create a pwm signal ~38Khz, duty 30% at pin 30 of nRF51822. This process is work well. I want use the function:

nrf_drv_gpiote_out_task_enable(pin)
nrf_drv_gpiote_out_task_disable(pin)

to ... (more)

88
views
no
votes
1
answer
Last activity 2016-12-12 11:59:43 +0200 by Ole Bauck flag of Norway

12 bit duty cycle resolution at 25 KHz PWM frequency

Hi,

Does anyone know if there is a way to achieve 12 bit duty cycle resolution at 25 KHz PWM frequency for 5 channels (individual duty cycle for each channel) using the NRF52823 ?

79
views
1
vote
1
answer
Last activity 2016-12-09 10:11:00 +0200 by Torbjørn Øvrebekk

nRF52 timer has no modulus?

I'm learning about the nRF52 series and so far love everything I see, especially the SDK. But I just got to the point where I'd like to generate precisely timed output, and there is something I don't ... (more)

165
views
no
votes
1
answer
Last activity 2016-12-02 12:27:38 +0200 by Aryan flag of Norway

rtc and app_timer

Hi,

Is it possible to use RTC for timekeeping along with app_timer functionality? For example, I want to use simple RTC counter register and overflow interrupt to provide time tracking, but also need the app_timers. The second timer is used ... (more)

74
views
no
votes
1
answer
Last activity 2016-11-29 22:09:21 +0200 by ivo

soft pwm with rtc

I would need more pwm channels, than there is possible with pwm library on nrf51822 (That is 16 channels). I would like to do it in a fashion, similar to this, using a prescaler of 15, so pwm frequency would ... (more)

128
views
2
votes
1
answer
Last activity 2016-11-22 14:43:24 +0200 by Stas

adding pwm to ble_template

Hello everyone! I'm very shy to ask probably a stupid question, but... I'm trying get abitity to change pwm signal via ble. I've created service, characteristic, then I try to add some code from pwm_library example but ... (more)

85
views
1
vote
1
answer
Last activity 2016-11-17 17:11:13 +0200 by Sigurd flag of Norway

PWM Wrong frequency and duty cycle

I set up my PWM Driver like this:

    nrf_drv_pwm_config_t const nrf_drv_pwm_config =
{
    .output_pins =
    {
            BSP_LED_2 | NRF_DRV_PWM_PIN_INVERTED,   // channel 0
            NRF_DRV_PWM_PIN_NOT_USED,               // channel 1
            BSP_LED_3 | NRF_DRV_PWM_PIN_INVERTED,   // channel 2
            NRF_DRV_PWM_PIN_NOT_USED                // channel 3
    },
    .irq_priority = APP_IRQ_PRIORITY_MID,
    .base_clock   = NRF_PWM_CLK_16MHz,       // Need 250 clock to get 41kHz PWM that could have ...
(more)

69
views
1
vote
1
answer
Last activity 2016-11-14 13:14:59 +0200 by Stas

Build example into chips with preinstalled SOFTDEVICE

image descriptionHello to everyone. I'll need to use ble things with pwm. I'm trying to play around with pwm library it's ok, but it's build only on erased chip, trying to flash it into chip with preinstalled ... (more)

201
views
1
vote
no
answers
Last activity 2016-10-28 08:19:48 +0200 by Inspectron flag of Switzerland

PPI does not work with PWM

URGENT

First of all, I have to mention that I dont understand PPI.

I have application which uses PWM to control a pump which is connected to the nRF52. To the nRF52 is a sensor connected, which gives me a ... (more)

323
views
3
votes
1
answer
Last activity 2016-10-25 12:47:08 +0200 by Stefan Birnir Sverrisson flag of Iceland

NRF52 Dim LED with PWM Driver

I am migrating from nrf51 to nrf52. Using SDK12.1

On NRF51, I used the PWM Library to use 2 buttons on the DK to dim up or down onboard LED1 (called OUTPUT_LED). It worked great (not sure if it ... (more)

64
views
2
votes
1
answer
Last activity 2016-10-20 05:14:18 +0200 by Võ Thanh Hiếu flag of Viet Nam

HardFault when running app_pwm_init() [closed]

I am trying to add PWM library functionality to my "template" PWM application and observe that:

  • If I place app_pwm_init() before BLE initialization, I have Invalid Parameter error originated from the call to nrf_drv_timer_init() in that function.
  • If I place ...
(more)

Statistics

  • Total users: 18590
  • Latest user: Roseann Seale
  • Resolved questions: 9213
  • Unanswered questions: 2552
  • Total questions: 21765

User menu

    or sign up

Recent questions