Sie sind auf Seite 1von 8

 (QTOCVUCPF2TQVQEQNU

5GPFKPI5GTKCN&CVC
Asynchronous and Synchronous Communications 11
Word Formats 12
Bit Rate and Baud Rate 13
System Support for Low-level Protocols 14
5GPFKPI$KVU
The Format 15
The Need for Accurate Timing 15
Autodetecting the Bit Rate 17
Autodetecting a COM Port 18
&CVC(QTOCVU
Binary Data 18
Text Data 19
ASCII Hex 22
Application-specific Protocols 24
2TGXGPVKPI/KUUGF&CVC
Flow Control 26
Buffers 27
Event-driven Programming and Polling 28
Acknowledgments 29
Error Checking 29

 %1/2QTVUQP2%U
2QTV#TEJKVGEVWTG
Device Manager 31
Port Resources 36
Serial Servers 37
#EEGUUKPI2QTVU
Drivers 38
Identifying Ports 39
GUIDs for COM Ports 39
COM Port Numbering 40
INF Files 40
Options for Application Programming 41

iv
 +PUKFG45
6JG*CTFYCTG+PVGTHCEG
Signals 43
Voltages 46
Timing Limits 48
%QPXGTVKPI8QNVCIGU
Interface Chips 49
Short-range Circuits 53
2QTVRQYGTGF%KTEWKVU
Using Outputs as a Power Source 56
Regulating the Voltage 57
#NVGTPCVG+PVGTHCEGU
Direct Connection 58
Other Unbalanced Interfaces 58

 &GUKIPKPI45.KPMU
%QPPGEVQTUCPF#FCRVGTU
Connector Options 62
Adapters 63
Using Microcontroller Development Boards 65
%CDNGU
Length Limits 67
Surge Protection 69
+UQNCVGF.KPGU
Ways to Achieve Isolation 70
About Grounds 70
Power Supply Grounds 72
Optoisolating 75
&GDWIIKPI6QQNU
Using a Breakout Box 76
Monitoring with a Voltmeter 77
Oscilloscopes and Logic Analyzers 78

v
 +PUKFG45
#DQWV45
Balanced and Unbalanced Lines 80
Voltage Requirements 84
Current and Power 85
Speed 87
Internal Protection Circuits 88
+PVGTHCEKPI1RVKQPU
Chips 89
Adding a Port on a PC 91
Converting 3.3/5V Logic 91
Converting RS-232 93
%QPVTQNNKPIVJG&TKXGT'PCDNG
Re-enabling the Driver 97
Software-assisted Control 97
Hardware Control 99

 &GUKIPKPI45.KPMUCPF0GVYQTMU
.QPICPF5JQTV.KPGU
When Is a Line Long? 106
Calculating Line Length 109
Choosing a Driver Chip 111
.KPG6GTOKPCVKQPU
Characteristic Impedance 112
Adding a Termination 113
Effects of Terminations 115
Reflections 117
Series Terminations 122
Terminations for Short Lines 122
AC Terminations 123
Network Topologies 125
$KCUKPIVJG.KPG
Open-circuit Protection 127
Short-circuit Protection 130

vi
%CDNG6[RGU
How a Wire Picks Up Noise 132
Twisted-pair Cable 133
Selecting Cable 133
)TQWPFUCPF&KHHGTGPVKCN.KPGU
Ensuring a Common Ground 134
Isolated Lines 137
7UKPI/WNVKRNG$WUGU
Adding a Repeater 141
Implementing a Star Topology 141

 )QKPI9KTGNGUU
/GFKCCPF/QFWNCVKQP
Using a Carrier Frequency 146
Spread Spectrum Technology 147
Ensuring Reliable Transfers 147
+PHTCTGF
Transmitters and Receivers 148
IrDA 149
4CFKQ(TGSWGPE[
Complying with Regulations 149
Choosing an RF Band 150
Implementing a Link 151
Using Other RF Standards 152

 7UKPI0'6ŏU5GTKCN2QTV%NCUU
)CKPKPI#EEGUUVQC2QTV
Finding Ports 156
Opening a Port 156
Timeouts 160
Receive Threshold 161
Closing a Port 161
6TCPUHGTTKPI&CVC
Transferring Bytes 167
Transferring Text 170

vii
7UKPI5VTGCO1DLGEVU
BinaryReader and BinaryWriter 177
StreamReader and StreamWriter 182
5CXKPIC2QTVCPF2CTCOGVGTU
The Application Settings Architecture 186
Combo Box Example 187

 /CPCIKPI2QTVUCPF6TCPUHGTUKP0'6
4GEGKXKPI&CVC
Setting Timeouts 190
Detecting Received Data 190
Collecting Received Data 197
Ensuring Efficient Transfers 202
5GPFKPI&CVC
Avoiding Timeouts 203
Sending without Blocking the Application 203
Preventing Buffer Overflows 207
Ensuring Efficient Transfers 208
(NQY%QPVTQN
Selecting a Method 209
Monitoring and Controlling the Signals 209
*CPFNKPI'TTQTU
Exceptions 214
The ErrorReceived Event 214
Verifying Received Data 218
5VTWEVWTKPICP#RRNKECVKQP
Defining a ComPorts Class 218
Setting Parameters with Combo Boxes 221
Defining Application-specific Events 224

 2QTVUHQT'ODGFFGF5[UVGOU
#/KETQEQPVTQNNGT5GTKCN2QTV
About the PIC18F4520 230
The Enhanced UART 230

viii
4GIKUVGTU
Configuring and Accessing the Port 231
Setting the Bit Rate 234
Interrupts 237
Basic Operations 239
#EEGUUKPIC2QTV
Configuring the Port 241
Sending Data 243
Receiving Data 244
Using Interrupts 253
Using Flow Control 256
#FFKPI2QTVU
Multiple On-chip UARTs 263
Firmware UARTs 263
External UARTs 263

 0GVYQTM2TQITCOOKPI
/CPCIKPI6TCHHKE
Steps in Exchanging a Message 268
Protocols 268
Using Existing Protocols 270
Debugging Tips 271
#FFTGUUKPI
Assigning Addresses 272
Detecting Addresses 272
Reserving Address Values 273
Defining a Message Format 273
9-bit Format 274

 #P450GVYQTM
%QPPGEVKPIVJG0QFGU
Transceivers 281
Terminating and Biasing 283
Cabling 283
'ZCORNG2TQVQEQN
Addresses 283
Message Format 283

ix
%QOOCPFU
Reading a Byte 284
Writing a Byte 286
2QNNKPIVJG0QFGU
Configuring the Driver-enable Line 287
Sending Commands 288
4GURQPFKPIVQ2QNNU
Auxiliary Routines 291
Decoding Received Data 303

 +PUKFG75$
*QUVUCPF&GXKEGU
Assigning a Driver on the Host 318
Requirements 318
Host Responsibilities 319
Device Responsibilities 319
Speed 320
Endpoints 320
75$6TCPUHGTU
Transfer Types 321
Transactions 322
The Data Toggle 323

 7UKPI5RGEKCNHWPEVKQP75$%QPVTQNNGTU
+PUKFGVJG%JKRU
Serial Interface (FT232R) 326
Parallel Interface (FT245R) 328
Prototyping Modules 329
7UKPIVJG%QPVTQNNGTU
Drivers 330
Adding Vendor-specific Data 330
Implementing a Virtual COM Port 331
Converting from RS-232 to USB 332

x
 7UKPI)GPGTKE75$%QPVTQNNGTU
6JG%QOOWPKECVKQP&GXKEGU%NCUU
Documentation 336
Overview 336
Device Controllers 338
Host Drivers 338
7UKPIVJG#DUVTCEV%QPVTQN/QFGN
POTS Models 339
Virtual COM Ports 340
Requests 341
Notifications 344
Maximizing Performance 345
&GUETKRVQTUCPF+0((KNGU
Device Descriptor 346
Configuration Descriptor 346
Communication Class Interface Descriptors 351
Data Class Interface Descriptors 353
String Descriptors 355
The INF File 356
Composite Devices 356

+PFGZ

xi

Das könnte Ihnen auch gefallen