Home Price List Order Info PIC and PC PH28-M Beginners P928-B Professional P928-M

Experimenting with Serial Communication
Contents



Chapter 1. Introduction

Chapter 2. Overview of PIC Microcontrollers
Choosing a PIC
18F Memory
Summary of Instruction Set

Chapter 3. Two Simple PIC18F Programmes
Experiment 1, using the PIC to switch an LED on
Single Stepping the Programme
Connecting the Programmer module
Programming the PIC
Experiment 4, rotating four LEDs automatically
Exercises for Chapter 3

Chapter 4. Using a PIC18F2525 to Drive the Display
Writing to the LCD using programme memory to store the text

Chapter 5. Serial Data Using PC Assembler
PC Controlling LEDs
Writing PC Text to LCD
PC Keyboard to LCD
Sending Text to the PC
Faster Data Rate
Summary of Chapter 5

Chapter 6. Getting Started with Visual C#
Downloading Visual C#
Installing Visual C#
Simple button Programme
Placing a label on the form
Adding a ComboBox
Adding a ListBox
Using IF statements
Using variables
Using mathematics
Handling exceptions
Integer numbers
Summary of chapter 6
Exercises for chapter

Chapter 7. Simple Serial Data Using Visual C#
Turning On the LEDs
Turning LEDs On and Off
Flashing the LEDs
Using Subroutines
Using a Timer
Final improvement
Exercises for Chapter 7

Chapter 8. Comments, Variables, Loops and Functions
Using Comments
Defining variables
Arrays
Arithmetic operators
Relational and logical operators
Bitwise operators
While loop
For loop
Do loop
If and else statements
The break statement
Functions and methods
Variables
Curly brackets
Exercises for chapter 8

Chapter 9. Writing to the LCD using Visual C#
Simple Text Programme
Writing a String of Text
Using a ComboBox
Function Parameters
Exercises for Chapter 9

Chapter 10. Drawing Graphs
Drawing a line
Drawing a graph
Oscilloscope waveforms
Clearing the rectangle
Modulation
Exercise for chapter 10

Chapter 11. Audio Oscilloscope
Phaseshift oscillator
Triggering
Exercise for chapter 11

Chapter 12. Dual Trace Oscilloscope
Exercise for chapter 12

Chapter 13. Fourier Analysis
Understanding waveforms
Analysing a wave
Exercise for chapter 13

Chapter 14. Adding the Professional Touch
Handling exceptions
Exercise for chapter 14

Chapter 15. Writing and Reading Text & Data Files
Saving text files
Saving data files
Browsing
Loading and Saving

Chapter 16. The Full Oscilloscope
Exercise for chapter 16

Appendix A. Programmer Module

Appendix B1. BSPA and BSPH

Appendix B2. BShex16f, BShex18f and BSscope

Appendix M. MPLAB_IDE

Appendix P. 18F Instructions & Registers

Appendix U. USB to COM adaptor

Appendix Z. Answers to the Exercises

Index


Circuit Diagrams
Figure 2, PIC18F2525 wired to turn on an LED
Figure 3, PIC18F2525 driving four LEDs
Figure 4, PIC18F2525 with LCD display
Figure 5, Effective circuit of the test PIC
Figure 24, Connections of LCD
Figure 31, Circuit diagram of phaseshift oscillator