waveform output for binary signals #5714
Replies: 1 comment
-
Posted at 2017-03-02 by @gfwilliams Good question :) At the moment it's best to use What kind of speed are you trying to achieve with it? Posted at 2017-03-02 by @yerpj I would say as fast as possible :-) Posted at 2017-03-02 by @gfwilliams You couldn't get the data into it fast enough for that I'm afraid - for that kind of thing you'd be looking at writing your own C code and then maybe integrating that in to Espruino. It is possible to set up DMA directly from JavaScript, and you could for example stream from flash memory at that speed - but it'll require you reading the chip datasheet and poking around with registers. Posted at 2017-03-02 by @yerpj
By using I also think that the DMA should be a helful peripheral for that. Posted at 2017-03-02 by @gfwilliams Yes, it'd just be using peek and poke. I'm not sure I understand the question? If you're using something like the Pico then there's a 128kB page at the end of flash that you can write the data into though. Posted at 2017-03-02 by @yerpj Yes I'll be using the Pico. Posted at 2017-03-02 by @gfwilliams In the Espruino repo you'll find Posted at 2017-03-02 by @yerpj Thank you ! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-03-02 by @yerpj
Hello guys!
I would like to stream on a digital output at a given rate from a large file or array.
I know the
waveform
class but it is dedicated to analog data. What is the best way to replicate the behaviour but for binary data?Thanks for your feedback
Beta Was this translation helpful? Give feedback.
All reactions