Copyright © 2015 NEXCOM International Co., Ltd. All Rights Reserved.
57
NISE 50C/50C-H User Manual
Appendix B: Watchdog
a
PPendIx
B: w
atChdog
Command register and address description:
Command for light sensor:
Command
Description
0x89
Reset watch dog time interval
0x28
Start watchdog
0x29
Stop watchdog
0x2A
Reset watchdog
Address for watchdog:
Watchdog is used to setup time interval and also keep event status. Unit
time interval is 1ms. Time setting requires a word (8 bit) long length. You
can setup watch dog event time from 0 to 0xFFFFFFFE. Write 0xFFFFFFFF to
time interval setting means disable watchdog event. So the interval time
range is from 0ms to 497 day (0~0x0xFFFFFFFE)
Address
Description
0x50-0x53
0~0xFFFFFFFE,
Setup Watchdog time interval description:
Sequence to read light sensor::
Step Action
Description
RW sample
code command
0
Wait IBF clear
x
1
Write 0x89 to 0x66
Send read command
>o 0x66 0x89
2
Wait IBF clear
x
3
Write RAM address
to 0x62 port
Send Watchdog
address 0x50~0x53.
>o 0x62 0x50
4
Wait OBF set
x
5
Write watchdog
time interval value
to 0x62
Values from
0~0x0xFFFFFFFE, but
two bit in each address,
please refer to sample
code explanation
>o 0x62 0x90