I put this online yesterday: http://www.espruino.com/NRF52LL
The nRF52 microcontroller used in Puck.js has a load of really interesting peripherals built-in, not all of which are exposed by Espruino. The microcontroller also contains something called PPI - the "Programmable Peripheral Interconnect". This allows you to 'wire' peripherals together internally.
PPI lets you connect an event (eg. a pin changing state) to a task (eg. increment the counter). All of this is done without the processor being involved, allowing for very fast and also very power efficient peripheral use.
Currently only GPIO and Timers/Counters are supported, but if there's something specific then I'm definitely up for adding more... eg. DMA
This kind of thing is super useful for high speed stuff. For instance measuring pulse lengths or frequencies is trivial with this.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem