
A-2
ADAM-5511
Register Structure
This appendix gives a short description of each module’s registers. For
more information, please refer to the STARTECH 16C550 UART chip
data book.
All registers are one byte. Bit 0 is the least significant bit, and bit 7 is
the most significant bit. The address of each register is specified as an
offset from the port base address (BASE), COM1 is 3F8h and COM2
is 2F8h.
DLAB is the “Divisor Latch Access Bit”, bit 7 of BASE+3.
BASE+0 Receiver buffer register when DLAB=0 and the operation
is a read.
BASE+0 Transmitter holding register when DLAB=0 and the
operation is write.
BASE+0 Divisor latch bits 0 - 7 when DLAB=1
BASE+1 Divisor latch bits 8-15 when DLAB=1.
Bytes BASE+0 and BASE+1 together form a 16-bit number, the divisor,
which determines the baud rate. Set the divisor as follows:
Baud rate
Divisor
Baud rate
Divisor
50
2304
2400
48
75
1536
3600
32
110
1047
4800
24
133.5
857
7200
16
150
768
9600
12
300
384
19200
6
600
192
38400
3
1200
96
56000
2
1800
64
115200
1
2000
58
x
x
Содержание ADAM-5511
Страница 1: ...1 Introduction ...
Страница 2: ......
Страница 19: ...0 Quick Start Chapter ...
Страница 35: ...1 Introduction Chapter ...
Страница 39: ...2 System Specifications Chapter ...
Страница 45: ...3 Installation Guidelines Chapter ...
Страница 57: ...4 I O Modules Chapter ...
Страница 110: ...4 54 ADAM 5511 I O Modules This page inyrntionally left blank ...
Страница 111: ...5 Programming and Downloading Chapter ...
Страница 143: ...6 Function Library Chapter ...
Страница 153: ...ADAM 5511 6 11 Chapter 6 ADAMdelay 1000 WDT_clear WDT_disable Remarks None ...
Страница 161: ...ADAM 5511 6 19 Chapter 6 SetRTCtime RTC_hour hour Remarks None ...
Страница 163: ...ADAM 5511 6 21 Chapter 6 printf nNode number Error Remarks None ...
Страница 165: ...ADAM 5511 6 23 Chapter 6 printf nThe IO Board is NOT ADAM5051 printf nPlease Check your system setup Remarks None ...
Страница 169: ...ADAM 5511 6 27 Chapter 6 write_user_ram 0 Remarks None ...
Страница 171: ...ADAM 5511 6 29 Chapter 6 Remarks None ...
Страница 175: ...ADAM 5511 6 33 Chapter 6 Remarks None ...
Страница 188: ...6 46 ADAM 5511 Function Library Remarks Please refer to the 16C550 UART register document Appendix B ...
Страница 207: ...ADAM 5511 6 65 Chapter 6 unsigned char Bitdata 1 Output 1 to slot 0 pin 13 Set5056 Bitdata 0 13 ABit Remarks None ...
Страница 211: ...ADAM 5511 6 69 Chapter 6 Remarks None ...
Страница 219: ...ADAM 5511 6 77 Chapter 6 Remarks None ...
Страница 223: ...ADAM 5511 6 81 Chapter 6 printf start failed n Remarks None ...
Страница 242: ...6 100 ADAM 5511 Function Library Remarks None ...
Страница 244: ...6 102 ADAM 5511 Function Library Remarks None ...
Страница 246: ...6 104 ADAM 5511 Function Library Remarks None ...
Страница 248: ...6 106 ADAM 5511 Function Library Remarks None ...
Страница 250: ...6 108 ADAM 5511 Function Library printf nAdam 4017 channel3 d data17 Remarks None ...
Страница 252: ...6 110 ADAM 5511 Function Library printf nAdam 4018 channel3 d data18 Remarks None ...
Страница 254: ...6 112 ADAM 5511 Function Library Remarks None ...
Страница 260: ...6 118 ADAM 5511 Function Library printf nAdam 4080 channel2 d Idata80 Remarks None ...
Страница 264: ...6 122 ADAM 5511 Function Library This page is blank ...
Страница 297: ...A COM Port Register Structure Appendix ...
Страница 301: ...B Data Formats and I O Ranges Appendix ...
Страница 312: ...B 12 ADAM 5511 Data Formats and I O Ranges This page is blank ...
Страница 313: ...C Examples on CD Appendix ...
Страница 315: ...D RS 485 Network Appendix ...
Страница 323: ...E Grounding Reference Appendix ...
Страница 330: ...E 8 ADAM 5511 Grounding Reference Figure E 6 wire impedance ...