Instant Access to Digital Signal Processing and Applications with the TMS320C6713 and TMS320C6416 DSK Topics in Digital Signal Processing 2nd Edition Rulph Chassaing ebook Full Chapters
Instant Access to Digital Signal Processing and Applications with the TMS320C6713 and TMS320C6416 DSK Topics in Digital Signal Processing 2nd Edition Rulph Chassaing ebook Full Chapters
https://ebookultra.com/download/digital-signal-processing-second-
edition-fundamentals-and-applications-li-tan/
https://ebookultra.com/download/digital-signal-processing-with-
examples-in-matlab-second-edition-hush/
https://ebookultra.com/download/digital-signal-processing-techniques-
and-applications-in-radar-image-processing-1st-edition-bu-chin-wang/
Signal Processing for Digital Communications Artech House
Signal Processing Library George J. Miao
https://ebookultra.com/download/signal-processing-for-digital-
communications-artech-house-signal-processing-library-george-j-miao/
https://ebookultra.com/download/digital-signal-processing-laboratory-
second-edition-kumar/
https://ebookultra.com/download/digital-signal-processing-1st-edition-
a-anand-kumar/
https://ebookultra.com/download/digital-signal-processing-
laboratory-2nd-ed-edition-b-preetham-kumar/
https://ebookultra.com/download/digital-audio-signal-processing-2nd-
ed-edition-udo-zolzer/
Digital Signal Processing and Applications with the
TMS320C6713 and TMS320C6416 DSK Topics in Digital
Signal Processing 2nd Edition Rulph Chassaing Digital
Instant Download
Author(s): Rulph Chassaing, Donald Reay
ISBN(s): 9780470138663, 0470138661
Edition: 2
File Details: PDF, 17.21 MB
Year: 2008
Language: english
Digital Signal Processing
and Applications with the
TMS320C6713 and
TMS320C6416 DSK
SECOND EDITION
Rulph Chassaing
Worcester Polytechnic Institute
Donald Reay
Heriot-Watt University
Rulph Chassaing
Worcester Polytechnic Institute
Donald Reay
Heriot-Watt University
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form
or by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as
permitted under Section 107 or 108 of the 1976 United States Copyright Act, without either the prior
written permission of the Publisher, or authorization through payment of the appropriate per-copy fee
to the Copyright Clearance Center, Inc., 222 Rosewood Drive, Danvers, MA 01923, 978-750-8400, fax
978-750-4470, or on the web at www.copyright.com. Requests to the Publisher for permission should
be addressed to the Permissions Departments, John Wiley & Sons, Inc., 111 River Street, Hoboken,
NJ 07030, 201-748-6011, fax 201-748-6008, or online at http://www.wiley.com/go/permission.
Limit of Liability/Disclaimer of Warranty: While the publisher and author have used their best efforts
in preparing this book, they make no representations or warranties with respect to the accuracy or
completeness of the contents of this book and specifically disclaim any implied warranties of
merchantability or fitness for a particular purpose. No warranty may be created or extended by sales
representatives or written sales materials. The advice and strategies contained herein may not be
suitable for your situation. You should consult with a professional where appropriate. Neither the
publisher nor author shall be liable for any loss of profit or any other commercial damages, including
but not limited to special, incidental, consequential, or other damages.
For general information on our other products and services or for technical support, please contact
our Customer Care Department within the United States at 877-762-2974, outside the United States
at 317-572-3993 or fax 317-572-4002.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print
may not be available in electronic formats. For more information about Wiley products, visit our
web site at www.wiley.com.
Chassaing, Rulph.
Digital signal processing and applications with the TMS320C6713 and TMS320C6416 DSK /
Rulph Chassaing, Donald Reay.—2nd ed.
p. cm.
ISBN 978-0-470-13866-3 (cloth/CD)
1. Signal processing–Digital techniques. 2. Texas Instruments TMS320
series microprocessors–Programming. I. Reay, Donald. II. Title.
TK5102.9.C47422 2008
621.382′2—dc22
20070290065
10 9 8 7 6 5 4 3 2 1
To Reiko
And to the memory of Rulph and of Jay
Contents
Preface xv
Preface to the First Edition xvii
List of Examples xxi
Programs/Files on Accompanying CD xxvii
Index 567
Preface
Since the publication of the first edition of this book in 2005, Texas Instruments has
released a new version of Code Composer Studio (CCS). Consequently, although
nearly all of the program examples presented in the first edition will work with the
DSK, some of the detailed instructions for using CCS described in the first edition
are no longer accurate. Every effort has been made to ensure that this edition is
compatible with Version 3 of Code Composer Studio. Slight changes have been
made to the program examples to the extent that the examples provided with this
edition should not be mixed with the earlier versions.
Sadly, Rulph Chassaing passed away in 2005. I had the privilege and the pleasure
of being able to work with Rulph after attending his workshop at the TI developer
conference in 1999. We corresponded regularly while he was writing his book on
the C6711 DSK and Rulph kindly included some of the program examples I had
developed. I helped Rulph to present a workshop at the TI developer conference
in 2002, and we maintained contact while he wrote the first edition of this book.
I have used Rulph’s books, on the C31, C6711, and C6713 processors, for teaching
both at Heriot-Watt (UK) and at Zhejiang (PRC) universities.
Rulph’s books are an extensive and valuable resource for teaching DSP hands-on
in a laboratory setting. They contain a wealth of practical examples—programs that
run on TI DSKs (nearly all in real-time) and illustrate vividly many key concepts
in digital signal processing. It would have been a great shame if the continued use
of this text had been compromised by incompatibilities with the latest version of
CCS.
While thoroughly checking the first edition and attempting to ensure the compat-
ibility (with CCS) and integrity of the example programs, I have taken the oppor-
tunity to develop and to add more (particularly in Chapters 2, 5, 6, and 9) and to
evolve a slightly more narrative structure (particularly in Chapters 2, 4, 5, and 6).
xv
xvi Preface
A small amount of material from the first edition has been dropped. Due to their
natures, Chapters 3, 8, and 10 have been left very much unchanged.
While it contains a degree of introductory DSP theory, some details of the archi-
tecture of the C6713 and C6416 processors, an introduction to assembly language
programming for those processors, and no little instruction on the use of Code
Composer Studio, the emphasis of this book is on illustrating DSP concepts hands-
on in a laboratory environment using real audio frequency signals.
The strength of this book lies, I believe, in the number (and utility) of program
examples. I hope that professors and instructors will be able to pick material from
the book in order to hold their own hands-on laboratory classes.
I am thankful to Robert Owen of the Texas Instruments University Program in
Europe for support of the DSP teaching facilities at Heriot-Watt University and
to Cathy Wicks of the Texas Instruments University Program in North America for
the initial suggestion of updating the book and for her continued support. Walter
J. Gomes III (Jay) and I mapped out the update to this book before he passed away
last year. The thought of his enthusiasm for the project has been a constant
motivation.
I thank my colleague at Heriot-Watt University, Dr. Keith Brown, for his help in
testing program examples and for his suggestions. But above all, I thank Rulph for
inspiring me to get involved in teaching hands-on DSP.
Donald Reay
Heriot-Watt University
Edinburgh, United Kingdom
January 2008
Preface to the First Edition
Digital signal processors, such as the TMS320 family of processors, are used in a
wide range of applications, such as in communications, controls, speech processing,
and so on. They are used in cellular phones, digital cameras, high-definition televi-
sion (HDTV), radio, fax transmission, modems, and other devices. These devices
have also found their way into the university classroom, where they provide an
economical way to introduce real-time digital signal processing (DSP) to the
student.
Texas Instruments introduced the TM320C6x processor, based on the very-long-
instruction-word (VLIW) architecture. This new architecture supports features that
facilitate the development of efficient high-level language compilers. Throughout
the book we refer to the C/C++ language simply as C. Although TMS320C6x/assem-
bly language can produce fast code, problems with documentation and maintenance
may exist. With the available C compiler, the programmer must “let the tools do the
work.” After that, if the programmer is not satisfied, Chapters 3 and 8 and the last
few examples in Chapter 4 can be very useful.
This book is intended primarily for senior undergraduate and first-year graduate
students in electrical and computer engineering and as a tutorial for the practicing
engineer. It is written with the conviction that the principles of DSP can best be
learned through interaction in a laboratory setting, where students can appreciate
the concepts of DSP through real-time implementation of experiments and projects.
The background assumed is a course in linear systems and some knowledge of C.
Most chapters begin with a theoretical discussion, followed by representative
examples that provide the necessary background to perform the concluding experi-
ments. There are a total of 105 programming examples, most using C code, with a
few in assembly and linear assembly code. A list of these examples appears on page
xvii. A total of 22 students’ projects are also discussed. These projects cover a wide
xvii
xviii Preface to the First Edition
1. For a DSP course with a laboratory component, using parts of Chapters 1–9.
If needed, the book can be supplemented with some additional theoretical
materials, since its emphasis is on the practical aspects of DSP. It is possible
to cover Chapter 7 on adaptive filtering following Chapter 4 on finite impulse
response (FIR) filtering (since there is only one example in Chapter 7 that
uses materials from Chapter 5). It is my conviction that adaptive filtering
should be incorporated into an undergraduate course in DSP.
2. For a laboratory course using many of the examples and experiments from
Chapters 1–7 and Chapter 9. The beginning of the semester can be devoted
to short programming examples and experiments and the remainder of the
semester for a final project. The wide range of sample projects (for both
undergraduate and graduate students) discussed in Chapter 10 can be very
valuable.
3. For a senior undergraduate or first-year graduate design project course using
selected materials from Chapters 1–10.
4. For the practicing engineer as a tutorial and reference, and for workshops and
seminars, using selected materials throughout the book.
Chapter 6 covers the development of the fast Fourier transform (FFT). Program-
ming examples on FFT are included using both radix-2 and radix-4 FFT. In Chapter
7 we demonstrate the usefulness of the adaptive filter for a number of applications
with least mean squares (LMS). Programming examples are included to illustrate
the gradual cancellation of noise or system identification. Students have been very
receptive to applications in adaptive filtering. Chapter 8 illustrates techniques for
code optimization.
In Chapter 9 we introduce DSP/BIOS and discuss a number of schemes (Visual
C++, MATLAB, etc.) for real-time data transfer (RTDX) and communication
between the PC and the DSK.
Chapter 10 discusses a total of 22 projects implemented by undergraduate and
graduate students. They cover a wide range of DSP applications in filtering, spec-
trum analysis, modulation schemes, speech processing, and so on.
A CD is included with this book and contains all the programs discussed. See
page xxi for a list of the folders that contain the support files for the examples and
projects.
Over the last 10 years, faculty members from over 200 institutions have taken my
workshops on “DSP and Applications.” Many of these workshops were supported
by grants from the National Science Foundation (NSF) and, subsequently, by Texas
Instruments. I am thankful to NSF, Texas Instruments, and the participating faculty
members for their encouragement and feedback. I am grateful to Dr. Donald Reay
of Heriot-Watt University, who contributed several examples during his review of
my previous book based on the TMS320C6711 DSK. I appreciate the many sugges-
tions made by Dr. Mounir Boukadoum of the University of Quebec, Dr. Subrama-
niam Ganesan from Oakland University, and Dr. David Kozel from Purdue
University at Calumet. I also thank Dr. Darrell Horning of the University of New
Haven, with whom I coauthored my first book, Digital Signal Processing with the
TMS320C25, for introducing me to “book writing.” I thank all the students at Roger
Williams University, the University of Massachusetts at Dartmouth, and Worcester
Polytechnic Institute (WPI) who have taken my real-time DSP and senior design
project courses, based on the TMS320 processors, over the last 20 years. The contri-
bution of Aghogho Obi, from WPI, is very much appreciated.
The continued support of many people from Texas Instruments is also very much
appreciated: Cathy Wicks and Christina Peterson, in particular, have been very sup-
portive of this book.
Special appreciation: The laboratory assistance of Walter J. Gomes III in several
workshops and during the development of many examples has been invaluable. His
contribution is appreciated.
Rulph Chassaing
List of Examples
1.1 Sine Wave Generation Using Eight Points with DIP Switch Control
(sine8_LED) 9
1.2 Generation of Sinusoid and Plotting with CCS (sine8_buf) 21
1.3 Dot Product of Two Arrays (dotp4) 23
2.1 Basic Input and Output Using Polling (loop_poll) 48
2.2 Basic Input and Output Using Interrupts (loop_intr) 51
2.3 Modifying Program loop_intr.c to Create a Delay (delay) 53
2.4 Modifying Program loop_intr.c to Create an Echo (echo) 53
2.5 Echo with GEL Slider Control of Delay and Feedback
(echo_control) 54
2.6 Loop Program with Input Data Stored in a Buffer (loop_buf) 57
2.7 Sine Wave Generation Using a Lookup Table (sine8_intr) 60
2.8 Sine Wave Generation Using sin() Function Call (sine_intr) 61
2.9 Sine Wave Generation with Stereo Output (sine_stereo) 62
2.10 Sine Wave Generation with Two Sliders for Amplitude and
Frequency Control (sine2sliders) 63
2.11 Sweep Sinusoid Using Table with 8000 Points (sweep8000) 65
2.12 Generation of DTMF Tones Using a Lookup Table
(sineDTMF_intr) 66
2.13 Sine Wave Generation with Table Values Generated Within
Program (sinegen_table) 69
2.14 Sine Wave Generation with Table Created by MATLAB
(sin1500MATL) 70
xxi
xxii List of Examples
xxvii
xxviii Programs/Files on Accompanying CD
1
DSP Development System
This chapter describes how to install and test Texas Instruments’ integrated develop-
ment environment (IDE), Code Composer Studio (CCS), for either the TMS320C6713
or the TMS320C6416 Digital Signal Processing Starter Kit (DSK). Three example
programs that demonstrate hardware and software features of the DSK and CCS
are presented. It is recommended strongly that you review these examples before
proceeding to subsequent chapters. The detailed instructions contained in this
chapter are specific to CCS Version 3.1.
1.1 INTRODUCTION
Digital Signal Processing and Applications with the TMS320C6713 and TMS320C6416 DSK,
Second Edition By Rulph Chassaing and Donald Reay
Copyright © 2008 John Wiley & Sons, Inc.
1
2 DSP Development System
Most of the work presented in this book involves the development and testing of
short programs to demonstrate DSP concepts. To perform the experiments described
in the book, the following tools are used:
1. A Texas Instruments DSP starter kit (DSK). The DSK package includes:
(a) Code Composer Studio (CCS), which provides the necessary software
support tools. CCS provides an integrated development environment
(IDE), bringing together the C compiler, assembler, linker, debugger, and
so on.
(b) A circuit board (the TMS320C6713 DSK is shown in Figure 1.1) contain-
ing a digital signal processor and a 16-bit stereo codec for analog signal
input and output.
(c) A universal synchronous bus (USB) cable that connects the DSK board
to a PC.
(d) A +5 V universal power supply for the DSK board.
2. A PC. The DSK board connects to the USB port of the PC through the USB
cable included with the DSK package.
3. An oscilloscope, spectrum analyzer, signal generator, headphones, microphone,
and speakers. The experiments presented in subsequent chapters of this
book are intended to demonstrate digital signal processing concepts in real-
time, using audio frequency analog input and output signals. In order to
appreciate those concepts and to get the greatest benefit from the experi-
ments, some forms of signal source and sink are required. As a bare minimum,
a microphone and either headphones or speakers are required. A far greater
benefit will be acquired if a signal generator is used to generate sinusoidal,
and other, test signals and an oscilloscope and spectrum analyzer are used to
display, measure, and analyze input and output signals. Many modern digital
oscilloscopes incorporate FFT functions, allowing the frequency content of
signals to be displayed. Alternatively, a number of software packages that
use a PC equipped with a soundcard to implement virtual instruments are
available.
All the files and programs listed and discussed in this book (apart from some
of the student project files in Chapter 10) are included on the accompanying CD.
A list of all the examples is given on pages xxi–xxvi.
4 DSP Development System
The DSK packages are powerful, yet relatively inexpensive, with the necessary
hardware and software support tools for real-time signal processing [23–43]. They
are complete DSP systems. The DSK boards, which measure approximately 5 × 8
inches, include either a 225-MHz C6713 floating-point digital signal processor or
a 1-GHz C6416 fixed-point digital signal processor and a 16-bit stereo codec
TLV320AIC23 (AIC23) for analog input and output.
The onboard codec AIC23 [38] uses sigma–delta technology that provides analog-
to-digital conversion (ADC) and digital-to-analog conversion (DAC) functions. It
uses a 12-MHz system clock and its sampling rate can be selected from a range of
alternative settings from 8 to 96 kHz.
A daughter card expansion facility is also provided on the DSK boards.
Two 80-pin connectors provide for external peripheral and external memory
interfaces.
The DSK boards each include 16 MB (megabytes) of synchronous dynamic RAM
(SDRAM) and 512 kB (kilobytes) of flash memory. Four connectors on the boards
provide analog input and output: MIC IN for microphone input, LINE IN for line
input, LINE OUT for line output, and HEADPHONE for a headphone output
(multiplexed with line output). The status of four user DIP switches on the DSK
board can be read from within a program running on the DSP and provide the user
with a feedback control interface. The states of four LEDs on the DSK board can
be controlled from within a program running on the DSP. Also onboard the DSKs
are voltage regulators that provide 1.26 V for the DSP cores and 3.3 V for their
memory and peripherals.
(a)
(b)
FIGURE 1.1. TMS3206713-based DSK board: (a) board and (b) block diagram.
(Courtesy of Texas Instruments.)
Features of the C6416 include 1056 kB of internal memory (32 kB as L1P and
L1D cache and 1024 kB as L2 memory shared between program and data space),
eight functional or execution units composed of six ALUs and two multiplier units,
a 32-bit address bus to address 4 GB (gigabytes), and two sets of 32-bit general-
purpose registers.
Instructions for installation of CCS Version 3.1 are supplied with the DSKs. The
default location for CCS files is c:\CCStudio_v3.1 and the following instructions
assume that that you have used this default. An icon with the label 6713 DSK
CCStudio v3.1 (or 6416 DSK CCStudio v3.1) should appear on the desktop.
Quick Tests of the DSK (On Power On and Using CCS) 7
CCS Version 3.1 provides extensive help facilities and a number of examples
and tutorials are included with the DSK package. Further information (e.g.,
data sheets and application notes) are available on the Texas Instruments website
http://www.ti.com.
The great majority of the examples described in this book will run on either the
C6713 or the C6416 DSK. However, there are differences, particularly concerning
the library files used by the different processors, and for that reason a complete set
of files is provided on the CD for each DSK. Depending on whether you are using
a C6713 or a C6416 DSK, copy all of the subfolders, and their contents, supplied
on the CD accompanying this book in folders C6416 or C6713 into the folder
c:\CCStudio_v3.1\MyProjects so that, for example, the source file sine8_LED.c
will be located at c:\CCStudio_v3.1\MyProjects\sine8_LED\sine8_LED.c.
Change the properties of all the files copied so that they are not read-only (all
the folders can be highlighted to change the properties of their contents at once).
You will be working with a number of files with different extensions. They include:
1.4 QUICK TESTS OF THE DSK (ON POWER ON AND USING CCS)
The value displayed following the label Switches reflects the state of the four
DIP switches on the edge of the DSK circuit board. A value of 15 corresponds to
all four switches in the up position. Change the switches to (1110)2, that is, the first
three switches (0,1,2) up and the fourth switch (3) down. Click again on GEL→
Check DSK→QuickTest and verify that the value displayed is now 7 (“Switches: 7”).
You can set the value represented by the four user switches from 0 to 15. Programs
running on the DSK can test the state of the DIP switches and react accordingly.
The values displayed following the labels Board Revision and CPLD Revision
depend on the type and revision of the DSK circuit board.
Alternative Quick Test of DSK Using Code Supplied with This Book
1. Open/launch CCS from the icon on the desktop if not done already.
2. Select Debug→Connect and check that the symbol in the bottom left-hand
corner of the CCS window indicates connection to the DSK.
3. Select File→Load Program and load the file c:\CCStudio_v3.1\MyProjects\
sine8_LED\Debug\sine8_LED.out. This loads the executable file sine8_
LED.out into the digital signal processor. (This assumes that you have
already copied all the folders on the accompanying CD into the folder:
c:\CCStudio_v3.1\MyProjects.)
4. Select Debug→Run.
Check that the DSP is running. The word RUNNING should be displayed in the
bottom left-hand corner of the CCS window.
Press DIP switch #0 down. LED #0 should light and a 1-kHz tone should be
generated by the codec. Connect the LINE OUT (or the HEADPHONE) socket
on the DSK board to a speaker, an oscilloscope, or headphones and verify the gen-
eration of the 1-kHz tone. The four connectors on the DSK board for input and
Programming Examples to Test the DSK Tools 9
output (MIC, LINE IN, LINE OUT, and HEADPHONE) each use a 3.5-mm jack
audio cable. halt execution of program sine8_LED.out by selecting Debug→Halt.
Example 1.1: Sine Wave Generation Using Eight Points with DIP Switch
Control (sine8_LED)
Program Description
The operation of program sine8_LED.c is as follows. An array, sine_table, of
eight 16-bit signed integers is declared and initialized to contain eight samples of
exactly one cycle of a sinusoid. The value of sine_table[i] is equal to
void main()
{
comm_poll(); //init DSK,codec,McBSP
DSK6713_LED_init(); //init LED from BSL
DSK6713_DIP_init(); //init DIP from BSL
while(1) //infinite loop
{
if(DSK6713_DIP_get(0)==0) //if DIP #0 pressed
{
DSK6713_LED_on(); //turn LED #0 ON
output_left_sample(sine_table[loopindex++]*gain); //output
if (loopindex >= LOOPLENGTH) loopindex = 0; //reset index
}
else DSK6713_LED_off(0); //else turn LED #0 OFF
} //end of while(1)
} //end of main
FIGURE 1.2. Sine wave generation program using eight points with DIP switch control
(sine8_LED.c).
is incremented and when its value exceeds the allowable range for the array
(LOOPLENGTH-1), it is reset to zero.
Each time the function output_left_sample(), defined in source file
C6713dskinit.c, is called to output a sample value, it waits until the codec, initial-
ized by the function comm_poll() to output samples at a rate of 8 kHz, is ready for
the next sample. In this way, once DIP switch #0 has been pressed down it will be
tested at a rate of 8 kHz. The sampling rate at which the codec operates is set by
the program statement
Uint32 fs = DSK6713_AIC23_FREQ_8KHZ;
One cycle of the sinusoidal analog output waveform corresponds to eight output
samples and hence the frequency of the sinusoidal analog output waveform is equal
to the codec sampling rate (8 kHz) divided by eight, that is, 1 kHz.
Programming Examples to Test the DSK Tools 11
Creating a Project
This section illustrates how to create a project, adding the necessary files to generate
an executable file sine8_LED.out. As supplied on the CD, folder sine8_LED con-
tains a suitable project file named sine8_LED.pjt. However, for the purposes of
gaining familiarity with CCS, this section will illustrate how to create that project
file from scratch.
FIGURE 1.4. Project View window showing files added at step 10.
Verify from the Project View window that the project (.pjt) file, the linker
command (.cmd) file, the three library (.lib) files, the two C source (.c) files, and
the assembly (.asm) file have been added to the project.
14
Programming Examples to Test the DSK Tools 15
that the balance of profit lay on the side of freedom. For to some
extent the difficulties of the landowners arose from the fact that on
their estates the commutation for feudal services, or dues to be
rendered for the holding of land, had been settled in early times
when money was scarce and demands for profit modest, and these
charges remained fixed when prices were rising and when the need
of ready money was keenly felt.[489] But while the lord could look for
no increase from his lands, a new source of profit had been opened
to him in the boroughs on his estate. He could find money surely
and easily by leasing out rights of trade, collection of tolls, and other
privileges to the townspeople. In the middle of the thirteenth
century the mayor and burgesses of Berkeley obtained from their
lord freedom from all kinds of toll which he either demanded or
might demand of them;[490] and in the fourteenth century he rented
to them the tolls of the wharfage and of the market, and received
larger profits from this transaction than he gained from all the rent
of the borough.[491]
The weakest corporation moreover had a persistence and
continuity of life which gave it incalculable advantages in the conflict
with individuals subject to all the chances and changes of mortality.
For the nobles indeed the fight with the town was in many ways an
unequal one. Driven hither and thither by urgent calls of war or of
the King’s business, the lord was scarcely ever at home to look to his
own affairs. In the frequent absences of the masters of Berkeley,
perpetually called away by “troubles of state,” when the King
summoned them to his aid whether for civil war or war of conquest,
[492] the neighbouring towns of Bristol and Gloucester found
opportunity to escape from their control; and the march of the baron
and his retainers from Berkeley was a subject of much greater
gladness to the townsmen of Bristol than to the lord of the castle
himself; for “the household and foreign accounts of this lord,” we are
told, “reveal a marvellous unwillingness in him to this Scottish war,
dispatching many letters and messages to the King, and other lords
and favourites about him, for excuses.”[493] When, as a reward for
his services, one of the Berkeleys was given the custody and
government of the town of Gloucester,[494] he was also charged with
the government of Berwick, and was moreover called away
whenever the King found himself in military difficulties; so that the
Gloucester burgesses cannot have had much to fear from him. The
care of the great estates, in fact, was constantly left to the women
of the house and to stewards, while the master, pressed by
ambition, or quite as often by the driving necessity of getting money,
was fighting in Wales or Scotland, or was looking for plunder in
France, or for place at court. For three generations the lands of the
Pastons in Norfolk were managed by the capable wives of absentee
landlords—of the judge who must have spent most of his time in
London or on circuit; of his son the sharp London lawyer; and of his
grandson, Sir John, the gay young soldier who hovered between
London and Calais, and whose only care for his property was to
press anxiously for its rents. The story of the Plumpton family was
much the same. One of the Plumptons spent his last years and died
in France; and no sooner did the young Sir William reach his
majority in 1426, than he also left his Yorkshire estates and set off
to join the French campaign.[495]
On the noble class too fell the heavy consequences of the
rebellions and civil wars of which they were the main supporters. If
the lord died in battle his estates might pass to a minor; if he died
on the scaffold they passed to the crown; or long imprisonment
might thwart his best laid plans for strengthening his hold over his
boroughs. The young Lord Maurice of Berkeley, for instance, was
drawn into rebellion against Edward the Second, and died in prison
four and a half years later. During the whole time that he held his
estates he was only in freedom for four months; and his eldest son,
who was imprisoned with him, was not set at liberty till some
months after his father’s death.[496] Meanwhile the towns were
always quick to make their profit in such times of disturbance and
revolution, as for example when the Earl of Devonshire was attainted
by Edward the Fourth after the battle of Towton for his support of
the Lancastrian cause, and the citizens of Exeter seized so
favourable an opportunity to claim the restitution of a suburb
stretching down to the riverside which the earls had held to
strengthen their hold on the navigation of the Exe.[497]
Nor was the lord’s position made more hopeful by the furious
feuds between noble and noble which distracted the provinces in the
fifteenth century, and the incessant lawsuits by which the
landowners sought to mend their fortunes. In 1463 James Lord of
Berkeley made an agreement with the Countess of Shrewsbury that
they would have no more battles at law; for he was then sixty-nine,
and she fifty-two, and neither of them since their ages of discretion
had “enjoyed any three months of freedom from lawsuits.”[498] Nor
did they wage their fight in the law-courts only, but carried on an
open war by which Gloucestershire had been distracted since 1421,
and which proved one of the most deadly of the many provincial
conflicts of the fifteenth century. Appeased at intervals to break out
again with renewed force, and with the usual incidents of hangings
and finings and imprisonments and ransomings, it finally culminated
in 1470 in a pitched battle on Nibley Green, where the Berkeleys
triumphantly maintained their cause at the head of about 1,000
fighting men, and Lord Lisle, the son of Lady Shrewsbury, who led
the enemy’s army, was killed. To country folk and traders this feud of
the nobles carried with it, we are told, “the ill-effects and
destructions of a petty war, wherein the borough town of Berkeley,
for her part, saw the burning and prostration of many of her ancient
houses, as her old rent which till that time was £22 by the year and
upwards, and by those devastations brought down to £11 and under,
where it sticketh to this day, without recovery of her ancient lustre or
greatness.”[499] Such a strife was by no means singular or without
parallel, and the histories of Norfolk, Yorkshire, Derbyshire, or
Lancashire have their records of similar outrages. Exeter was thrown
into alarm by a great fight on Clistheath in 1453 between the Earl of
Devon and Lord William Bonvil where many persons were grievously
wounded and much hurt done: “the occasion whereof was about a
dog; but great displeasure thereby came to the city, where presently
after the fight the Lord Bonvil sheltered himself, which the Earl took
amiss, thinking it had been so done by the city in some displeasure
to himself.”[500] The mere instinct of self-protection naturally drove
the towns to detach their interests from nobles whose alliance
brought disaster and ruin to simple traders, and in every borough
statute after statute forbidding the inhabitants to wear the
“livery”[501] of any lord whatever, testified to the determination of
the towns to cut off from the great people of the country round
every possibility of stirring up faction within their borders.
But if boroughs in the ownership of a private lord might secure
advantages through his poverty, his misfortune, or his weakness,
their position was one of essential inferiority as compared with
towns on the public demesne.[502] In the story of Liverpool we have
a curious illustration of the fortunes of a borough whose lot it was to
fall at one time into the charge of the state, and at another to be
thrown into the hands of a noble—and whose vicissitudes at last left
it in a sort of indeterminate condition where it owed a deferential
obedience to patrons or masters on every side.
Liverpool, which had been granted by Henry the Second to the
constable of Lancaster Castle, was resumed in 1207 by John, who
granted it a charter of trading privileges. A new charter of Henry the
Third, in 1229, gave it a guild merchant and hanse, with freedom
from toll, and the rights of a free borough; and on the very next day
after this grant Henry gave the lease of the fee-farm to the
burgesses for four years at £10 a year.[503] The true foundations of
municipal independence were thus laid. The town had its common
seal; one of its two bailiffs was apparently elected by the people,
and charged with the collecting of tolls for the ferm; and the busy
trade with Ireland at that time, and the later advantage of a secure
place of embarkation for troops, which became very important as
the harbour of Chester silted up, promised prosperity. In the same
year, however, the town was granted away by the King to the Earl of
Chester, then passed in 1232 to the Earl of Derby; and in 1266 was
given to Edmund Crouchback, Earl of Lancaster, and under the Lords
of Lancaster Liverpool remained till a century later, when in 1361 it
passed by marriage to John of Gaunt.
All hope of freedom for Liverpool died away under its new lords.
The grant of the ferm was not renewed for over a hundred years;
and at an enquiry of “Quo Warranto” in 1292 under Edward the First
“certain men of the Borough of Liverpool came for the commonalty,
and say that they have not at present a bailiff of themselves, but
have been accustomed to have, until Edmund the King’s brother
impeded them, and permits them not to have a free borough.”
Wherefore they claim only “that they may be quit of common fines
and amercements of the county, &c., and of toll, stallage, &c.,
through the whole kingdom,” for “as to the other liberties” which
they used to have “the aforesaid Edmund now has them.” They
quote charters, to show that their ancient liberties had been held
direct from the crown, and the court decided that “Edmund hath
usurped and occupied the aforesaid liberties,” and ordered him to
appear before it; but no action seems to have been taken against
him, and for forty years he and his successors went on themselves
collecting the tolls.[504] At last in 1356 the lord Henry allowed the
townsmen to elect a mayor every year, and the next year the first
Duke of Lancaster (father-in-law of John of Gaunt) leased the ferm
to the mayor and others to hold for the burgesses for ten years,[505]
and Liverpool was thus restored to the same position in which the
King had put it a hundred and thirty years earlier. But even now its
limited privileges rested simply on the will and caprice of the lord; he
might give the lease of the ferm with the right of collecting tolls for
the rent to the mayor, or an ex-mayor, or whomever he would; he
might grant it for a year, or for ten years, or he might take it all back
into his own hands. As a matter of fact questions of convenience and
profit seem to have made it advisable to leave the collections of
taxes mainly with the town officers. When John of Gaunt granted his
lease, at the request of the “honest and discreet men of the
burgesses” the articles were embodied in a patent “to ourselves, to
the mayor, and to the bailiffs,”[506] and in his time the lease was
commonly granted for ten years.[507]
However some of the evils of such a system might be mitigated
by the prudence of rulers bent on securing the utmost possible
profits from their subjects, there was no real guarantee of freedom
or security to the people. But when at the death of John of Gaunt in
1399, the Duchy of Lancaster was united to the crown, there was a
new gleam of hope. The ferm of Liverpool, like that of Leicester, was
now again paid to the King; an effort seems to have been made to
abolish the old uncertain[508] system, and in 1421 Henry V. granted
the fee-farm for one year to the corporation, while an inquiry was
held as to the value of the property and the terms of its tenure since
the time of John of Gaunt. The King’s death however stopped the
proceedings, and the rising fortunes of the town were extinguished
by the two great families who were from this time definitely settled
down on it.[509]
For Liverpool was now hemmed in between two rival fortresses.
Sir John Stanley with an army of followers was encamped in a great
square embattled fort, with subordinate towers and buildings
forming three sides of a quadrangle, the whole planted on the river
edge, and commanding both the town and the Mersey, where the
Stanleys’ ships were moored, and whence they set sail for their new
kingdom, the Isle of Man.[510] Sir Richard Molyneux, as hereditary
Constable, held the King’s castle a little further along the river, with
its area of fifty square acres defended by four towers, and
surrounded by a fosse thirty yards wide, much of which was cut in
the solid rock.[511] When a quarrel broke out in 1424 between the
lords of these rival fortresses, Stanley collected a multitude of people
in the town to the number of 2,000 or more, for he declared that Sir
Richard Molyneux “will come hither with great congregations, riots,
and great multitude of people to slay and beat the said Thomas
(Stanley), his men and his servants, the which he would withstand if
he might.” On the other hand Sir Richard had gathered his forces
near the West Derby fen, “and there on a mow within the said town
we saw the said Sir Richard with great congregations, rout and
multitude to the number of 1,000 men and more, arrayed in manner
as to go to battle, and coming in fast towards Liverpool town.” A
pitched battle was only prevented by the sheriff of the county, who
hastened to the rescue at the head of his forces, and succeeded in
seizing first Stanley in his tower, and then Molyneux as he rode
towards the town.[512]
Such scenes of riot and disorder were fatal to the prosperity and
municipal hopes of Liverpool; but there was no escape from their
unwelcome patrons. Both the great houses fought for York; and in
return Edward the Fourth granted to Stanley the borough of
Liverpool and other estates formerly belonging to the Duchy of
Lancaster; while Molyneux was made chief forester of West Derby,
steward of West Derby and Salford, and constable of Liverpool
castle. Richard the Third again gave to the Stanleys large grants in
Lancashire, and confirmed the Molyneux people in their offices,[513]
and Henry the Seventh favoured their claims. The lords were great
and important people in those days, and the little town of no
account. Its independence died away, and the troubles of the ferm
revived in their old bad form. The question of the lease was never
settled, but in any case it passed out of the hands of the
corporation. From 1495 it was for many years granted to David ap
Griffith, who when he became mayor in 1502 had it renewed to him.
Henry the Eighth leased it in 1525 and 1529 to his widow and son-
in-law for terms which were to expire in 1566. In 1537, however, it
was let to Thomas Holcraft, who sublet it to Sir William Molyneux.
The mayor and corporation under Edward the Sixth declared the
authority of the Molyneux family to be illegal, and claimed under the
old lease granted to Griffith. For many years they fought obstinately
in the case, holding perhaps that the house of their old mayor more
nearly represented the town and its interests than the house of
Molyneux; and one of them was thrown into prison for his resistance
under Mary.[514] The ferm was not finally granted to the corporation
till 1672; and Liverpool was for a couple of centuries so sorely tried
by the necessity of keeping well with the two great families that
overawed it as well as with the Chancellor of the Duchy of Lancaster,
[515] whether in the collecting of its scanty taxes or the choosing of
its burghers for Parliament, that the history of its civic developement
long remained of no importance.[516]
CHAPTER IX
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.
ebookultra.com