Copyright © 2019 NEXCOM International Co., Ltd. All Rights Reserved.
60
NISE 505 User Manual
Appendix B: EC Command Documentation
5. LED Control
5.1 Command Register and Address Description:
Command for LED control:
Command
Description
0xF0
Write
0xF1
Read
Data for LED:
Data
Description
Bit0
PG0 LED enable or disable; 0x01 to enable, 0x00 to disable
Bit1
PG1 LED enable or disable; 0x01 to enable, 0x00 to disable
5.2 Read Description:
Sequence to read LED:
Step
Action
Description
RW Sample Code
Command
0
Wait IBF clear
x
1
Write 0x80 to 0x66
Send read command >o 0x66 0xF1
2
Wait OBF set
x
3
Read 0x62 port
data
>i 0x62
5.3 Write Description:
Sequence to write LED:
Step
Action
Description
RW Sample Code
Command
0
Wait IBF clear
x
1
Write 0x81 to 0x66
Send write
command
>o 0x66 0xF0
2
Wait IBF clear
x
3
Write RAM address
to 0x62 port
Send control cata
0x01 to enable
LED
>o 0x62 0x01