nRF52 Low Level Libraries #145
gfwilliams
announced in
News
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Posted at 2017-11-01 by @gfwilliams
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.
Beta Was this translation helpful? Give feedback.
All reactions