Jason Garner / registers-example

Dependencies:   ARM registers

You are viewing an older revision! See the latest version

Homepage

Table of Contents

    This is just to satisfy my curiosity on how the mbed libraries work. I put it here just in case others are too. Every time I learn how another internal register works, I'll keep it here to save myself from future coding headaches.

    working

    • DigitalIn
    • DigitalOut
    • wait()

    mostly working

    • Serial
    • Timer
    • Ticker

    Serial doesn't have all the methods that mbed had, but it works for me. Timer has the same limitations of mbed for default resolution (30 min limit), and if you start at the end of resolution and stop after it rolls back to 0, it doesn't take that into account. But I added the option to change resolution, so I can have longer timers.

    For Ticker, I used a 100 microsecond timer instead of a 1 microsecond Timer, so the smallest interval in between function calls is 100 microseconds. (10KHz) However, this means that the maximum interval in between function calls is 59 days. (untested)


    All wikipages