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 engineer's 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
Inhaltsverzeichnis
1;Cover;1 2;Contents;1 3;Preface;1 4;1. Introduction;1 4.1;1.1 Microcontroller introduction;1 4.2;1.2 Microcontroller design and functions;1 4.3;1.3 Assembly language programming;1 4.4;1.4 Inputs and outputs;1 4.5;1.5 Data communication;1 4.6;1.6 Noise reduction;1 4.7;1.7 Grounding solutions;1 4.8;1.8 Installation techniques;1 4.9;1.9 Conclusion;1 5;2. Microcontroller basics;1 5.1;2.1 Introduction;1 5.2;2.2 Number systems binary, hex, and decimal;1 5.3;2.3 Gates AND, OR, XOR and NOT gates;1 5.4;2.4 Accumulators, A, B and D;1 5.5;2.5 Registers X, Y, the stack and ports;1 5.6;2.6 Communications synchronous and asynchronous;1 5.7;2.7 Power systems;1 5.8;2.8 Crystals and oscillator;1 5.9;2.9 Conclusion;1 6;3. Microcontroller programming;1 6.1;3.1 Introduction to programming the microcontroller;1 6.2;3.2 Programming structure and specifications;1 6.3;3.3 Addressing modes;1 6.4;3.4 Load, stores and transfers;1 6.5;3.5 Arithmetic operations;1 6.6;3.6 Logical operations;1 6.7;3.7 Shifts and rotates;1 6.8;3.8 Index registers and the stack;1 6.9;3.9 Condition code register;1 6.10;3.10 Branches, jumps, interrupts and calls;1 6.11;3.11 BASIC and C++;1 6.12;3.12 Conclusion;1 7;4. Microcontroller memory;1 7.1;4.1 Introduction to memory;1 7.2;4.2 User RAM;1 7.3;4.3 BUFFALO routines, memory map and vectors;1 7.4;4.4 Interrupts, vectors and pseudo-vectors;1 7.5;4.5 Control registers;1 7.6;4.6 EEPROM;1 7.7;4.7 Conclusion;1 8;5. Microcontroller inputs and outputs;1 8.1;5.1 Introduction to inputs and outputs;1 8.2;5.2 Single ended vs differential inputs;1 8.3;5.3 Digital inputs;1 8.4;5.4 Digital outputs;1 8.5;5.5 Analog inputs;1 8.6;5.6 Digital control of analog devices;1 8.7;5.7 Keypad interfacing;1 8.8;5.8 LCD interfacing;1 8.9;5.9 Conclusion;1 9;6. Data communications;1 9.1;6.1 Introduction to data communication;1 9.2;6.2 Basics of serial data communication;1 9.3;6.3 Open system interconnection model;1 9.4;6.4 Modes of communications;1 9.5;6.5 RS-232;1 9.6;6.6 RS-485;1 9.7;6.7 Fiber
optic cables;1 9.8;6.8 Fieldbus protocols used in controllers;1 9.9;6.9 Conclusion;1 10;7. Noise Reduction;1 10.1;7.1 Introduction to noise reduction;1 10.2;7.2 Conductive coupled noise;1 10.3;7.3 Capacitive coupled noise;1 10.4;7.4 Magnetically coupled noise;1 10.5;7.5 EMC and noise reduction in PCB design;1 10.6;7.6 Conclusion;1 11;8. EMC grounding soloutions;1 11.1;8.1 Introduction to EMC grounding solutions;1 11.2;8.2 EMC grounding;1 11.3;8.3 EMC grounding on a PCB;1 11.4;8.4 Protecting a PCB from lightning;1 11.5;8.5 Microcontroller equipment ground;1 12;9. Installation and troubleshooting;1 12.1;9.1 Introduction to installation and troubleshooting;1 12.2;9.2 Connections screw, crimp and solder;1 12.3;9.3 Cable runs and trays;1 12.4;9.4 Cable ties and mounting;1 12.5;9.5 Cooling, heating and air conditioning;1 12.6;9.6 Wire management in a cable run;1 12.7;9.7 Conduit installation;1 12.8;9.8 Troubleshooting techniques;1 12.9;9.9 Safety considerations;1 12.10;9.10 Conclusion;1 13;10. End notes;1 13.1;10.1 Conclusion;1 13.2;10.2 CPU design and functions;1 13.3;10.3 Assembly language programming;1 13.4;10.4 Memory;1 13.5;10.5 Inputs and outputs;1 13.6;10.6 Data communication;1 13.7;10.7 Noise reduction;1 13.8;10.8 Grounding solutions;1 13.9;10.9 Installation techniques;1 13.10;10.10 Final words;1 14;Practicals;197 14.1;Practical 1: Setting up the 68HC11 emulator board;1 14.2;Practical 2: Activating LEDs on the EVM;1 14.3;Practical 3: Reading switches on the EVM;1 14.4;Practical 4: Sending characters to an LCD display;1 14.5;Practical 5: Reading keypad input;1 14.6;Practical 6: Using the PAT software;1 14.7;Practical 7: Viewing character data transmission;1 14.8;Practical 8: Troubleshooting a data communication system;1 14.9;Practical 9: Troubleshooting a protocol problem;1 15;Bibliography;1 16;Index;1