Skip to main content
  • Book
  • © 2022

RP2040 Assembly Language Programming

ARM Cortex-M0+ on the Raspberry Pi Pico

Apress

Authors:

  • Program the Raspberry Pi Pico in ARM 32-Bit Thumb Assembly Language
  • Control the custom PIO processors with PIO Assembly Language
  • Understand low-level mechanics of the Raspberry Pi Pico systems

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (14 chapters)

  1. Front Matter

    Pages i-xxiii
  2. Our First Assembly Language Program

    • Stephen Smith
    Pages 11-37
  3. How to Build and Debug Programs

    • Stephen Smith
    Pages 39-56
  4. How to Load and Add

    • Stephen Smith
    Pages 57-78
  5. How to Control Program Flow

    • Stephen Smith
    Pages 79-97
  6. Thanks for the Memories

    • Stephen Smith
    Pages 99-120
  7. How to Call Functions and Use the Stack

    • Stephen Smith
    Pages 121-145
  8. Interacting with C and the SDK

    • Stephen Smith
    Pages 147-160
  9. How to Program the Built-in Hardware

    • Stephen Smith
    Pages 161-175
  10. How to Set and Catch Interrupts

    • Stephen Smith
    Pages 201-219
  11. Multiplication, Division, and Floating Point

    • Stephen Smith
    Pages 221-240
  12. Multiprocessing

    • Stephen Smith
    Pages 241-263
  13. How to Connect Pico to IoT

    • Stephen Smith
    Pages 265-289
  14. Back Matter

    Pages 291-320

About this book

Learn to program the Raspberry Pi Pico’s dual ARM Cortex M0+ CPUs in Assembly Language.  The Pico contains a customer System on a Chip (SoC) called the RP2040, making it the Foundation’s first entry into the low-cost microcontroller market. The RP2040 contains a wealth of coprocessors for performing arithmetic as well as performing specialized I/O functionality. This book will show you how these CPUs work from a low level, easy-to-learn perspective.     

There are eight new Programmable I/O (PIO) coprocessors that have their own specialized Assembly Language supporting a wide variety of interface protocols. You'll explore these protocols and write programs or functions in Assembly Language and interface to all the various bundled hardware interfaces. Then go beyond working on your own board and projects to contribute to the official RP2040 SDK. Finally, you'll take your DIY hardware projects to the next level of performance and functionality withmore advanced programming skills.  



What You'll Learn
  • Read and understand the Assembly Language code that is part of the Pico’s SDK
  • Integrate Assembly Language and C code together into one program
  • Interface to available options for DIY electronics and IoT projects



Who This Book Is For


Makers who have already worked with microcontrollers, such as the Arduino or Pico, programming in C or Python. Those interested in going deeper and learning how these devices work at a lower level, by learning Assembly Language.

Authors and Affiliations

  • Gibsons, Canada

    Stephen Smith

About the author

​Stephen Smith is a retired Software Architect, located in Gibsons, BC, Canada. He's been developing software since high-school, or way too many years to record. Since retiring he has pursued Artificial Intelligence programming, earned his Advanced HAM Radio License and enjoys mountain biking, hiking, and nature photography. He continues to write his popular technology blog at smist08.wordpress.com.

Bibliographic Information

  • Book Title: RP2040 Assembly Language Programming

  • Book Subtitle: ARM Cortex-M0+ on the Raspberry Pi Pico

  • Authors: Stephen Smith

  • DOI: https://doi.org/10.1007/978-1-4842-7753-9

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Professional and Applied Computing, Apress Access Books, Professional and Applied Computing (R0)

  • Copyright Information: Stephen Smith 2022

  • Softcover ISBN: 978-1-4842-7752-2Published: 28 October 2021

  • eBook ISBN: 978-1-4842-7753-9Published: 27 October 2021

  • Edition Number: 1

  • Number of Pages: XXIII, 320

  • Number of Illustrations: 19 b/w illustrations

  • Topics: Hardware and Maker

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access