Download Getting Started with Stellaris ARM Cortex-M

Transcript
vi
Contents
3.4
3.3.1 Power Supply
3.3.2 Microcontroller Connections
3.3.3 JTAG Interface
3.3.4 Arduino Interface Connector
3.3.5 USB Virtual COM Port
3.3.6 Audio Input
3.3.7 Light Sensor
3.3.8 LEDs and Switches
3.3.9 Temperature Sensor and Thumbwheel Potentiometer Input
Guru’s Arduino Interface in Detail
®
22
24
25
26
28
28
28
30
31
31
4 GNU ARM Toolchain
4.1 Introduction
4.2 Programming Environment: Stellaris® Guru
4.3 Setting up the Development Environment
33
33
36
38
5 Anatomy of a C Program
5.1 Example
5.2 Experiment 1
5.2.1 Objective
5.2.2 Program Flow
5.2.3 Register Accesses
5.2.4 Program Code
5.3 Experiment 2
5.3.1 Objective
5.3.2 Program Flow
5.3.3 Register Accesses
5.3.4 Program Code
56
57
57
57
57
59
60
61
61
61
63
63
6 StellarisWare API
6.1 StellarisWare Peripheral Driver Library: A Layer of Abstraction
6.2 Features of the StellarisWare Peripheral Driver Library
6.3 Programming Models
6.3.1 Direct Register Access Model
6.3.2 Software Driver Model
6.3.3 Using Both Models
6.4 Useful StellarisWare API Function Calls
6.4.1 SysCtlClockSet
6.4.2 SysCtlClockGet
6.4.3 SysCtlPeripheralEnable
65
65
66
66
66
67
67
67
67
69
69