![NKK SWITCHES IS-Dev Kit-8 Скачать руководство пользователя страница 14](http://html1.mh-extra.com/html/nkk-switches/is-dev-kit-8/is-dev-kit-8_user-manual_1697353014.webp)
IS-Dev Kit-8 User Manual
7850 East Gelding Drive • Scottsdale, AZ 85260-3420
IS-Dev Kit 8 Users Manual A.doc
Page 14 of 31
Toll Free
1.877.2BUYNKK (877.228.9655)
•
Phone
480.991.0942
• Fax
480.998.1435
www.nkkswitches.com
1209
Attribute Block at address 0007H
Current
Address
Top
Switch
Address
Middle
Switch
Address
Bottom
Switch
Address
End
Address Timer1 Timer2
0007H
0001H
0000H
0000H
000AH
01H
80H
The timer is 128ms. If there is no switch activity for 128ms the timer expires causing the next image, 0008H, to
be displayed. This continues until images 0009H and 000AH are also displayed. When the timer expires at
address 000AH the address is equal to the End Address. The Middle Switch Address from the Attribute Block
of 000AH is then checked.
Attribute Block at address 000AH
Current
Address
Top
Switch
Address
Middle
Switch
Address
Bottom
Switch
Address
End
Address Timer1 Timer2
000AH
000CH
0000H
000AH
0000H
00H
00H
Since the Middle Switch Address is zero then the image at address 0007H is displayed and the Attribute Block
of address 0007H becomes active.
If the top switch is pressed in any address from 0007H to 000AH then the image at address 0001H is displayed
and the Attribute Block of address 0001H become active. Notice that the other attributes within the Attribute
Block are ignored. Notice that the loop starting at address 0007H overlaps the loop starting at address 0006H
and both end at the same End Address without interfering with each other.
Please note when the timer causes a new image to be displayed the Attribute Block of the beginning
image stays active. All other Attribute Blocks within the loop are ignored except the Middle Switch
Address of the End Address.
6.
Communication Protocol
Communication initiated by Host
The controller communicates with the host via RS232 serial communication (57.6K, 1 start bit, 8 bit, 1 stop
bit). The controller receives the data via an interrupt routine that places the data on the circular receive buffer.
When the controller detects data in the circular receive buffer, the controller reads one byte and executes the
following:
A. If the byte is a command, the controller transmits a 61H and executes the subroutine for the command
and upon completion of command the controller transmits 79H.
B. If the byte is not a command, it is ignored.
When the controller executes a subroutine and expects additional information: