search for books and compare prices
Tables of Contents for Pic
Chapter/Section Title
Page #
Page Count
Acknowledgements
ix
 
Preface to the second edition
xi
 
Introduction
1
20
Some tips before starting
3
3
Initial steps
6
5
The file registers
11
3
A program template
14
7
Exploring the PIC5x series
21
79
Your first program
21
2
Testing the program
23
1
Hardware
24
3
Simulating
27
1
Emulation
28
1
Blowing a PIC
28
2
Using the testing instructions
30
4
Timing
34
14
Seven-segment displays
48
23
Logic gates
71
7
The watchdog timer
78
5
Final instructions
83
1
Indirect addressing
83
4
The STATUS file register
87
1
The carry and digit carry flags
88
2
Pages
90
2
What caused the PIC to reset?
92
1
Some useful (but not vital) tricks
93
2
Final PIC5x program - `bike buddy'
95
5
Exploring the P16C71
100
41
Why use the P16C7x series?
100
1
The inner differences: an extra bank
101
2
A different way of setting up
103
1
New file registers
104
1
What are interrupts?
105
2
The program has interrupted ... what next?
107
2
A new program template
109
7
Analogue to digital conversion: what is it?
116
1
ADCON0
117
1
ADCON1
118
5
Some final points
123
1
Final PIC71 program
124
17
The new P12C50x series (8 pin PICs)
141
8
Why use the P12C50x series?
141
1
The main differences
141
3
A template for the P12C50x
144
1
Sample project
145
4
Exploring the P16C84
149
18
Why use the P16C84?
149
1
How is it different?
149
2
What is an EEPROM?
151
1
EECONI
152
3
INTCON
155
12
A PIC development environment
167
2
Looking to the future
169
2
Programming tips
169
2
Sample programs
171
53
LedOn -- Turns an LED on
171
1
PushButton (1.0) -- If a push button is pressed, turns on an LED
172
1
Pushbutton (2.0) -- Shorter version of PushButton 1.0
173
1
Timing -- LED states toggled every second, and buzzer on every five seconds
174
3
Traffic -- Pedestrian traffic lights junction is simulated
177
2
Counter (1.0) -- Counts signals from a push button, resets after 16
179
2
Counter (2.0) -- Stop reading button twice (otherwise, as Counter 1.0)
181
2
Counter (3.0) -- Solves button bounce (otherwise, as Counter 2.0)
183
2
StopClock -- A stop clock displaying tenths of seconds to minutes
185
5
LogicGates -- Acts as the eight different gates
190
3
Alaram -- An alarm system which can be set or disabled
193
1
BikeBuddy -- A speedometer and mileometer for bikes
194
6
Quiz -- Indicates which of four push buttons has been pressed first
200
2
TempSense -- Displays whether temperature is too hot, too cold or OK
202
2
RanLott -- A multipurpose random number generator
204
14
Diamond -- An electronic diamond brooch
218
1
Phonecard -- To act like a phonecard which decrements a file register
219
5
Appendix A Specifications of some PICs
224
1
Appendix B Pin layouts of various PICs
225
1
Appendix C Quick reference
226
9
Appendix D If all else fails, read this
235
1
Appendix E Some useful contact information
236
1
Appendix F References and further reading
237
1
Appendix G Answers to the exercises
238
29
Index
267