This book will help the technician, engineer and user understand the microcontroller-based systems along with the most common problems and their solutions. This book covers design, specification, programming, installation, configuration and of course troubleshooting. * An engineers guide to the design, applications and troubleshooting of microcontroller-based systems * The introductory chapters on embedded microcontroller architecture and programming are written at the right level with an applications focus for practicing engineers * A highly topical book with a wide readership involved with product design and industrial processes including control systems
Author(s): John Park ASD
Series: Practical Professional Books
Edition: 1
Publisher: Newnes
Year: 2003
Language: English
Pages: 266
City: Amsterdam ; London
Front cover......Page 1
Copyright......Page 5
Preface......Page 6
Contents......Page 8
1.1 Microcontroller introduction......Page 15
1.2 Microcontroller design and functions......Page 17
1.3 Assembly language programming......Page 19
1.4 Inputs and outputs......Page 21
1.5 Data communication......Page 22
1.6 Noise reduction......Page 23
1.7 Grounding solutions......Page 24
1.8 Installation techniques......Page 25
1.9 Conclusion......Page 26
2.1 Introduction......Page 27
2.2 Number systems – binary, hex, and decimal......Page 31
2.3 Gates – AND, OR, XOR and NOT gates......Page 34
2.4 Accumulators, A, B and D......Page 36
2.5 Registers – X, Y, the stack and ports......Page 39
2.6 Communications synchronous and asynchronous......Page 42
2.7 Power systems......Page 44
2.8 Crystals and oscillator......Page 48
2.9 Conclusion......Page 51
3.1 Introduction to programming the microcontroller......Page 53
3.2 Programming structure and specifications......Page 55
3.3 Addressing modes......Page 63
3.4 Load, stores and transfers......Page 64
3.5 Arithmetic operations......Page 65
3.6 Logical operations......Page 66
3.7 Shifts and rotates......Page 67
3.8 Index registers and the stack......Page 68
3.10 Branches, jumps, interrupts and calls......Page 71
3.12 Conclusion......Page 72
4.1 Introduction to memory......Page 74
4.2 User RAM......Page 75
4.3 BUFFALO routines, memory map and vectors......Page 78
4.4 Interrupts, vectors and pseudo-vectors......Page 80
4.5 Control registers......Page 84
4.6 EEPROM......Page 85
4.7 Conclusion......Page 88
5.1 Introduction to inputs and outputs......Page 90
5.2 Single ended vs differential inputs......Page 91
5.3 Digital inputs......Page 94
5.4 Digital outputs......Page 96
5.5 Analog inputs......Page 98
5.6 Digital control of analog devices......Page 101
5.7 Keypad interfacing......Page 102
5.8 LCD interfacing......Page 105
5.9 Conclusion......Page 109
6.1 Introduction to data communication......Page 110
6.2 Basics of serial data communication......Page 111
6.3 Open system interconnection model......Page 114
6.4 Modes of communications......Page 117
6.5 RS-232......Page 121
6.6 RS-485......Page 125
6.7 Fiber optic cables......Page 128
6.8 Fieldbus protocols used in controllers......Page 129
6.9 Conclusion......Page 130
7.1 Introduction to noise reduction......Page 132
7.2 Conductive coupled noise......Page 141
7.3 Capacitive coupled noise......Page 143
7.4 Magnetically coupled noise......Page 144
7.5 EMC and noise reduction in PCB design......Page 146
7.6 Conclusion......Page 150
8.1 Introduction to EMC grounding solutions......Page 151
8.2 EMC grounding......Page 152
8.3 EMC grounding on a PCB......Page 157
8.4 Protecting a PCB from lightning......Page 164
8.5 Microcontroller equipment ground......Page 167
9.1 Introduction to installation and troubleshooting......Page 173
9.2 Connections – screw, crimp and solder......Page 174
9.3 Cable runs and trays......Page 180
9.4 Cable ties and mounting......Page 183
9.5 Cooling, heating and air conditioning......Page 184
9.6 Wire management in a cable run......Page 185
9.7 Conduit installation......Page 186
9.8 Troubleshooting techniques......Page 187
9.9 Safety considerations......Page 188
9.10 Conclusion......Page 189
10.2 CPU design and functions......Page 190
10.3 Assembly language programming......Page 191
10.5 Inputs and outputs......Page 192
10.6 Data communication......Page 193
10.7 Noise reduction......Page 194
10.9 Installation techniques......Page 195
10.10 Final words......Page 196
Practical 1: Setting up the 68HC11 emulator board......Page 197
Practical 2: Activating LEDs on the EVM......Page 205
Practical 3: Reading switches on the EVM......Page 211
Practical 4: Sending characters to an LCD display......Page 218
Practical 5: Reading keypad input......Page 226
Practical 6: Using the PAT software......Page 235
Practical 7: Viewing character data transmission......Page 240
Practical 8: Troubleshooting a data communication system......Page 247
Practical 9: Troubleshooting a protocol problem......Page 250
Bibliography......Page 256
Index......Page 257