Copyright © 2017 NEXCOM International Co., Ltd. All Rights Reserved.
65
(M)PPC-240T-HW-01 User Manual
Appendix B: Watchdog
Complete command set sequence:
Further Description Command
Address
Data
Set watchdog
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
1.3 Read Watchdog Time Interval Description:
Step
Action
Description
RW Sample Code
Command
0
Wait IBF clear
x
1
Write 0x88 to
0x66
Send read command
>o 0x66 0x88
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
Read 0x62 port
Get Light sensor
data in current
address
>i 0x62
Please note different address cannot read continuously, you should run read
command steps all over again till the last address location.
Further Description Command
Address
Read
Send cmd to read
address 0x50
>o 0x66 0x88
>o 0x62 0x50
>i 0x62
Send cmd to read
address 0x51
>o 0x66 0x88
>o 0x62 0x51
>i 0x62
Send cmd to read
address 0x52
>o 0x66 0x88
>o 0x62 0x52
>i 0x62
Send cmd to read
address 0x53
>o 0x66 0x88
>o 0x62 0x53
>i 0x62
To complete read 0x50 ~ 0x53 address, you have to complete the commands
from 1~12.
1.4 Reset Watchdog Time Interval Description:
This command is used to reset watchdog time.
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)