Copyright © 2015 NEXCOM International Co., Ltd. All Rights Reserved.
58
NISE 50C/50C-H User Manual
Appendix B: Watchdog
Sample explanation:
To set up watchdog time interval to 4 sec, here is the vale should fill in in
each address.
4sec = 400 ms (decimal) = 190 (hexadecimal)
Address
0x50
0x51
0x52
0x53
Data
0x00
0x00
0x01
0x90
Complete command set sequence:
Further description
Command
Address
Data
Set watch dog
interval, write to
address 0x50~0x53
and Data“00000190”
>o 0x66 0x89
>o 0x62 0x50
>o 0x00
>o 0x66 0x89
>o 0x62 0x51
>o 0x00
>o 0x66 0x89
>o 0x62 0x52
>o 0x01
>o 0x66 0x89
>o 0x62 0x53
>o 0x90
Reset Watchdog time interval description:
This command is used to reset watchdog time.
Sequence to read light sensor:
Step Action
Description
RW sample code
command
0
Wait IBF clear
x
1
Write 0x2A to 0x66
Send reset watchdog
command
>o 0x66 0x2A
2
Wait OBF set
x
3
Read 0x62 port
If setup successfully,
EC will return 0x03.
x (check 0x03
output on display)
11
12
Start Watchdog description:
Step Action
Description
RW sample code
command
0
Wait IBF clear
x
1
Write 0x28 to 0x66
Send start watchdog
command
>o 0x66 0x28
2
Wait IBF clear
x
3
Write 0x01 to 0x62
>o 0x62 0x01
(check 0x03 output
on display)
4
Wait OBF set
x
5
Read 0x62 port
If setup successfully,
EC will return 0x01.
x
(check 0x01 output
on display)
Stop Watchdog description:
Step Action
Description
RW sample code
command
0
Wait IBF clear
x
1
Write 0x29 to 0x66
Send stop watchdog
command
>o 0x66 0x29
2
Wait OBF set
x
3
Read 0x62 port
If setup successfully,
EC will return 0x02.
x
(check 0x02 output
on display)