RSS
Sort by » date activity ▼ answers views votes

146 questions

Tagged
  • x
19
views
no
votes
1
answer
Last activity 2017-08-14 12:43:33 +0200 by flip-flop

PWM on nrf52 with mbed consumes to much current.

Hi, I wonder why my pwm uses so much power in WFI mode. It uses around 470uA and when I do not use pwm that current is around 1.8uA. I tried to disable pwm but without success. Here's ... (more)

34
views
1
vote
1
answer
Last activity 2017-08-14 09:39:59 +0200 by Bjørn Spockeli flag of Norway

what is difference between pwm driver and pwm library example

Hi.

In SDK 14.0 examples, there are two examples for pwm. I analyzed both example. pwm driver example source looks like that it use pwm peripheral driver source. And pwm library source looks like that it use timer and ... (more)

33
views
no
votes
no
answers
Last activity 2017-08-10 11:42:51 +0200 by All4here

PWM and TWI not working at the same time [closed]

Hello, i have Nrf52840, here is the code for PWM

APP_PWM_INSTANCE(PWM1, 1);

uint8_t cBuzzer::_PWM_init(uint32_t Time_uS){
app_pwm_uninit(&PWM1);
app_pwm_config_t pwm1_cfg = APP_PWM_DEFAULT_CONFIG_1CH(Time_uS, Buzzer_Pin);    
/* Initialize and enable PWM. */
if (app_pwm_init(&PWM1, &pwm1_cfg, NULL) != Successfully) {return Error ;}
app_pwm_enable(&PWM1);
return ...
(more)

33
views
no
votes
2
answers
Last activity 2017-08-01 15:53:56 +0200 by Sigurd flag of Norway

RTC0 AND RTC1

hi , I have a question about rtc.In my project ,I use rtc1 for app timer and rct0 for low_power_pwm.The problem is that I dont't have any idear to enable rtc0 instead of rtc1 in the low_power_pwm .Thank ... (more)

34
views
1
vote
1
answer
Last activity 2017-07-31 17:17:42 +0200 by paul_tanner

Timer and PWM (and BLE) in nRF5 v12

(Building with nRF5 12.2.0 / armgcc)

I want to do bursts of pulses using PWM for the pulses and a TIMER to enable the bursts. I need this to be non-blocking so I can also use BLE.

Now PWM ... (more)

39
views
no
votes
1
answer
Last activity 2017-07-28 13:47:24 +0200 by Jørgen Holmefjord flag of Norway

nrf_pwm_values_individual_t pwm RGB LED

I want to have blinky orange led,

0 mean on, 0x8000 is off, right? and why??

I have no idea what's 0x8000 mean!

so if I want have orange(full-R and half-G), how can i do?

thanks!

There is ... (more)

75
views
2
votes
1
answer
Last activity 2017-07-10 12:55:43 +0200 by Hung Bui

Is it possible to creat a pwm with 1sec period

Dear All :

Is it possible to creat a pwm with 1sec period? Since the lowest frequency of the base clock is 125kHz,the top count of the pwm with 1sec period will be 125000(for case of up counter)。But ... (more)

50
views
no
votes
1
answer
Last activity 2017-07-08 18:45:00 +0200 by endnode

52810 PWM control

I have intention to use 52810's PWM output to drive motor. The timing requirement are critical so hardware PWM is essential, rather than CPU generated waveform output.

I have found some posts on forum discussed about pwm related issue ... (more)

92
views
1
vote
1
answer
Last activity 2017-06-26 14:08:32 +0200 by Kristin flag of Norway

how do I change PWM port to 1 on example "low_power_pwm"

Hi, I have Design a new product based on the NRF52840 I am trying to get the lcd up and running so first thing is the pwm for the backlight. I am using pin 1.08 for the pwm. but ... (more)

89
views
no
votes
1
answer
Last activity 2017-06-06 11:42:31 +0200 by Turbo J

NRF52832 PWM limitations

Hello,

With sdk13 and app_pwm library, I only got 9bits resolution for 32KHz freq.

The pwm should have 16bits resolution, with max freq 100KHz? please could anyone confirm that.

85
views
1
vote
1
answer
Last activity 2017-06-02 11:33:25 +0200 by Wojtek flag of Poland

nRF52- PWM - Generating 8Mhz Clock

Hi,

Can Anyone has experienced with nRF52 PWM clock generation ? I am trying to generate 8-Mhz clock out of GPIO by configuring it for PWM module.. But so far I can get only 1Mhz clock maximum..

Is it possible to ... (more)

612
views
6
votes
1
answer
Last activity 2017-05-18 13:52:58 +0200 by Torbjørn Øvrebekk

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)

124
views
no
votes
2
answers
Last activity 2017-05-16 15:24:40 +0200 by Alessandro

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)

37
views
no
votes
no
answers
Last activity 2017-05-09 17:47:58 +0200 by kalauffenburger

EVENTS_PWMPERIODEND interrupt not behaving as expected

I am trying to use the EVENTS_PWMPERIODEND interrupt to read a GPIO pin on every falling edge of an output GPIO that is driven from the PWM module.

The description in the reference manual is: EVENTS_PWMPERIODEND 0x118 Emitted at the ... (more)

62
views
no
votes
1
answer
Last activity 2017-05-07 17:46:57 +0200 by dingari

nrf51822 PWM failure

I am trying to add the example in examples\peripheral\pwm_library to another project to get pwm working. In the other project I have included all necessary stuff but I get:

..\..\..\main.c(59): error: #20: identifier "TIMER1_INSTANCE_INDEX" is undefined ... (more)

129
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)

81
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.

74
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)

55
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)

69
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

107
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)

105
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)

68
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.

147
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)

122
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)

154
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)

451
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)

65
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)

52
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)

103
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)

Statistics

  • Total users: 23740
  • Latest user: Gretta Fusco
  • Resolved questions: 10097
  • Unanswered questions: 3087
  • Total questions: 24462