Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sigma_delta module. #1000

Merged
merged 1 commit into from
Feb 20, 2016
Merged

Add sigma_delta module. #1000

merged 1 commit into from
Feb 20, 2016

Conversation

devsaurus
Copy link
Member

This PR adds Lua commands to control the "sigma-delta" signal generator described in A first order sigma-delta signal from io pin source.
Documentation is a bit sparse and I had to derive most details with waveform scoping, though I hope that the API doc provides enough information of what to expect:
A hardware-driven pulse generator with 12.5 ns to 3.2 µs high (or low) duration and total period of 2x to 256x. It can be also operated as 8 bit PWM with fixed 312 kHz frequency. Any GPIO except pin 0 / GPIO16 is selectable as output.

@jmattsson
Copy link
Member

This looks cool!

One question: should the pin number checks be turned into a MOD_CHECK(sigmadelta) and abstracted in the platform layer? Just thinking ahead to hopeful ESP32 support...

@devsaurus
Copy link
Member Author

Thanks for the hint - these literals weren't a portable solution.
Is it now matching the platform structure?

@devsaurus devsaurus force-pushed the sigma_delta branch 2 times, most recently from e29df32 to eb825fa Compare February 6, 2016 21:38
@devsaurus
Copy link
Member Author

It appears that this PR collides with #1023 by now. I'm postponing this one and rebase once the other got merged.

@TerryE
Copy link
Collaborator

TerryE commented Feb 13, 2016

I'll do the extra commit to sweep up all the feedback on #1023 tomorrow and then we should be good to go.

@devsaurus
Copy link
Member Author

Rebased onto dev and verified.

devsaurus added a commit that referenced this pull request Feb 20, 2016
@devsaurus devsaurus merged commit 8743319 into nodemcu:dev Feb 20, 2016
@devsaurus devsaurus deleted the sigma_delta branch February 21, 2016 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants