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
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK