поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

DM6210 датащи(PDF) 41 Page - List of Unclassifed Manufacturers

номер детали DM6210
подробное описание детали  dataModule medium speed analog input module
PDF  91 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  ETC [List of Unclassifed Manufacturers]
домашняя страница  
Logo ETC - List of Unclassifed Manufacturers

DM6210 датащи(HTML) 41 Page - List of Unclassifed Manufacturers

Back Button DM6210 Datasheet HTML 37Page - List of Unclassifed Manufacturers DM6210 Datasheet HTML 38Page - List of Unclassifed Manufacturers DM6210 Datasheet HTML 39Page - List of Unclassifed Manufacturers DM6210 Datasheet HTML 40Page - List of Unclassifed Manufacturers DM6210 Datasheet HTML 41Page - List of Unclassifed Manufacturers DM6210 Datasheet HTML 42Page - List of Unclassifed Manufacturers DM6210 Datasheet HTML 43Page - List of Unclassifed Manufacturers DM6210 Datasheet HTML 44Page - List of Unclassifed Manufacturers DM6210 Datasheet HTML 45Page - List of Unclassifed Manufacturers Next Button
Zoom Inzoom in Zoom Outzoom out
 41 / 91 page
background image
4-9
Programming the DM6210
This section gives you some general information about programming and the DM6210.
The module is programmed by reading from and writing to the correct I/O port locations. These I/O ports
were defined in the previous section. Most high-level languages such as BASIC, Pascal, C, and C++, and of
course assembly language, make it very easy to read/write these ports. The table below shows you how to read
from and write to I/O ports using some popular programming languages.
In addition to being able to read/write the I/O ports on the DM6210, you must be able to perform a variety
of operations that you might not normally use in your programming. The table below shows you some of the
operators discussed in this section, with an example of how each is used with C, Pascal, and BASIC. Note that
the modulus operator is used to retrieve the least significant byte (LSB) of a two-byte word, and the integer
division operator is used to retrieve the most significant byte (MSB).
Many compilers have functions that can read/write either 8 or 16 bits from/to an I/O port. For example,
Turbo Pascal uses Port for 8-bit port operations and PortW for 16 bits, Turbo C uses inportb for an 8-bit read
of a port and inport for a 16-bit read. Be sure to use the correct operation for each register on the DM6210.
Clearing and Setting Bits in a Port
When you clear or set one or more bits in a port, you must be careful that you do not change the status of
the other bits. You can preserve the status of all bits you do not wish to change by proper use of the AND and
OR binary operators. Using AND and OR, single or multiple bits can be easily cleared in one operation. Note
that most registers in the DM6210 cannot be read back; therefore, you must save the value in your program.
To clear a single bit in a port, AND the current value of the port with the value b, where b = 255 - 2bit.
Example: Clear bit 5 in a port. Read in the current value of the port, AND it with 223
(223 = 255 - 25), and then write the resulting value to the port. In BASIC, this is programmed as:
V_SAVE = V_SAVE AND 223
OUT PortAddress, V
/DQJXDJH
0RGXOXV
,QWHJHU 'LYLVLRQ
$1'
25
8
È
hÃ2ÃiÃÈÃp

hÃ2ÃiÃÃp
É
hÃ2ÃiÃÉÃp
•
hÃ2ÃiÕÃp
Qh†phy
HP9
hÃ)2ÃiÃHP9Ãp
9DW
hÃ)2ÃiÃ9DWÃp
6I9
hÃ)2ÃiÃ6I9Ãp
PS
hÃ)2ÃiÃPSÃp
/DQJXDJH
5HDG  %LWV
:ULWH  %LWV
5HDG  %LWV
:ULWH %LWV
Uˆ…i‚Ã8
9h‡h2vƒ‚…‡i6qq…r†† ‚ˆ‡ƒ‚…‡i6qq…r††9h‡h 9h‡h2vƒ‚…‡6qq…r††
‚ˆ‡ƒ‚…‡6qq…r††9h‡h
Uˆ…i‚ÃQh†phy
9h‡h)2Q‚…‡b6qq…r††d
Q‚…‡b6qq…r††d)29h‡h
9h‡h)2Q‚…‡Xb6qq…r††d
Q‚…‡Xb6qq…r††d)29h‡h



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com