Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9872 Discussions

Pulse wave generation using GPIO.

Gurudatta_B_Intel
1,199 Views

Hello,

I am trying to generate pulse wave on the GPIO using MCU application.

while(1) {

gpio_write(GPIO_PIN, 1);

mcu_delay(riseTimeUS);

gpio_write(GPIO_PIN, 0);

mcu_delay(fallTimeUS);

}

But I am observing that sometimes the width of the pulse is not consistent, either the rise time or fall time gets changed automatically without any change in the input data. The screenshot is attached herewith, where I am trying to generate pulse train, but the the pulses are not of uniform width.

May I know is this hardware limitation or do I need to change some configuration?

Thanks in advance.

Best regards,

Gurudatta.

1 Solution
idata
Community Manager
176 Views

Hello Gurudatta_Bhakte,

 

 

There is a known issue with the Edison's MCU where there is a delay which affects the GPIOs. If the delay you are reporting is small, then it is the known issue, this is the main reason why a manual PWM might fail using the MCU. We are aware of this issue and we are currently working on fixing it. We hope to solve it in a future software release, nevertheless there is no ETA for a fix.

 

 

-Peter

View solution in original post

2 Replies
idata
Community Manager
177 Views

Hello Gurudatta_Bhakte,

 

 

There is a known issue with the Edison's MCU where there is a delay which affects the GPIOs. If the delay you are reporting is small, then it is the known issue, this is the main reason why a manual PWM might fail using the MCU. We are aware of this issue and we are currently working on fixing it. We hope to solve it in a future software release, nevertheless there is no ETA for a fix.

 

 

-Peter
Gurudatta_B_Intel
176 Views

Thank you Peter for this information.

Best regards,

Gurudatta

Reply