

Assembly Language Tutorial Five for MagPi Magazine
source link: https://smist08.wordpress.com/2022/07/29/assembly-language-tutorial-five-for-magpi-magazine/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Assembly Language Tutorial Five for MagPi Magazine
I’m in the process of writing a series of Assembly Language tutorials for MagPi Magazine. The fifth one appeared in issue #120 on page 52.
The PDF version of the magazine is free to download, but MagPi always appreciates any donations.
This article leads readers through how to access the Raspberry Pi Pico’s hardware by reading and writing to special memory addresses that double as hardware access and status registers. This is typical of how the ARM processor is interfaced to hardware devices. Since the Raspberry Pi Pico doesn’t run an operating system, our program can directly access the hardware rather than going through device drivers or an SDK. In this tutorial we read temperature values directly from the Raspberry Pi Pico’s built in temperature sensor using Assembly Language. We write this code in the form of a function and call it from a C program that prints out the values for us to read.
This tutorial can only give so much detail. If you want more detail, you can always consider my book RP2040 Assembly Language Programming.
Recommend
-
23
If our recent release of Retro Gaming with Raspberry Pi ,
-
7
Star Wars Arcade Cabinet | The MagPi #105 Why pay over the odds when you can build an accurate replica, and have fun doing it?For the latest issue of The MagPi...
-
7
Calculate pi with a Raspberry Pi Spigot | The MagPi #106 Here’s an ingenious way of using a Raspberry Pi to calculate pi – and why not? Nicola King runs the numbers in the latest issue of
-
4
‘Epigone drone’ pays homage to NASA’s Mars Helicopter | The MagPi #107 Inspired by NASA’s attempt to launch a helicopter on Mars, one maker made an Earth-bound one of her own. And she tells Rosie Hatt...
-
4
Humane mouse trap | The MagPi #108 Safely catching mice is a better way of fixing a problem, and using Raspberry Pi means it needs less supervision. In the
-
6
Machine Learning Prosthetic Arm | The MagPi #110 This intelligent arm learns how to move naturally, based on what the wearer is doing, as Phil King discovers in the
-
7
Assembly Language Tutorials for MagPi Magazine with 2 comments I’m in the process of writing a...
-
6
Assembly Language Tutorial Three for MagPi Magazine leave a comment » As...
-
7
Assembly Language Tutorial Four for MagPi Magazine leave a comment » I’m...
-
4
Assembly Language Tutorial Six for MagPi Magazine leave a comment » Assembly...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK