beautypg.com

Debug condition, Digital io programming guide – NEXCOM NISE 2000 User Manual

Page 84

background image

Copyright © 2009 NEXCOM International Co., Ltd. All Rights Reserved.

71

NISE 2000, NISE 2010, NISE 2020 User Manual

Appendix B: Watchdog Timer Setting

Debug Condition

c:\>debug [enter]
-o 2e 87 ;Enter the Extended Function Mode
-o 2e 01
-o 2e 55
-o 2e 55
-o 2e 07 ;Logical Device Number Reg
-o 2f 07 ;LDN=7
-o 2e 72 ;Watch dog configuration
-o 2f XX ;minute mode (-o 2f 00 second mode)
-o 2e 73 ;LSB for Watch dog tme out value
-o 2f YY
-o 2e 74 ;MSB for Watch dog tme out value
-o 2f ZZ

XX: 90 : Second mode

10 : minute mode

ex:
10 second timeout:
xx=90
yy=0a
zz=00

Digital IO Programming Guide

c:\>debug [enter]
-o 801 yy ;gpio data port mapping address
-i 801 zz
-q
C:>

input
zz : bit4 = GPIO24 , bit5 = GPIO25 , bit6 = GPIO26 , bit7 = GPIO27
example:
zz=1x GPIO24=HIGH, GPIO25=LOW , GPIO26=LOW , GPIO27=LOW
zz=2x GPIO24=LOW , GPIO25=HIGH, GPIO26=LOW , GPIO27=LOW
zz=4x GPIO24=LOW , GPIO25=LOW , GPIO26=HIGH, GPIO27=LOW
zz=8x GPIO24=LOW , GPIO25=LOW , GPIO26=LOW , GPIO27=HIGH
x is for GPIO output pin
output
yy : bit0 = GPIO20 , bit1 = GPIO21 , bit2 = GPIO22 , bit3 = GPIO23
example:
yy=x1 GPIO20=HIGH, GPIO21=LOW , GPIO22=LOW , GPIO23=LOW
yy=x2 GPIO20=LOW , GPIO21=HIGH, GPIO22=LOW , GPIO23=LOW
yy=x4 GPIO20=LOW , GPIO21=LOW , GPIO22=HIGH, GPIO23=LOW
yy=x8 GPIO20=LOW , GPIO21=LOW , GPIO22=LOW , GPIO23=HIGH
x is for GPIO input pin

This manual is related to the following products: