Experience Seamless Full Ebook Downloads for Every Genre at textbookfull.
com
Microcontroller Programming and Interfacing with
Texas Instruments Msp430fr2433 and Msp430fr5994
Second Edition Mitchell A. Thornton (Editor)
https://textbookfull.com/product/microcontroller-
programming-and-interfacing-with-texas-instruments-
msp430fr2433-and-msp430fr5994-second-edition-mitchell-a-
thornton-editor/
OR CLICK BUTTON
DOWNLOAD NOW
Explore and download more ebook at https://textbookfull.com
Recommended digital products (PDF, EPUB, MOBI) that
you can download immediately if you are interested.
Intermediate C Programming for the PIC Microcontroller:
Simplifying Embedded Programming Hubert Henry Ward
https://textbookfull.com/product/intermediate-c-programming-for-the-
pic-microcontroller-simplifying-embedded-programming-hubert-henry-
ward/
textboxfull.com
Understanding Credit Derivatives and Related Instruments
Second Edition Bomfim
https://textbookfull.com/product/understanding-credit-derivatives-and-
related-instruments-second-edition-bomfim/
textboxfull.com
Microcontroller Theory and Applications Rafiquzzaman
https://textbookfull.com/product/microcontroller-theory-and-
applications-rafiquzzaman/
textboxfull.com
Fundamentals and basic optical lnstruments ; Advanced
optical instruments and techniques Second Edition Malacara
https://textbookfull.com/product/fundamentals-and-basic-optical-
lnstruments-advanced-optical-instruments-and-techniques-second-
edition-malacara/
textboxfull.com
Planar multibody dynamics formulation programming with
MATLAB and applications Second Edition Nikravesh
https://textbookfull.com/product/planar-multibody-dynamics-
formulation-programming-with-matlab-and-applications-second-edition-
nikravesh/
textboxfull.com
Programming Windows Store Apps with HTML CSS and
JavaScript Second Edition Kraig Brockschmidt
https://textbookfull.com/product/programming-windows-store-apps-with-
html-css-and-javascript-second-edition-kraig-brockschmidt/
textboxfull.com
Kotlin Apprentice Second Edition Beginning Programming
with Kotlin Irina Galata
https://textbookfull.com/product/kotlin-apprentice-second-edition-
beginning-programming-with-kotlin-irina-galata/
textboxfull.com
Web Scraping with Python 2nd Edition Ryan Mitchell
https://textbookfull.com/product/web-scraping-with-python-2nd-edition-
ryan-mitchell/
textboxfull.com
Preparing for and Passing the School Superintendent Test
of Texas Second Edition Pauline M. Sampson
https://textbookfull.com/product/preparing-for-and-passing-the-school-
superintendent-test-of-texas-second-edition-pauline-m-sampson/
textboxfull.com
Series ISSN: 1932-3166
BARRETT • PACK
Series Editor: Mitchell A. Thornton, Southern Methodist University
Microcontroller Programming and Interfacing with Texas Instruments
MSP430FR2433 and MSP430FR5994, Second Edition
Microcontroller Programming
and Interfacing with Texas
MICROCONTROLLER PROGRAMMING AND INTERFACING WITH TEXAS
INSTRUMENTS MSP430FR2433 AND MSP430FR5994, SECOND EDITION
Steven F. Barrett, University of Wyoming
Daniel J. Pack, University of Tennessee Chattanooga
This book provides a thorough introduction to the Texas Instruments MSP430™ microcontroller.
The MSP430 is a 16-bit reduced instruction set (RISC) processor that features ultra-low power
Instruments MSP430FR2433
consumption and integrated digital and analog hardware.Variants of the MSP430 microcontroller
have been in production since 1993. This provides for a host of MSP430 products including
evaluation boards, compilers, software examples, and documentation. A thorough introduction
and MSP430FR5994 - Part I
Second Edition
to the MSP430 line of microcontrollers, programming techniques, and interface concepts are
provided along with considerable tutorial information with many illustrated examples. Each
chapter provides laboratory exercises to apply what has been presented in the chapter.
This book is intended for an upper level undergraduate course in microcontrollers or
mechatronics but may also be used as a reference for capstone design projects. Also, practicing
engineers already familiar with another microcontroller, who require a quick tutorial on the
microcontroller, will find this book very useful. This second edition introduces the MSP–
EXP430FR5994 and the MSP430–EXP430FR2433 LaunchPads. Both LaunchPads are
equipped with a variety of peripherals and Ferroelectric Random Access Memory (FRAM).
FRAM is a nonvolatile, low-power memory with functionality similar to flash memory.
Steven F. Barrett
Daniel J. Pack
About SYNTHESIS
This volume is a printed version of a work that appears in the Synthesis
Digital Library of Engineering and Computer Science. Synthesis
books provide concise, original presentations of important research and
MORGAN & CLAYPOOL
development topics, published quickly, in digital and print formats.
store.morganclaypool.com
Microcontroller Programming
and Interfacing with
Texas Instruments
MSP430FR2433 and
MSP430FR5994 – Part I
Second Edition
Synthesis Lectures on Digital
Circuits and Systems
Editor
Mitchell A. Thornton, Southern Methodist University
The Synthesis Lectures on Digital Circuits and Systems series is comprised of 50- to 100-page books
targeted for audience members with a wide-ranging background. The Lectures include topics that
are of interest to students, professionals, and researchers in the area of design and analysis of digital
circuits and systems. Each Lecture is self-contained and focuses on the background information
required to understand the subject matter and practical case studies that illustrate applications. The
format of a Lecture is structured such that each will be devoted to a specific topic in digital circuits
and systems rather than a larger overview of several topics such as that found in a comprehensive
handbook. The Lectures cover both well-established areas as well as newly developed or emerging
material in digital circuits and systems design and analysis.
Microcontroller Programming and Interfacing with Texas Instruments MSP430FR2433
and MSP430FR5994 – Part I, Second Edition
Steven F. Barrett and Daniel J. Pack
2019
Synthesis of Quantum Circuits vs. Synthesis of Classical Reversible Circuits
Alexis De Vos, Stijn De Baerdemacker, and Yvan Van Rentergen
2018
Boolean Differential Calculus
Bernd Steinbach and Christian Posthoff
2017
Embedded Systems Design with Texas Instruments MSP432 32-bit Processor
Dung Dang, Daniel J. Pack, and Steven F. Barrett
2016
Fundamentals of Electronics: Book 4 Oscillators and Advanced Electronics Topics
Thomas F. Schubert and Ernest M. Kim
2016
Fundamentals of Electronics: Book 3 Active Filters and Amplifier Frequency
Thomas F. Schubert and Ernest M. Kim
2016
iii
Bad to the Bone: Crafting Electronic Systems with BeagleBone and BeagleBone Black,
Second Edition
Steven F. Barrett and Jason Kridner
2015
Fundamentals of Electronics: Book 2 Amplifiers: Analysis and Design
Thomas F. Schubert and Ernest M. Kim
2015
Fundamentals of Electronics: Book 1 Electronic Devices and Circuit Applications
Thomas F. Schubert and Ernest M. Kim
2015
Applications of Zero-Suppressed Decision Diagrams
Tsutomu Sasao and Jon T. Butler
2014
Modeling Digital Switching Circuits with Linear Algebra
Mitchell A. Thornton
2014
Arduino Microcontroller Processing for Everyone! Third Edition
Steven F. Barrett
2013
Boolean Differential Equations
Bernd Steinbach and Christian Posthoff
2013
Bad to the Bone: Crafting Electronic Systems with BeagleBone and BeagleBone Black
Steven F. Barrett and Jason Kridner
2013
Introduction to Noise-Resilient Computing
S.N. Yanushkevich, S. Kasai, G. Tangim, A.H. Tran, T. Mohamed, and V.P. Shmerko
2013
Atmel AVR Microcontroller Primer: Programming and Interfacing, Second Edition
Steven F. Barrett and Daniel J. Pack
2012
Representation of Multiple-Valued Logic Functions
Radomir S. Stankovic, Jaakko T. Astola, and Claudio Moraga
2012
Arduino Microcontroller: Processing for Everyone! Second Edition
Steven F. Barrett
2012
iv
Advanced Circuit Simulation Using Multisim Workbench
David Báez-López, Félix E. Guerrero-Castro, and Ofelia Delfina Cervantes-Villagómez
2012
Circuit Analysis with Multisim
David Báez-López and Félix E. Guerrero-Castro
2011
Microcontroller Programming and Interfacing Texas Instruments MSP430, Part I
Steven F. Barrett and Daniel J. Pack
2011
Microcontroller Programming and Interfacing Texas Instruments MSP430, Part II
Steven F. Barrett and Daniel J. Pack
2011
Pragmatic Electrical Engineering: Systems and Instruments
William Eccles
2011
Pragmatic Electrical Engineering: Fundamentals
William Eccles
2011
Introduction to Embedded Systems: Using ANSI C and the Arduino Development
Environment
David J. Russell
2010
Arduino Microcontroller: Processing for Everyone! Part II
Steven F. Barrett
2010
Arduino Microcontroller Processing for Everyone! Part I
Steven F. Barrett
2010
Digital System Verification: A Combined Formal Methods and Simulation Framework
Lun Li and Mitchell A. Thornton
2010
Progress in Applications of Boolean Functions
Tsutomu Sasao and Jon T. Butler
2009
Embedded Systems Design with the Atmel AVR Microcontroller: Part II
Steven F. Barrett
2009
v
Embedded Systems Design with the Atmel AVR Microcontroller: Part I
Steven F. Barrett
2009
Embedded Systems Interfacing for Engineers using the Freescale HCS08 Microcontroller
II: Digital and Analog Hardware Interfacing
Douglas H. Summerville
2009
Designing Asynchronous Circuits using NULL Convention Logic (NCL)
Scott C. Smith and JiaDi
2009
Embedded Systems Interfacing for Engineers using the Freescale HCS08 Microcontroller
I: Assembly Language Programming
Douglas H.Summerville
2009
Developing Embedded Software using DaVinci & OMAP Technology
B.I. (Raj) Pawate
2009
Mismatch and Noise in Modern IC Processes
Andrew Marshall
2009
Asynchronous Sequential Machine Design and Analysis: A Comprehensive Development
of the Design and Analysis of Clock-Independent State Machines and Systems
Richard F. Tinder
2009
An Introduction to Logic Circuit Testing
Parag K. Lala
2008
Pragmatic Power
William J. Eccles
2008
Multiple Valued Logic: Concepts and Representations
D. Michael Miller and Mitchell A. Thornton
2007
Finite State Machine Datapath Design, Optimization, and Implementation
Justin Davis and Robert Reese
2007
vi
Atmel AVR Microcontroller Primer: Programming and Interfacing
Steven F. Barrett and Daniel J. Pack
2007
Pragmatic Logic
William J. Eccles
2007
PSpice for Filters and Transmission Lines
Paul Tobin
2007
PSpice for Digital Signal Processing
Paul Tobin
2007
PSpice for Analog Communications Engineering
Paul Tobin
2007
PSpice for Digital Communications Engineering
Paul Tobin
2007
PSpice for Circuit Theory and Electronic Devices
Paul Tobin
2007
Pragmatic Circuits: DC and Time Domain
William J. Eccles
2006
Pragmatic Circuits: Frequency Domain
William J. Eccles
2006
Pragmatic Circuits: Signals and Filters
William J. Eccles
2006
High-Speed Digital System Design
Justin Davis
2006
Introduction to Logic Synthesis using Verilog HDL
Robert B.Reese and Mitchell A.Thornton
2006
vii
Microcontrollers Fundamentals for Engineers and Scientists
Steven F. Barrett and Daniel J. Pack
2006
Copyright © 2019 by Morgan & Claypool
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in
any form or by any means—electronic, mechanical, photocopy, recording, or any other except for brief quotations
in printed reviews, without the prior permission of the publisher.
Microcontroller Programming and Interfacing with Texas Instruments MSP430FR2433
and MSP430FR5994, Second Edition
Steven F. Barrett and Daniel J. Pack
www.morganclaypool.com
ISBN: 9781681736242 paperback
ISBN: 9781681736259 ebook
ISBN: 9781681736273 hardcover
DOI 10.2200/S00936ED2V01Y201907DCS055
A Publication in the Morgan & Claypool Publishers series
SYNTHESIS LECTURES ON DIGITAL CIRCUITS AND SYSTEMS
Lecture #55
Series Editor: Mitchell A. Thornton, Southern Methodist University
Series ISSN
Print 1932-3166 Electronic 1932-3174
Microcontroller Programming
and Interfacing with
Texas Instruments
MSP430FR2433 and
MSP430FR5994 – Part I
Second Edition
Steven F. Barrett
University of Wyoming, Laramie, WY
Daniel J. Pack
University of Tennessee Chattanooga, TN
SYNTHESIS LECTURES ON DIGITAL CIRCUITS AND SYSTEMS #55
M
&C Morgan & cLaypool publishers
ABSTRACT
This book provides a thorough introduction to the Texas Instruments MSP430TM microcon-
troller. The MSP430 is a 16-bit reduced instruction set (RISC) processor that features ultra-low
power consumption and integrated digital and analog hardware. Variants of the MSP430 mi-
crocontroller have been in production since 1993. This provides for a host of MSP430 products
including evaluation boards, compilers, software examples, and documentation. A thorough in-
troduction to the MSP430 line of microcontrollers, programming techniques, and interface con-
cepts are provided along with considerable tutorial information with many illustrated examples.
Each chapter provides laboratory exercises to apply what has been presented in the chapter. The
book is intended for an upper level undergraduate course in microcontrollers or mechatronics
but may also be used as a reference for capstone design projects. Also, practicing engineers al-
ready familiar with another microcontroller, who require a quick tutorial on the microcontroller,
will find this book very useful. This second edition introduces the MSP–EXP430FR5994 and
the MSP430–EXP430FR2433 LaunchPads. Both LaunchPads are equipped with a variety of
peripherals and Ferroelectric Random Access Memory (FRAM). FRAM is a nonvolatile, low-
power memory with functionality similar to flash memory.
KEYWORDS
MSP430 microcontroller, microcontroller interfacing, embedded systems design,
Texas Instruments
xi
To our families
xiii
Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv
1 Introduction to Microcontroller Technology . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Background Theory: A Brief History and Terminology . . . . . . . . . . . . . . . . . . . 2
1.3 Microcontroller Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.4 Why the Texas Instruments MSP430? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.5 Target Microcontroller Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.6 Introduction to the Evaluation Modules (EVM) . . . . . . . . . . . . . . . . . . . . . . . 11
1.7 Development Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1.8 Lab 1: Getting Acquainted with Hardware and Software Development
Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
1.9 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1.10 References and Further Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1.11 Chapter Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2 A Brief Introduction to Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.2 Energia . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.3 Energia Quickstart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.4 Energia Development Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.4.1 Energia IDE Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.4.2 Sketchbook Concept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.4.3 Energia Software, Libraries, and Language References . . . . . . . . . . . 24
2.5 Energia Pin Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.6 Writing an Energia Sketch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.6.1 Control Algorithm for the Mini Round Robot . . . . . . . . . . . . . . . . . . 44
2.7 Some Additional Comments on Energia . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
2.8 Programming in C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
xiv
2.9 Anatomy of a Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
2.9.1 Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
2.9.2 Include Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
2.9.3 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
2.9.4 Port Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
2.9.5 Program Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
2.9.6 Interrupt Handler Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
2.9.7 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
2.9.8 Main Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
2.10 Fundamental Programming Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
2.10.1 Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
2.10.2 Programming Constructs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
2.10.3 Decision Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
2.11 Laboratory Exercise: Getting Acquainted with Energia and C . . . . . . . . . . . . 76
2.12 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
2.13 References and Further Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
2.14 Chapter Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
3 Hardware Organization and Software Programming . . . . . . . . . . . . . . . . . . . . . 81
3.1 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
3.2 MSP430 Hardware Organization/Architecture . . . . . . . . . . . . . . . . . . . . . . . . 82
3.2.1 Chip Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
3.2.2 Hardware Pin Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
3.3 Hardware Subsystems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
3.3.1 Register Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
3.3.2 Port System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
3.3.3 Timer System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
3.3.4 Memory System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
3.3.5 Resets and Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
3.3.6 Communication Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
3.3.7 Analog-to-Digital Converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
3.3.8 Hardware Multiplier (MPY32) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
3.4 CPU Programming Model/Register Descriptions . . . . . . . . . . . . . . . . . . . . . . 90
3.5 Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
3.6 Software Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
3.6.1 MSP430 Assembly Language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
3.6.2 Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
xv
3.6.3 Assembly Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
3.6.4 Instruction Set Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
3.7 Addressing Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
3.7.1 Register Addressing Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
3.7.2 Indexed Addressing Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
3.7.3 Symbolic Addressing Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
3.7.4 Absolute Addressing Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
3.7.5 Indirect Register Addressing Mode . . . . . . . . . . . . . . . . . . . . . . . . . . 121
3.7.6 Indirect Autoincrement Addressing Mode . . . . . . . . . . . . . . . . . . . . 121
3.7.7 Immediate Addressing Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
3.7.8 Programming Constructs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
3.7.9 Orthogonal Instruction Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
3.8 Software Programming Skills . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
3.9 Assembly vs. C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
3.9.1 Our Approach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
3.10 Accessing and Debugging Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
3.11 Laboratory Exercise: Programming the MSP430 in Assembly Language . . . 128
3.11.1 Part 1: Flash an LED via Assembly Language . . . . . . . . . . . . . . . . . 128
3.11.2 Part 2: Illuminate a LED via Assembly Language . . . . . . . . . . . . . . 132
3.11.3 Part 3: Mathematical Operations in Assembly Language . . . . . . . . . 134
3.12 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
3.13 References and Further Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
3.14 Chapter Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
4 MSP430 Operating Parameters and Interfacing . . . . . . . . . . . . . . . . . . . . . . . . 139
4.1 Operating Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
4.1.1 MSP430 3.3 VDC operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
4.1.2 Compatible 3.3 VDC Logic Families . . . . . . . . . . . . . . . . . . . . . . . . 142
4.1.3 Microcontroller Operation at 5.0 VDC . . . . . . . . . . . . . . . . . . . . . . . 142
4.1.4 Interfacing 3.3 VDC Logic Devices with 5.0 VDC Logic Families . 144
4.2 Input Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
4.2.1 Switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
4.2.2 Switch Debouncing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
4.2.3 Keypads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
4.2.4 Sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
4.2.5 Transducer Interface Design (TID) Circuit . . . . . . . . . . . . . . . . . . . . 162
4.2.6 Operational Amplifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
xvi
4.3 Output Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
4.3.1 Light-Emitting Diodes (LEDs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
4.3.2 Seven-Segment LED Displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
4.3.3 Tri-State LED Indicator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
4.3.4 Dot Matrix Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
4.3.5 Liquid Crystal Display (LCD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
4.4 High-Power DC Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
4.4.1 DC Motor Interface, Speed, and Direction Control . . . . . . . . . . . . . 180
4.4.2 DC Solenoid Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
4.4.3 Stepper Motor Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
4.4.4 Optical Isolation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
4.5 Interfacing to Miscellaneous DC Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
4.5.1 Sonalerts, Beepers, and Buzzers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
4.5.2 Vibrating Motor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
4.5.3 DC Fan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
4.5.4 Bilge Pump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
4.6 AC Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
4.7 MSP430FR5994: Educational Booster Pack MkII . . . . . . . . . . . . . . . . . . . . 203
4.8 Grove Starter Kit for LaunchPad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
4.9 Application: Special Effects LED Cube . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
4.9.1 Construction Hints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
4.9.2 LED Cube MSP430 Energia Code . . . . . . . . . . . . . . . . . . . . . . . . . . 211
4.10 Laboratory Exercise: Introduction to the Educational Booster Pack MkII
and the Grove Starter Kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
4.11 Laboratory: Collection and Display of Weather Information . . . . . . . . . . . . 227
4.12 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
4.13 References and Further Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
4.14 Chapter Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
5 Power Management and Clock Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
5.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
5.2 Background Theory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
5.3 Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
5.4 The Power Management Module (PMM) and Supply Voltage Supervisor
(SVS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
5.4.1 Supply Voltage Supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
xvii
5.4.2 PMM Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
5.5 Clock System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
5.6 Battery Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
5.7 Voltage Regulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
5.8 High-Efficiency Charge Pump Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
5.9 Laboratory Exercise: MSP430 Power Systems and Low-Power Mode
Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
5.9.1 Current Measurements in Different Operating Modes . . . . . . . . . . . 251
5.9.2 Operating an MSP430 from a Single Regulated Battery Source . . . 252
5.9.3 Operating an MSP430 from a Single 1.5 VDC Battery . . . . . . . . . . 252
5.10 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
5.11 References and Further Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
5.12 Chapter Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
6 MSP430 Memory System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
6.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
6.2 Basic Memory Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
6.2.1 Memory Buses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
6.2.2 Memory Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
6.2.3 Binary and Hexadecimal Numbering Systems . . . . . . . . . . . . . . . . . . 259
6.2.4 Memory Architectures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
6.2.5 Memory Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
6.2.6 Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
6.2.7 Direct Memory Access (DMA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
6.3 Aside: Memory Operations in C Using Pointers . . . . . . . . . . . . . . . . . . . . . . 264
6.4 Direct Memory Access (DMA) controller . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
6.4.1 DMA System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
6.4.2 DMA Example: Block Transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
6.5 MSP430FR5994: Memory Protection Unit and IP Encapsulation Segment 276
6.6 External Memory: Bulk Storage with an MMC/SD Card . . . . . . . . . . . . . . 277
6.7 Laboratory Exercise: SD Card Operations with the MSP-EXP430FR5994 277
6.8 Laboratory Exercise: MSP-EXP430FR5994 LaunchPad DMA Transfer . . 278
6.9 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
6.10 References and Further Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
6.11 Chapter Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
xviii
Authors’ Biographies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
xix
Preface
Texas Instruments is well known for its analog and digital devices, in particular, Digital Signal
Processing (DSP) chips. Unknown to many, the company quietly developed its microcontroller
division in the early 1990s and started producing a family of controllers aimed mainly for em-
bedded meter applications, which require an extended operating time without intervention for
power companies. It was not until the mid 2000s that the company began serious effort to
present the MSP430 microcontroller family, its flagship microcontroller, to the academic com-
munity and future engineers. Their efforts have been quietly attracting many educators and stu-
dents due to the MSP430’s cost and the suitability of the controller for capstone design projects
requiring microcontrollers. In addition, Texas Instruments offers many compatible analog and
digital devices that can expand the range of the possible embedded applications of the microcon-
troller. Texas Instruments has continually added new innovation to the MSP430 microcontroller
line. The second edition introduces the MSP–EXP430FR5994 and the MSP–EXP430FR2433
LaunchPads. Both LaunchPads are equipped with a variety of peripherals and Ferroelectric Ran-
dom Access Memory (FRAM). FRAM is a nonvolatile, low-power memory with functionality
similar to flash memory.
This book is about the MSP430 microcontroller family. We have three goals in writing
this book. The first is to introduce readers to microcontroller programming. The MSP430 mi-
crocontrollers can be programmed either using assembly language or a high–level programming
language such as C. The second goal of the book is to teach students how computers work. After
all, a microcontroller is a computer within a single integrated circuit (chip). Finally, we present
the microcontroller’s input/output interface capabilities, one of the main reasons for developing
embedded systems with microcontrollers.
Background
This book provides a thorough introduction to the Texas Instruments MSP430 microcontroller.
The MSP430 is a 16-bit reduced instruction set (RISC) processor that features ultra-low power
consumption and integrated digital and analog hardware. Variants of the MSP430 microcon-
troller have been in production since 1993 with a host of MSP430-related products including
evaluation boards, compilers, software examples, and documentation.
This book is intentionally tutorial in nature with many worked examples, illustrations,
and laboratory exercises. An emphasis is placed on real-world applications such as smart home
concepts, mobile robots, an unmanned underwater vehicle, and a DC motor controller to name
a few.
xx PREFACE
Intended Readers
The book is intended for an upper level undergraduate course in microcontrollers or mechatron-
ics but may also be used as a reference for capstone design projects. Also, practicing engineers
who are already familiar with another line of microcontrollers, but require a quick tutorial on
the MSP430 microcontroller, will find this book beneficial.
Approach and Organization
This book provides a thorough introduction to the MSP430 line of microcontrollers, program-
ming techniques, and interface concepts. Each chapter contains a list of objectives, background
tutorial information, and detailed information on the operation of the MSP430 system under
study. Furthermore, each chapter provides laboratory exercises to apply what has been presented
in the chapter and how the concepts are employed in real applications. Each chapter concludes
with a series of homework exercises divided into Fundamental, Advanced, and Challenging
categories. The reader will get the most out of the book by also having the following references
readily available:
• MSP430FR2433 Mixed–Signal Microcontroller, SLASE59B;
• MSP430FR4xx and MSP430FR2xx Family User’s Guide, SLAU445G;
• MSP430FR599x, MSP430FR596x Mixed–Signal Microcontrollers, SLASE54B; and
• MSP430FR58xx, MSP430FR59xx, and MSP430FR6xx Family User’s Guide,
SLAU367O.
This documentation is available for download from the Texas Instruments website [www.
ti.com].
Chapter 1 provides a brief review of microcontroller terminology and a short history fol-
lowed by an overview of the MSP430 microcontroller. The overview surveys systems onboard
the microcontroller and also various MSP430 families. The chapter concludes with an introduc-
tion to the hardware and software development tools that will be used for the remainder of the
book. Our examples employ the MSP–EXP430FR5994 and the MSP430FR2433 LaunchPads,
the Energia rapid prototyping platform, and the Texas Instruments’ Code Composer Studio In-
tegrated Development Environment (IDE). The information provided can be readily adapted
to other MSP430 based experimenter boards.
Chapter 2 provides a brief introduction to programming in C. The chapter contains mul-
tiple examples for a new programmer. It also serves as a good review for seasoned programmers.
Also, software programming tools including Energia, Code Composer Studio IDE, and debug-
ging tools are explored. This chapter was adapted from material originally written for the Texas
Instruments MSP432, a 32-bit processor that has close ties to the 16-bit MSP430.1 Embed-
1 This chapter was adapted with permission from Arduino Microcontroller Processing for Everyone, S. Barrett, 3rd ed., Mor-
gan & Claypool Publishers, San Rafael, CA, 2013.
PREFACE xxi
ded system developers will find a seamless transition between the MSP430 and MSP432 line
of processors.
Chapter 3 introduces the MSP430 hardware architecture, software organization, and pro-
gramming model. The chapter also presents an introduction to the MSP430 orthogonal instruc-
tion set, including its 27 instructions and 9 emulated instructions.
Chapter 4 describes a wide variety of input and output devices and how to properly inter-
face them to the MSP430 microcontroller. We believe it is essential for the embedded system
designer to understand the electrical characteristics of the processor so a proper interface to pe-
ripheral components may be designed. We have included a chapter on these concepts for the
books we have written for the Synthesis Lecture Series. We continue to add material as new
microcontroller peripherals are developed. The chapter begins with a review of the MSP430
electrical operating parameters followed by a discussion of the port system. The chapter in-
cludes a description of a wide variety of input device concepts including switches, interfacing,
debouncing, and sensors. Output device concepts are then discussed including light-emitting
diodes (LEDs), tri–state LED indicators, liquid crystal displays (LCDs), high-power DC and
AC devices, motors, and annunciator devices.
Chapter 5 provides an in–depth discussion of the MSP430 power management system.
The power management system provides for ultra-low power operation and practices.
Chapter 6 is dedicated to the different memory components onboard the MSP430 in-
cluding the new FRAM nonvolatile memory, RAM, EEPROM and the associated memory
controllers. The Direct Memory Access (DMA) controller is also discussed.
Chapter 6.11 discusses the clock and timer systems aboard the MSP430. The chapter be-
gins with a detailed discussion of the flexible clock system, followed by a discussion of the timer
system architecture. The timer architecture discussion includes the Watchdog timers, timers A
and B, real-time clocks, and pulse width modulation (PWM).
Chapter 6.11 provides an introduction to the concepts of resets and interrupts. The various
interrupt systems associated with the MSP430 are discussed, followed by detailed instructions
on how to properly configure and program them.
Chapter 6.11 discusses the analog systems aboard the MSP430. The chapter discusses
the analog–to–digital converters (ADCs), the digital–to–analog converters (DACs), and the
comparators.
Chapter 6.11 is designed for a detailed review of the complement of serial communication
systems resident onboard the MSP430, including the universal asynchronous receiver transmit-
ter (UART), the serial peripheral interface (SPI), the I2C system, the radio frequency (RF) link,
USB, and the IrDA infrared link. The systems are contained within the MSP430 universal serial
communication interfaces eUSCI_A and eUSCI_B subsystems.
Chapter 6.11 provides a detailed introduction to the data integrity features aboard the
MSP430 including a discussion of noise and its sources and suppression, an Advanced En-
cryption Standard (AES) 256 accelerator module, and a 16- or 32-bit cyclic redundancy check
xxii PREFACE
(CRC) engine. This chapter was adapted from material originally written for the Texas Instru-
ments MSP432, a 32-bit processor that has close ties to the 16-bit MSP430.2 Embedded system
developers will find a seamless transition between the MSP430 and MSP432 line of processors.
Chapter 6.11 discusses the system design process followed by system level examples. We
view the microcontroller as the key component within the larger host system. It is essential the
embedded system designer has development, design, and project management skills to success-
fully complete a project. This chapter provides an introduction some of the skills used for project
development. We have included a chapter on these concepts for the books we have written for
the Synthesis Lecture Series. The examples have been carefully chosen to employ a wide variety
of MSP430 systems discussed throughout the book.
Table 1 provides a summary of chapter contents and related MSP430 subsystems.
Steven F. Barrett and Daniel J. Pack
July 2019
2 Embedded Systems Design with the Texas Instruments MSP432 32-bit Processor, Dung Dang, Daniel J. Pack, and Steven
F. Barrett, Morgan & Claypool Publishers, San Rafael, CA, 2017.
PREFACE xxiii
Table 1: MSP-EXP430FR5994 and the MSP-EXP430FR2433 LaunchPad subsystems.
Chapter MSP- EXP430FR2433 MSP-EXP430FR5994
Ch. 1: Introduction
Ch. 2: Programming MSP430 port system MSP430 port system
Ch. 3: HW and SW Joint Test Action Group ( JTAG) Joint Test Action Group ( JTAG)
serial debug port, Enhanced serial debug port, Enhanced
Emulation Module (EEM) onboard Emulation Module (EEM) on-
debug tool, serial Spy-Bi-Wire board debug tool, serial Spy-Bi-
(SBY) JTAG Wire (SBY) JTAG
Ch. 4: Interfacing MSP430 port system MSP430 port system
Ch. 5: Power Mgt Power Mgt Module Power Mgt: LDO, SVS,
Brownout
Ch. 6: Memory FRAM: 15KB + 512B FRAM: 256KB
RAM: 4KB RAM: 4 KB + 4 KB
DMA Controller
Memory Protection Unit (MPU)
IP Encapsulation Segment (IPE)
Ch. 7: Timer Systems Clock system (CS), LFXT Clock system (CS),
- Clock Timer_A3(2), Timer_A2(2) TB0: Timer_B, TA0: Timer_A,
- Timers Watchdog, Real-Time Clock TA1: Timer_A, TA4: Timer_A,
Watchdog, Real-Time Clock
Ch. 8: Resets and Interrupts
Ch. 9: Analog Peripherals ADC: 8 ch, SE, 10-bit, 200 ksps Comp_E: 16 ch, Ref_A
ADC 12_B: 16 ch SE/8 DE, 12-bit
Ch. 10: Comm Sys eUSCI_A(2) eUSCI_A(4) (A0 to A3)
- UART, IrDA, SPI - UART, IrDA, SPI
eUSCI_B0 eUSCI_B(4) (B0 to B3)
- SPI, I2C - SPI, I2C
Ch. 11: System Integrity CRC16: 16-bit cyclic redun- CRC16: CRC-16-CCITT
dancy check CRC32: CRC-32-ISO-3309
AES 256: security encryption/
decryption
Ch. 12: System Design
xxv
Acknowledgments
There have been many people involved in the conception and production of this book. We es-
pecially want to thank Doug Phillips, Mark Easley, and Franklin Cooper of Texas Instruments.
The future of Texas Instruments is bright with such helpful, dedicated engineering and staff
members. In 2005, Joel Claypool of Morgan & Claypool Publishers, invited us to write a book
on microcontrollers for his new series titled “Synthesis Lectures on Digital Circuits and Sys-
tems.” The result was the book Microcontrollers Fundamentals for Engineers and Scientists. Since
then we have been regular contributors to the series. Our goal has been to provide the fun-
damental concepts common to all microcontrollers and then apply the concepts to the specific
microcontroller under discussion. We believe that once you have mastered these fundamental
concepts, they are easily transportable to different processors. As with many other projects, he
has provided his publishing expertise to convert our final draft into a finished product. We thank
him for his support on this project and many others. He has provided many novice writers the
opportunity to become published authors. His vision and expertise in the publishing world made
this book possible. We thank Sara Kreisman of Rambling Rose Press, Inc. for her editorial ex-
pertise. We also thank Dr. C.L. Tondo of T&T TechWorks, Inc. and his staff for working their
magic to convert our final draft into a beautiful book. Finally, we thank our families who have
provided their ongoing support and understanding while we worked on books over the past
fifteen plus years.
Steven F. Barrett and Daniel J. Pack
July 2019
1
CHAPTER 1
Introduction to
Microcontroller Technology
Objectives: After reading this chapter, the reader should be able to:
• describe the key technological accomplishments leading to the development of the micro-
controller;
• define microprocessor, microcontroller, and microcomputer;
• identify examples of microcontroller applications in daily life;
• list key attributes of the MSP430 microcontroller;
• describe different features that differentiate MSP430 microcontroller family members;
• list the subsystems onboard the MSP430FR2433 and the MSP430FR5994 microcon-
trollers;
• provide an example application for each subsystem onboard the MSP430 microcontrollers;
• describe the hardware, software, and emulation tools available for the MSP430 microcon-
trollers; and
• employ the development tools to load and execute simple programs on the MSP-
EXP430FR2433 and the MSP-EXP430FR5994 evaluation boards.
In every chapter, we start with a motivation and background followed by a section on the-
ory. After the theory section, an example application is used to demonstrate the operational use
of chapter concepts. Each chapter includes a hands-on laboratory exercise and a list of chapter
references, which you can use to explore further areas of interest. Each chapter concludes with
a series of practice exercises, divided into Fundamental, Advanced, and Challenging levels.
1.1 MOTIVATION
This book is about microcontrollers! A microcontroller is a self-contained processor system in a
single integrated circuit (IC or chip) that contains essential functional units of a general-purpose
computer such as a central processing unit (CPU), a memory, and input/output (I/O) units.
Another Random Scribd Document
with Unrelated Content
Jo hämärsi aukkoa. Niin oli aina, kun pilvi sattui vetäymään sen
taivaanpilkun ohitse, joka reiästä näkyi.
— Ilkka, Ilkan Jaakko! huusi hillitty ääni ikääskuin korkeudesta.
Vanki kuunteli. Hän ei voinut käsittää mitä se oli.
— Ilkka! Jaakko! kuului taasen alaspäin syvään luolaan. Olemme
täällä sinua auttaaksemme.
Hän katsoi ylös, mutt’ei nähnyt mitään, sillä aukko oli yhä vielä
pimennossa.
— Kuka? Missä? vastasi hän kuitenkin liikutuksesta tärähtelevällä
äänellä.
— Palainen ja muita ystäviä. Olemme täällä ylhäällä reiässä.
Katso tänne!
Aukko selkeni jälleen, ja vanki näki toisen puolen ihmisen-päätä
kuvastuvan pimeänä varjona taivasta vasten.
— Tule tänne muurille, kuului taasen ylhäältä. Me väännämme
syrjään rikkinäisen ristikon ja päästämme alas sinulle köyden.
Ilkka ymmärsi yhdestä sanasta. Heikko ristikko hellitti helposti,
köydenpää laskettiin alas, ja hetkisen mentyä olivat ulkona-olijat
laahanneet hänet ylös aukolle, josta hänen vaikka tosin suurin
vaivoin, onnistui tunkeutua ulos.
Ilta oli pimeä, mutta Ilkan silmälle, joka oli tottunut vankiluolan
pimeyteen, oli se selvä kuin kesä-illan hämy. Vielä pää ja rinta vain
ulkopuolella aukkoa, jonka ruosteiset ristikkoraudat lytistivät hänen
kupeitaan, suunnatti hän silmänsä, mielihyvästä väristen, yli
vainioiden, metsien, meren ja ihmisasunnoista ulos iltahan
säteilevien tulien. Hän hengähti syvään, tuntiessaan raittiin ilman
täyttävän hänen jäseniään uudella voimalla.
— Pois, pois pian täältä! kuiskasi hän tuskin kuulten.
Pian oli molempain miesten onnistunut auttaa hänet kokonaan
ulos, köysi ja tikapuut toimitettiin alas ja pantiin veneesen, tuossa
tuokiossa olivat kaikki vesillä, ja veneen veivät pois sukkelat airot.
Eikä kukaan ollut tätä rohkeaa vehkeitä huomannut.
Mutta pakolaisten astuessa maalle Ison-Heikkilän rannalla, mumisi
Jaakko Ilkka hampaanvälistä:
— Maltappa sinä, Klaus Fleming. Kerran saat tuta Ilkan Jaakon
koston.
Seuraavana aamuna he jo olivat muun markkinaväen kanssa
lähteneet kaupungista, matkalla Pohjanmaalle ollen.
KLAUS FLEMING.
Syksy oli edennyt. Oltiin joulukuun alussa. Turun linnassa oli elämää,
liikettä. Sotaväkeä tuli päivä toisensa perään eri osista maata. Kohta
oli suurin osa Flemingin sotajoukkoja kokoontunut tänne, sillä
marskin piti uuden vuoden alussa lähteä matkalle Käkisalmeen,
vihdoinkin Täyssinän rauhan-määräysten mukaan jättämään tätä
linnaa ja sen alaista lääniä Venäjälle. Sotaväki oli majoitettuna
kaupunkiin, mutta ylempi päällikkökunta asuskeli linnassa.
Sitä paitse oli Flemingillä toinenkin syy pitää sotaväkeä ko’ossa.
Ei, näet, ollut vaikea aavistaa että ilmeinen sota pian oli syttyvä
hänen ja Kaarlo herttuan kesken. Tätä tarkoitusta varten oli Fleming
Pikkalan kartanolla, jossa hän tavallisesti oleskeli Uudellamaalla
käydessään, rakennuttanut monta uutta laivaa, jotka nyt täydelleen
miehitettyinä ja sotaväellä varustettuina makasivat Turussa, kevään
puoleen purjehtiakseen Ruotsiin, johon myöskin kuninkaan piti
samaan aikaan saapuman Puolasta.
Linnan salissa ja huoneuksissa kajahteli iloisia ääniä. Tulossa
olevan joulun tähden olivat myöskin sotaväessä palvelevien
aatelismiesten perheet kokoontuneet linnaan, viettääksensä juhlaa
yhdessä omaistensa kanssa. Etevin sija vaimojen parissa oli tietysti
Flemingin puolisolla, Ebba Stenboekilla, ja heidän molemmilla
nuorilla tyttärillään, niinkuin heidän poikansakin,
kaksikymmenvuotias Johana Fleming, oli etevin nuorten miesten
joukossa ja kaikkein naisten suosikki.
Oli Lucia-ilta. Nuoriso huvitteli tanssimalla ja leikkimällä linnan
suuressa salissa. Päivällisateria oli vasta päätetty, ja kaikki olivat
hyvällä tuulella tuon erinomaisen Espanjan viinin vaikutuksesta, jota
täynnään lasit ja pikarit yhtä mittaa olivat ja jonka kartemummat,
inkiväärit, kanelit ja muut höysteet olivat tehneet vieläkin
elähyttävämmäksi. Mieli-alaa oli aterian kestäessä ylentänyt soitto ja
laulu, jota viimemainittua toimitti kaupungin katedraalikoulun pojat,
jotka vanhan tavan mukaan maisterinsa johdolla olivat kunnioittaneet
linnan mahtavaa herrasväkeä laululla, saadakseen vaivastaan hyvää
ruokaa ja juomaa ja vähän joulurahoja.
Salin yläpäässä istuivat korkeissa selkätuoleissa rouvat, iloisesti
jutellen, ja silkkityynyillä peitetyillä penkeillä salin syvissä
ikkunanloukoissa istuvat nuoret neitoset, levähtäen tanssista,
hymyilevinä, lämpösinä. Alemmalle ovensuuhun olivat nuoret
aatelismiehet sijoittuneet suuren pöydän ympärille, nauttien
mielihyvällä tuota punaista, kovasti höystettyä klaretiviiniä, jota
hovipojat raskaista hopeakannuista kaasivat heidän tinapikareihinsa.
Vähän taampana toisista istuivat Johana Fleming ja Niilo
Iivarinpoika.
Sinulla on pitkä matka tehtävänä, Niilo, sanoi Johana, eikä sinulle
liioin vallan hauskaksi käyne tuolla kaukana villissä erämaassa.
Toista olisi jäädä tänne, eikös niin? Mutta unhotan aivan että sulia on
morsian, joka sinua odottaa.
Niilon kasvot synkistyivät.
— Sinä olet oikeassa, hän lausui. Minulla on morsian, mutta
tuskinpa tiedän milliseltä hän näyttää. Kun neljäntoista-vuotiaana
poikasena lähdin sukulaiseni, Götrik Fincken, talosta pois sotaan
Venäjälle, olimme hyvin hyvät ystävät, pienoinen Ebba ja minä, ja
hänen isänsä tahtoi että tekisimme uskollisuuden lupauksen, jonka
mielelläni teinkin. Se oli lapsellista, ja Jumala tiesi mitä siitä tullee.
— Olet kai iskenyt silmäsi johonkin toiseen ihanaan neitsyeesen,
sanoi
Johana nauraen.
— En, sitä en ole, vastasi Niilo vakavasti.
— Et edes kauniisen Gretcheniin?
Niilo punastui.
— Hän on pelastanut henkeni, ja minä rakastan häntä kuin
sisartani, hän sanoi. Tiedätkös mitä, näin hänet markkinoilla täällä
Turussa, mutta jälleen katosi hän näkyvistäni, vaikka etsin häntä
monta päivää.
— Näitkö hänen todellakin?
— Näin, hän se oli ihan varmaan.
Nyt astui Klaus Fleming sisään salihin.
— No, sanoi hän, taputtaen ystävällisesti poikaansa ja Niiloa
olkapäälle, joko olette väsyneet tanssiin? Ettekö näe miten neitoset
istuvat, heittäen ikävöiviä silmiä tännepäin? Nyt iloiseen
joulutanssiin, niin että kaikki pääsemme mukaan, nuoret ja vanhat,
muinaisen, hyvän tavan kunniaksi. Pankaa piiparit soittamaan.
Johana sanoi soittomiehille ja riensi lähihuoneisin kutsumaan
sisään lasia kilisteleviä sotilaita. Pian olivat kaikki järjestyneet
kahteen riviin, naiset toiselle puolelle ja herrat toiselle. Klaus
Flemingin esimerkkiä noudattaen asettuivat sotapäälliköt Arvid
Stålarm, Aksel Kurki ja Antero Boije myöskin riviin, ja vastapäätä
heitä istuivat heidän puolisonsa, rouva Ebba Fleming etupäässä.
Siitä alkoi karkelo. Soittomiehet panivat parastansa huiluilla,
korneteilla ja rummuilla, ja tanssijat lauloivat, naiset ja miehet
vuorostaan:
Täss’ tulee ylpeät nunnat,
Herra domine! [Herra]
Laaksost’ vihreästä,
Cito, cito, citissime, herra domine!
[Sukkelasti, sukkelasti, oikein sukkelasti!]
Mitä tahtoo ylpeät nunnat?
Herra domine!
Laaksost’ vihreästä,
Cito, cito, citissime, herra domine!
He tahtoo nähdä piispaa,
Herra domine! j.n.e.
Piispa on nyt poissa,
Herra domine!
Missä hän sitten lienee?
Herra domine!
Hän on kirjoittamassa,
Herra domine.
Mitä hän kirjoittaapi?
Herra domine!
Laulu, joka tähän asti oli käynyt verkalleen, kiihtyi nyt, kun herrat
vastasivat:
Ja kirjoituksess’ sanotaan,
Herra domine!
Että tyttö poi’alle annetaan,
Cito, cito, citissime, herra domine!
Tämän kestäessä yhtyivät molemmat rivit, jotka edellisiä säkeitä
laulaessaan olivat milloin lähestyneet toisiaan, milloin poistuneet
erillensä, ja itsekukin otti naisensa ja pyörähytti ympäri mitä
raisumpaa vauhtia. Yleisen ilon ja riemun vallitessa päättyi karkelo,
ja herrat veivät naiset heidän paikoilleen.
Eräs hovipoika astui sisään ja ojensi marskille kirjeen.
Sananlennättäjä Aabraham Melkiorinpojalta Pohjanmaalla oli sen
tuonut, sanoi hän. Fleming otti kirjeen, lähtien huoneesensa.
Hetkisen kuluttua kutsutti hän luokseen Stålarmin, Kurjen ja Boijen,
Yleinen alakuloisuus levisi salissa, ja Ebba rouva sanoi:
— On jo myöhänen. Käykäämme levolle.
Hän nousi ylös ja kävi toisten rouvien kanssa ja nuorten tyttöjen
seuraamana verkalleen salin poikki naisten asuinkertaan,
ystävällisesti nyykyttäen päätänsä säädyllisesti kumarteleville
nuorille miehille. Nämäkin vetäysivät pois huoneisiinsa; ainoastaan
Johana ja Niilo jäivät paikalle, kävellen edes takaisin suuressa,
tyhjässä salissa.
— En tiedä mistä se tulee, sanoi Johana, mutta tunnenpa aina niin
kummallisesti rintaani ahdistavan tässä linnassa. En nytkään ole
voinut olla oikein iloinen. Kaikki tuntuu minusta niin synkältä täällä.
Ompa ikääskuin kaikkialla, näkisin onnettoman Eerikki kuninkaan
suruiset kasvot. Ei mikään siunaus enää hoimi näitä muureja, joiden
sisällä veli on pitänyt veljeä vankina. Katsos, Niilo, jatkoi hän,
seisahtuen erään paikan kohdalle kudotussa tapetissa, jota
valaisivat vahakynttilät pöydältä. Katsos, Akilleus, joka laahaa
Hektorin kuollutta ruumista hiekassa, oikein harmittavasti vivahtaa
kuningas Johana-vainajaan.
Tapetissa kuvattiin Troijan piiritystä, ja tuo kreikkalainen uros oli
todellakin, — ehkä pelkästä sattumuksesta tarkkapa kenties siitä että
taiteilija oli tahtonut mielistellä Johana herttuata, jonka häitä varten
aikoinaan linnaa oli somistettu, silminnähtävästi tullut tämän
näköiseksi. Johana Fleming tarttui kynttilään ja seurasi tapetin
vaihtelevia näyttökoristuksia. Kaikkialla, missä Akilleus oli kuvattuna,
oli sama yhdennäköisyys.
— Niin, se on todellakin hänen näköisensä, myönsi Niilo.
— Ompa kuitenkin hirmuista, kun veli väijyy veljensä henkeä,
jatkoi Johana Fleming. Minusta tuntuu ikääskuin Kaikkivaltiaan kosto
olisi painava Johana kuninkaan huonekuntaa ja meitä veljenmurhan
tähden.
— Heitä pois nuo suruiset ajatuksesi. Ne tulevat ainoastaan siitä,
että kaipaat Puolan loistavaa hovia ja sen hurmaavia huvituksia.
Minäkin tuota, hieman tunnen ja tiedän että se on jotakin aivan toista
kuin tämä siivo, hiljainen elämä täällä Suomen raskaan taivaan alla,
joka tekee mielen sairaaksi ja alakuloiseksi, lausui Niilo leikillisesti.
— Ei, ei, sitä se ei ole. Tämä masentava tunne minut aina, valtaa,
joka kerta kun ratsastan linnan vipusillan yli ja saavun sen muurien
sisäpuolelle. Mutta ei koskaan ole se ollut niin valtaava kuin nyt. Heti
tultuani linnanpihaan, oli minulla ilkeä yhtymys. Se oli tuo vanha
Filippus Kern, hän, joka Johana kuninkaan käskystä valmisti myrkyn
kuningas Eerikille. Minua on aina vastustamattomasti inhoittanut tuo
mies käyrine selkineen ja paljaine päälakineen, mutta tällä kertaa
kävi kylmä väristys koko ruumiine läpi, kohdatessani hänet. Tämä
yhtymys ei tiedä mitään hyvää.
He kuulivat askeleita takanansa. Kääntäessään päätä huomasivat
he nuoren miehen, puettuna ylioppilasten tapaan täysimustiin
vaatteisin, kasvot kalpeina, hieman kivulloisina. Hän tervehti, käyden
salin poikki Flemingin huoneesen.
— Kuka oli tuo? kysyi Niilo.
— Eräs ylioppilas, Daaniel Hjort, isäni kirjuri.
— On kuin olisin nähnyt hänen tanssin kestäessä seisovan
ikkunan vieressä, lakkaamatta tähystellen Siigrid Stålarmia.
— Niin, varmaankin hän se oli. Hän siis oli täällä sisässä.
Täll'aikaa pohdittiin tärkeitä asioita Klaus Flemingin työhuoneessa.
Aabraham Melkiorinpojan kirje ilmoitti että Pohjanmaan talonpojat
olivat nousseet kapinaan. He olivat ryöstäneet Isonkyrön
nimismiehen talon ja olisivat polttaneet sen poroksi, ell'eivät olisi
peljänneet valkean leviävän kylän toistinkin taloihin, — kirjoitti
Aabraham. Eräästä toisesta talosta he olivat lyöneet rikki kaikki
lasiruudut, sahanneet poikki kattoparrut kolmesta paikasta, jotta
nämä putoaisivat kotiin-palaavien asukasten päälle, rutistaen heidät
murskaksi, sekä hakanneet elukoilta päät poikki, asettaen ne sitten
kidat ammoillaan ikkunoihin, ikääskuin ivaksi ja pilkaksi. Sitten olivat
hoe polttaneet lainlukijan talon Mustasaarella. Niihin sotamiehiin,
jotka joutuivat elävinä talonpoikain käsiin, ampuivat nämä nuolilla
pilkkaan taikka pistivät heidät alas avantoon jään alle. Lisäksi kirjoitti
Aabraham Melkiorinpoika että hänen oli onnistunut kukistaa kapina,
muistuttamallaan talonpoikia heidän väki väkivallan-töittensä
seurauksista ja lupaamallaan heille kuninkaan nimessä vapautta
linnaleiristä ja varmaa turvallisuutta sotamiesten vääryyksiä ja
väkivaltaa vastaan, — lupaus, jossa ei kuitenkaan ole pakko pysyä,
kirjoitti hän.
— Kas sitä vain, sanoi Fleming, rypistäen kulmakarvojaan,
Pohjanmaan talonpojat tahtovat, näen mä, nousta maan herroiksi.
Mutta minä kyllä laimennan heidän halunsa. Huomenna lähdemme
kurittamaan kähäkkämiehiä.
Flemingin luona oli tällä haavaa Tukholmassa sijaitsevan
hallituksen asiamies, Olavi Sverkerinpoika. Tämän piti seuraaman
marskia Käkisalmeen, jonka linna oli luovutettava Venäjälle. Heti
Turkuun tultuansa osoittihe hän Flemingin hartaana ystävänä,
lausuen ankaria sanoja herttuan yrityksistä. Hän varoitti nyt
Flemingiä lähtemästä Pohjanmaalle.
— Minun mielestäni ei ole viisasta, hän sanoi, saattaa
kapinoitsijoita luulemaan että heidän yrityksensä meitä peljättää. Se
vain rohkaisisi heidän ja heikäläistensä mieltä ja luottamusta
itseensä. Toista olisi, jos ei kapina olisi asettunut; silloin täytyisi
käydä kovin kourin kiinni asiaan. Mutta nythän kirjoittaa Aabraham
Melkiorinpoika että kaikki on hiljaista jälleen. Sittenkin on parempi
ilman suurempaa nielua vangita pahimmat metelöitsijät kuin kuljettaa
heitä vastaan kokonaista armeijaa ikääskuin mahtavaa vihollista
vastaan, jota peljätään.
— Tässä ei kelpaa mikään hentous, sanoi Fleming. Kapinoitsijain
täytyy heti alusta saada tuntea rankaisevan käden kovaa iskua. Jos
en nyt rankaisisi, niin se juuri saisi heidät luulemaan minussa pelkoa
ja heikkoutta. Minä en pelkää kapinoitsevia moukkaparvia. Mutta me
tarvitsemme kuninkaan väkeä muuhun kuin taisteluun omia
talonpoikia vastaan, ja siihen saamme me ryhtyä, jos ei
kapinanhenkeä tukehuteta heti alussa.
— Mutta aivan saman voittaa kovasti rankaisemalla kapinan
johtajat. Se peljättää, se rauhoittaa mielet. Sotaväellä syökseminen
nyt jo levottomaan maanosaan vain ärsyttäisi talonpoikia vieläkin
enemmän. Jokainen vakka jyviä, joka otettaisiin talonpojalta
sotamiesten ravinnoksi, jokainen tyhjä lato, jonka sotaväki pistäisi
tuleen, jokainen talonpoika, joka saisi sivalluksen ruoskasta
uppiniskaisuuden tähden, antaisi heti uutta vauhtia talonpoikain
vihamielisyydelle, levittäen kapinanhenkeä yhä laajemmalle.
Nyt astui sisään Daaniel Hjort, ilmoittaen että hänen korkea-
arvoisuutensa piispa oli ulkona pyytäen puhutella marskia. Marski
käski Daanielin päästää hänen korkea-arvoisuutensa sisään.
— Lienee kai taas jotain rettelöä mustanuttujen kanssa, arvaan
mä, sanoi Fleming, ikääskuin nyt ei olisi muuta ajattelemista kuin
heidän ikuisia kiusojaan. Menkööt helvettiin riitoineen! Minä heitän
heidät hiiteen. Minkä, jupakan hän herättikin noiden Pohjolaisten
pappien tähden, jotka sotamiehet viskasivat kirkonmuurin yli. Lähetti
kaksi pappia niskoilleni Suitiaan asti. Ikääskuin minä voisin estää
sotaväkeä huvittelemasta.
Hän nauroi ja muut hänen kanssansa, mutta piispan ilmestyminen
teki lopun leikistä. Oli tullut tunnetuksi kaupungissa, kuinka
sanansaattaja oli saapunut Pohjanmaalta ilmoittaen että kapina oli
noussut talonpojissa; ja Ericus Erici, joka arvasi että Fleming olisi
kukistava kapinan kovalla kädellä, kiirehti linnaan kehoittamaan
häntä sääliväisyyteen ja lempeyteen.
Herra valtiomarski, alkoi hän, tavanmukaisesti tervehdittyänsä,
tulen tänne puhutellakseni Teitä talonpoika-raukoista Pohjanmaalla.
— Kapinoitsijoista, kai tarkoitatte, herra piispa? keskeytti hänet
Fleming ivallisesti.
— Niin. Niistä myöskin, vastasi Ericus Erici levollisesti. Mutta
etupäässä muista. Kapinoitsijoita vastaan täytyy antaa lain mennä
menoansa, sen kyllä ensimäisenä tunnustan. Mutta laki ei saa olla
sokea, yhtä vähän kuin oikeuskaan, niin ettei viaton tule kärsimään
yhtä kovasti kuin vikapää. Olen äskettäin ollut tarkastusmatkalla
Pohjanmaalla. Siellä on. Jumala auttakoon ihmis-parkojä, surkea tila.
Pitkällinen märkä syksyllä hävitti kaiken kasvun, niin ett’ei talonpoika
saanut mitään latoihinsa ja riihiinsä; puute ja kallis aika on kyllä,
kuten tiedätten, kaikkialla maassa, mutta siellä näkevät ihmiset
nälkää ja syövät pettua. Elukat kuolevat tarhoissansa ruttoon ja
ravinnon puutteesen. Älkää herra valtiomarski, kartuttako näitä
kärsimyksiä liiallisella ankaruudella.
— Me elämme kovia aikoja, herra piispa, vastasi Fleming.
Laittomuus ja kapinallisuus yltyvät alhaisissa ja ylhäisissä. Mihin
tästä tullaan? Herttua tahtoo riistää valtakunnan lailliselta
kuninkaaltansa, jolle kaikki olemme vannoneet uskollisuutta. Nyt
tulevat talonpojat ja lyövät kuoliaaksi kuninkaan sotamiehiä ja
polttavat taloja kuin vihollis-maassa. Mitä pitää minun tehdä! Pitääkö
mun istua katsomassa kuinka väkeäni tapetaan?
— Kenties ovat teidän sotamiehenne itse väkivaltaisen
menettelynsä kautta antaneet aihetta melskeesen. Usein on kuultu
valituksia heistä, kuten paraiten tiedätten, herra marski, sanoi piispa,
olematta millänsäkään Flemingin tuimasta katsannosta.
— Jumal'avita, te pidätte rohkeaa suuta, piispa, huusi Fleming
vihastuen. Tuletteko tänne minua nuhtelemaan? Milloinka ei
talonpojat valita? Saako heitä koskaan hyvällä avaamaan aittansa ja
luvansa täyttääkseen velvollisuutensa? Miten luulette Te minun
voivani elättää sotaväkeä, jos talonpojat saisivat pitää ruoan lukon
takana? Minä en voi ravita väkeäni lörpötyksillä, niinkuin Te ravitsette
karjaanne.
— Onko sitten tarpeellista pitää niin paljon sotaväkeä ko’ossa näin
kovana kato-aikana, vaikka valtakunnalla nyt on rauha, jatkoi piispa
tyynesti.
— Niin, olemme saaneet rauhan valtakunnan vihollisten kanssa.
Mutta pahin vihollinen on vielä kurittamatta, ja paljon enemmän on
kaupalla kuin muutamain uppiniskaisten talonpoikain aitat. Minä olen
kuninkaalta saanut vallan tässä maassa, suojellakseni hänen
kruunuansa ja hänen oikeuttansa. Tie, jota minun tulee kulkea, oli
selvä. Ja sitä tehdessäni en säästä itseäni enkä liioin muita.
Kuningas on saanut valani että minä olen säilyttävä valtakunnan
hänelle. En ole tottunut vaihtamaan valaa niinkuin mustalainen enkä
liioin kärsi että muut sitä tekevät. Ettekö, luule, piispa, minun tietävän
ja tuntevan mistä Pohjanmaan talonpoikien yritys on saanut alkunsa.
Herttua se on joka tämän kaiken takana piilee. Mutta vielä hän saa
nähdä ettei Suitian Klauksen kanssa ole leikintekoa, ja jos hän
lähettää talonpojat minua vastaan, niin lähetän minä hänelle heidän
päänsä vastalahjaksi. Jos hänen viekkautensa ja uskottomuutensa
on suuri, niin on sen sijaan minun käteni kyllin voimakas murtamaan
hänet maahan, sen pituinen se! Onko teillä vielä mitään sanomista?
— Ei mitään muuta, herra marski, kuin että voimakastakin hallitsee
Jumala, ja hän on sorrettujen auttaja. Jätän Teidät, herra marski, ja
teidät, hyvät herrat, hänen haltuunsa ja suojaansa.
Piispan tyyni, kunnioitettava ryhti vaikutti vastustamatta läsnä-
olijoihin, ja hänen mentyänsä huomautti Stålarmkin että kenties oli
parasta olla liioittelematta kapinavehkeen vaarallisuutta. Muutkin kun
sitten liittyivät tähän ajatukseen, päätti Fleming olla vielä mihinkään
ryhtymättä ja ensin odottaa enempiä tietoja Aabraham
Melkiorinpojalta. Flemingin jäätyä yksikseen, tuli hänen puolisonsa
sisään hänen luoksensa.
— Olet saanut huonoja uutisia, sanoi Ebba rouva, laskien kätensä
hänen olkapäälleen, hänen siinä mietiskellen istuessaan paikallansa
pöydän edessä.
— Niin olen, talonpojat Pohjanmaalla ovat nousseet kapinaan.
Tiedän sen jo, sanoi Ebba rouva. Ole lempeä ihmis-parkoja
kohtaan äläkä rankaise kovemmin kuin tarpeellista on. He ovat
saaneet kärsiä kylliksi muutenkin.
— Ankara täytyy mun olla, muuten voi kaikki olla hukassa, vastasi
Fleming, tarttuen hänen käteensä ja silitellen sitä.
— Mutta lupaathan säästää minkä mahdollista? Minun tähteni!
— Niin, sinun tähtesi, Ebba, tahdon sen tehdä.
— Minä, kiitän sinua!
Hän piti molemmin käsin puolisoansa päästä, suudellen hellästi
harmahtavia hiuksia. — — —
Olavi Sverkerinpoika käveli pitkin askelin edes takaisin
huoneessansa.
— Hyvin käy, sanoi hän itsekseen. Talonpojat saavat aikaa
kokoontumaan, kapina leviää ja Fleming saa kovan pavun
purtavakseen.
Hän istui pöytään ja kirjoitti pitkän kirjeen herttualle, jossa hän
antoi tälle tiedon talonpoikain kapinasta sekä Flemingille
antamistaan neuvoista. Ilkeästi hymyillen luki hän kerta vielä
kirjeensä, pani sen sitten sinettiin ja lähti menemään siihen
tornikamariin, jossa asui apteekkari Filippus Kern.
Niilo vänrikistä tuntui tukehuttavalta sisässä. Vastaisen matkan
ajatus valtasi hänen mielensä ja vaikutti jonkunmoista levottomuutta
hänen hermoissaan. Hän heitti ylleen viittansa ja meni alas
kävelemään valleille. Hänen astuessaan kiertorappusia alaspäin ja
käydessään Filippus Kernin oven ohitse, aukeni tämä samassa.
Huoneen avonaisesta takasta leimusi kirkas valkea, ja tämän valo
täytti huoneen ja virtasi ulos käytävään, valaisten terävästi sisään-
astujaa, jonka kanssa Niilo joutui silmä silmää vasten avatussa
ovessa, samalla kun vanha apteekkari syvään kumartaen seisoi
kynnyksen edessä. Niilo näki Olavi Sverkerinpojan pitävän
kädessään kirjettä, jota hän äkkiä koki kätkeä selkänsä taakse.
Tämä liike vaikutti ehdottoman kummastuksen ilmauksen Niilon
kasvoissa, mikä seikka puolestaan ei jäänyt huomaamatta Olavi
Sverkerinpojalta, joka vastalahjaksi iski häneen ilkeän vihan
silmäyksen. Samassa suljettiin ovi, ja Niilo oli yksinään pimeissä
kiertorappusissa.
Mitä oli Olavi Sverkerinpojalla näin myöhään tekemistä Filippus
Kernin kamarissa? Ja mitä tiesi kirje, jota hän niin huolellisesti kätki?
Nämä ajatukset vahasivat Niilon, lainen tuossa käydessään edes
takaisin vallilla ja raittiin yötuulen puhaltaessa hänen päällensä.
Tässä varmaan jotakin piili, sen hän ymmärsi myöskin Olavin
myrkyllisestä katseesta, tämän huomatessa saaneensa todistajan
öiseen vehkeesensä.
Niilo aavisti jotakin kavallusta, ja hänen rehellinen sydämensä
kauhistui moista ilkeyttä. Aikaisin seuraavana aamuna oli hänen
lähteminen matkalle, eikä hän siis voinut mitään toimittaa, mutta hän
päätti palatessaan takaisin uuden-vuoden alussa pitää tarkalla
silmällä Olavia, jota hän tämän lyhyen yhtymisen johdosta rupesi
inhomaan, kuten rehellinen ihminen ainakin vaistomaisesti ilkeyttä ja
kelvottomuutta inhoo.
Mutta vieläkin yksi seikka oli häntä tänä iltana hämmästyttävä.
Hänen pimeässä kaputessaan kiertoportaita ylöspäin kamariinsa,
näki hän ikkuna-aukon läpi että eräässä huoneessa linnapihan
toisella puolen oli valkea. Ikkunassa näkyi kaksi päätä. Toisen hän
heti tunsi. Se oli Olavi Sverkerinpoika. Toinen oli nainen. Hän oli
näkyvissä ainoastaan silmänräpäyksen, mutta Niilo oli varmaan
tietävinään ett'ei hän saattanut olla kukaan muu kuin Gretchen.
Vänrikki seisoi ison aikaa aukossa, toivoen vielä kerran saavansa
nähdä tuon pään, mutta turhaan. Ehkä olikin hän nähnyt väärin,
tuumasi hän viimein, astuen huoneesensa nauttiakseen tarpeellista
lepoa sitä vaivaloista matkaa varten, joka oli tehtävänä.
JUMALANPALVELUS ISONKYRÖN
KIRKOSSA.
Katsotaanpa nyt mitä oli tapahtunut Pohjanmaalla. Oli pyhä Kaarinan
päivä, marraskuun 25 p. v. 1596. Isonkyrön seurakuntalaiset
kokoontuivat jumalanpalvelusta pitämään. Päivä oli pilvessä ja
kansan mieli raskahana. Pitkälliset sateet olivat pilanneet vuoden-
kasvun, sato oli tullut huono, ja huolissaan odottivat ihmiset talven
tuloa. Mutta mikä sitäkin enemmän synnytti alakuloisuutta ja
katkeruutta, oli se seikka, että tuo uusi lähetyskunta, jonka rahvas oli
toimittanut Pentti Poutun johdolla Kaarlo herttuan luo Tukholmaan
pyytämään suojelusta sotaväen kiskomisia vastaan, oli palannut
tyhjin toimin. Niinkuin Pohjanmaan rahvaan aikaisempiinkin
valituksiin, ei herttualla nytkään ollut muuta apua antaa eikä luvata
kuin uudet suojeluskirjat, joiden kautta Klaus Flemingin käskyt ja
hankkeet peruutettiin, nämä kun muka olivat aivan omavaltaiset ja
kuninkaan tahdolle riitaa sekä Flemingin valheellisesti
toimeenpanemat kuninkaan omassa nimessä. Talonpojat tiesivät
varsin hyvin ett’eivät tuommoiset kirjat paljoa merkinneet ett’eikä
Flemingin ratsumiehet paljoa piitanneet mokomista uhkauksista, kuin
niissä oli. Olivathan ratsumiehet kerta ennenkin ottaneet
suojeluskirjat pois, kastelleet niitä oluttuoppeihinsa ja lyöneet niillä
toinen toistaan leikillä silmille, ivatessaan: istu herttuan rauhassa.
Mitäpä he nytkään enemmän kunnioittaisivat herttuan nimeä!
Mutta yhden neuvon herttua oli antanut lähetysmiehille, ja se
heidän mielestään ei ollut niin huono; ainakin oli se heistä paras tällä
haavaa. Kun Pohjalaiset niiden miesten kanssa, jotka Savon,
Viipurin läänin ja Kymenkartanon läänin rahvas oli lähettänyt
Tukholmaan valittamaan Flemingin sortoa, viimeistä kertaa olivat
herttuan puheilla, oli hän nostaen nyrkkiänsä heille sanonut: "En
tiedä muuta neuvoa kuin että toimitatte itsellenne oikeutta omin
käsin. Onhan teitä niin paljon, että pystytte työntämään heidät
päältänne, jos ei muulla, niin aidanseipäillä ja nuijilla." Ja vieläkin
hän oli kerta toistanut, heidän lähtiessään: "Kunhan vain pidätte
puoltanne maalla, niin pidän minä meren puhtaana."
Tämä herttuan varomaton vastaus lensi valkean vauhdilla pitkin
pitäjiä. Sitä paitsi levisi rahvaassa kirjeitä, jotka kehoittivat kapinaan
Flemingiä vastaan, luvaten apua herttualta. Salaiset sanansaattajat
kuljettivat niitä pitäjästä pitäjään, sanoen että mahtava herra muka
oli tullut Turkuun, varustettuna herttuan salaisella valtakirjalla, ja että
tämä tulisi talonpoikia puoltamaan. Kauvan jo oli rahvas monessa
maanosassa tuumaillut kovalla kohdata kovaa, ja kolme vuotta tätä
ennen olivat Rautalammen talonpojat eräänä yönä hyökänneet
muutamain Uplannin ratsumiesten kimppuun ja tappaneet heidät
sekä ottaneet toisia kiinni ja pistäneet avantoon jään alle. Pari
talonpoikaa oli tosin saatu vangituksi ja mestattu tästä väkivallan-
työstä, mutta suurin osa kapinoitsijoita kätkeytyi syviin metsiin ja
pääsi rangaistuksesta kokonaan. Tätä Rautalampilaisten urostyötä
kuljetti maine pitkin maaseutuja, ja monessa pirtissä katseli
talonpoika halukkain silmin kirvestänsä seinässä, kun juopuneet
sotamiehet menettelevät väkivaltaisesti ja vaativaisesti. Nyt tulivat
lähettiläät, joiden paluuta oli odoteltu päivä päivältä paisuvalla
huolella, ja toivat muassaan toiselta puolen tuon masentavan
ilmoituksen, ett’ei mitään parannusta ollut toivottavissa, ja toiselta
puolen herttuan sanat, että talonpoikain piti auttaman itseään itse.
Olipa kuin vain olisivat odottaneet näitä sanoja, osoittaakseen
ensimäisessä sopivassa tilaisuudessa Flemingin sotamiehille että
talonpojat, ne ne olivat herroja maassa eivätkä he. Pohjanmaan
talonpojat eivät muutenkaan olleet aivan tottumattomat sodan
ankaraan leikkiin. Johana kuninkaan aikana olivat he miehuullisesti
puolustaneet maatansa kerta toisensa perään tänne hyökkääviä
Venäjän sotalaumoja vastaan ja itsekin tehneet voittorikkaita retkiä
vihollisen alueelle, havitellen taloja, kyliä ja luostaria. Tämänpä
urhoollisuutensa palkkioksi juuri olivat he saaneetkin sen
vapautuksen sotaväen-majoituksesta eli n.s. linnaleiristä, jota
Fleming nyt tallasi jalkainsa alle, siten että hän, vaikka valtakunnalla
oli rauha, majoitti hurjapäiset ratsumiehensä taloihin rahvaan
elätettäviksi, jolla tuskin oli millä itse elää.
Mielet mitä kovimmassa kuohussa kokoontui sentähden Isonkyrön
rahvas mainittuna pyhän Kaarinan päivänä kirkolle ja rehmäsi
kirkkomäellä. Ruotsista vasta palanneet lähettiläät saivat yhä
toistamiseen kertoa matkansa tuloksen aina vain karttuville
kuulijajoukoille. Uhkaavia sanoja lausuttiin, ja siellä täällä nähtiin
kirvestä heilutettavan, ikääskuin merkiksi että oltiin valmiit
todentekoon.
Siiloin kävi yhtäkkiä kohina väkijoukon läpi, ja kaikki päät
kääntyivät, vihaa ja raivoa osoittaen, yhtäälle päin. Tuli, näet, parvi
noita kylään majoitettuja huovia, ratsastaen kirkolle. He astuivat
hevosen-seljästä kirkkoäyräällä, sitoivat hevosensa aitaan ja
kävelivät ylöspäin kirkkomaalle.
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
Let us accompany you on the journey of exploring knowledge and
personal growth!
textbookfull.com