background image

Appendix C

Watchdog Timer Programming

TPC-2012/TPC-2512 User Manual

C-4

ni.com

Example Programs

Example 1: Enable the Watchdog Timer and Set 10 s as the 
Timeout Interval

;-----------------------------------------------------------

Mov dx,2eh ; Unlock W83627HF

Mov al,87h

Out dx,al

Out dx,al

;-----------------------------------------------------------

Mov al,07h ; Select registers of watchdog timer

Out dx,al

Inc dx

Mov al,08h

Out dx,al

;-----------------------------------------------------------

Dec dx ; Enable the function of watchdog timer

Mov al,30h

Out dx,al

Inc dx

Mov al,01h

Out dx,al

;-----------------------------------------------------------

Dec dx ; Set second as counting unit

Mov al,0f5h

Out dx,al

Inc dx

In al,dx

And al,not 08h

Out dx,al

;-----------------------------------------------------------

Dec dx ; Set timeout interval as 10 seconds and start counting

Mov al,0f6h

Out dx,al

Inc dx

Mov al,10

Out dx,al

;-----------------------------------------------------------

Dec dx ; lock W83627HF

Mov al,0aah

Out dx,al

Содержание Touch Panel Computer TPC-2012

Страница 1: ...TPC 2012 TPC 2512 User Manual TPC 2012 TPC 2512 User Manual July 2008 372052C 01 ...

Страница 2: ...Lebanon 961 0 1 33 28 28 Malaysia 1800 887710 Mexico 01 800 010 0793 Netherlands 31 0 348 433 466 New Zealand 0800 553 322 Norway 47 0 66 90 76 60 Poland 48 22 3390150 Portugal 351 210 311 210 Russia 7 495 783 6851 Singapore 1800 226 5886 Slovenia 386 3 425 42 00 South Africa 27 0 11 805 8197 Spain 34 91 640 0085 Sweden 46 0 8 587 895 00 Switzerland 41 56 2005151 Taiwan 886 02 2377 2222 Thailand 6...

Страница 3: ...including photocopying recording storing in an information retrieval system or translating in whole or in part without the prior written consent of National Instruments Corporation National Instruments respects the intellectual property of others and we ask our users to do the same NI software is protected by copyright and other intellectual property laws Where NI software may be used to reproduce...

Страница 4: ...nt of Communications DOC Changes or modifications not expressly approved by NI could void the user s authority to operate the equipment under the FCC Rules Class A Federal Communications Commission This equipment has been tested and found to comply with the limits for a Class A digital device pursuant to part 15 of the FCC Rules These limits are designed to provide reasonable protection against ha...

Страница 5: ...ns to take When symbol is marked on a product it denotes a warning advising you to take precautions to avoid electrical shock bold Bold text denotes items that you must select or click in the software such as menu items and dialog box options Bold text also denotes parameter names italic Italic text denotes variables emphasis a cross reference or an introduction to a key concept Italic text also d...

Страница 6: ...Safety Information 2 1 Setup 2 2 Touchscreen Calibration 2 3 Panel Mounting 2 4 Chapter 3 Jumpers and Connectors Jumper and Connector Functions 3 1 Jumper and Connector Locations 3 3 Appendix A Specifications Appendix B Serial Port Settings Appendix C Watchdog Timer Programming Appendix D Watchdog Timer Programming on WinCE TPC 2012 Appendix E Features in Windows XP Embedded TPC 2512 ...

Страница 7: ...TPC 2012 TPC 2512 User Manual viii ni com Appendix F Accessory Kit Assembly Procedure Appendix G Touchscreen Configuration Appendix H Fuse Replacement Appendix I Technical Support and Professional Services Index ...

Страница 8: ...ity The TPC 2012 TPC 2512 is a powerful I O interface for easy communication with other devices The I O interface includes serial ports a parallel port and Ethernet and USB 1 1 support The TPC 2012 TPC 2512 also supports the PCI 104 expansion slot making it easy to expand with PCI 104 modules Windows CE support In addition to Windows XP support the TPC 2012 TPC 2512 supports the Windows CE and Win...

Страница 9: ...O Port Arrangement For more TPC 2012 TPC 2512 specifications see Appendix A Specifications Cleaning If you need to clean the unit use a soft nonmetallic brush Make sure that the unit is completely dry and free from contaminants before returning it to service 1 PS 2 Mouse 2 PS 2 Keyboard 3 USB 4 LAN 5 Parallel Port 6 COM1 RS232 7 COM2 RS232 8 COM3 RS232 9 COM4 RS232 422 485 9 8 7 6 1 2 3 4 5 ...

Страница 10: ...nt on a reliable surface during installation Dropping it or letting it fall may cause damage The openings on the enclosure are for air convection Protect the equipment from overheating Do not cover the openings Make sure the power source voltage is correct before connecting the equipment to the power outlet Position the power cord so that it cannot be stepped on Do not place anything over the powe...

Страница 11: ...led environment Caution There is a danger of explosion if the battery is incorrectly replaced Replace the battery only with the same or equivalent type recommended by the manufacturer Discard used batteries according to the manufacturer s instructions The sound pressure level at the operator s position according to IEC 704 1 1982 is no more than 70 dB A Caution The protection this equipment provid...

Страница 12: ...1 The power lines can be from either a power adapter or in house power source Figure 2 1 Power Connector 4 Connect the power connector to the power receptor on the TPC 2012 TPC 2512 The power receptor pin assignment is shown in Figure 2 2 Figure 2 2 Power Receptor and Pin Assignment 5 Switch on the power switch to power on the system Touchscreen Calibration The TPC 2012 TPC 2512 touchscreen should...

Страница 13: ...TPC 2012 TPC 2512 in the panel opening Refer to Appendix A Specifications for cutout dimensions 3 Hook the clamps included in the accessory pack to the holes around the four sides of the bezel 4 Insert the screws included in the accessory pack into the clamps To fasten the TPC 2012 TPC 2512 to the panel tighten the screws so they push against the mounting panel Note The mounting panel thickness sh...

Страница 14: ...CD power LCD inverter connector CN3 CF CompactFlash socket CN4 IDE Internal IDE 44 pin 2 mm connector CN5 Ethernet RJ45 LAN port CN6 LPT Printer port CN7 COM1 Serial port COM2 RS232 CN8 COM2 Serial port COM1 RS232 CN9 DC in DC power in connector 5 08 mm 3 pin housing CN10 USB2 Two USB type A female CN11 USB1 Two USB type A female CN12 PS2 mouse Standard mini DIN 6 pin CN13 PS2 keyboard Standard mi...

Страница 15: ...anel connector JP2 Touch Touch connector JP4 5 V 3 V PCI104 5 V 3 V select J1 DDR DDR connector J3 1 3 pin header Clear CMOS SW1 Power switch System power switch BH1 Battery RTC battery FS1 Fuse Fuse holder Table 3 1 Mainboard Connectors and Jumpers Continued Label Function Description ...

Страница 16: ... and Connectors National Instruments Corporation 3 3 TPC 2012 TPC 2512 User Manual Jumper and Connector Locations Figures 3 1 and 3 2 show the jumper and connector locations Figure 3 1 Main Board Jumpers and Connectors ...

Страница 17: ...Chapter 3 Jumpers and Connectors TPC 2012 TPC 2512 User Manual 3 4 ni com Figure 3 2 Main Board Jumpers and Connectors ...

Страница 18: ...Instruments Corporation A 1 TPC 2012 TPC 2512 User Manual A Specifications This appendix lists the TPC 2012 TPC 2512 system specifications Physical Weight 4 1 kg without HDD Cutout dimensions 302 228 mm suggested ...

Страница 19: ...Appendix A Specifications TPC 2012 TPC 2512 User Manual A 2 ni com Dimensions 11 0 433 7 0 079 237 9 331 311 12 244 301 49 11 869 227 49 8 956 2 5 0 098 50 1 969 ...

Страница 20: ...802 3u protocol compatible Watchdog timer W83627 watchdog timer 1 6 s timeout period IDE 1 EIDE channel supports one CompactFlash socket onboard Master and one IDE interface hard drive Slave Note COM1 and COM2 support only half duplex maximum baud rate 115 2 Kbps LCD Display type TFT color LCD Size diagonal 12 1 in Maximum resolution 800 600 SVGA Maximum colors 256 000 Pixel pitch W H mm 0 3075 0 ...

Страница 21: ...024 Light transmission 75 typical Controller USB interface Lifespan 1 million touches at a single point Power Input voltage 18 to 32 VDC Typical 24 VDC 2 0 A Fuse Rating T3 15 A 250 V Size 5 20 mm Note When replacing the fuse use only a fuse of the same type and rating Note For your protection the fuse is set to break if the input voltage exceeds 33 VDC Environment Operating temperature 0 to 50 C ...

Страница 22: ...f the following standards of EMC for electrical equipment for measurement control and laboratory use EN 55024 CISPR 24 EMC requirements EN 55022 CISPR 22 Emissions Class A EN 55011 CISPR 11 Emissions Class A CE C Tick ICES and FCC Part 15 Emissions Class A Note For EMC compliance operate this device according to product documentation CE Compliance This product meets the essential requirements of a...

Страница 23: ...t the end of their life cycle all products must be sent to a WEEE recycling center For more information about WEEE recycling centers and National Instruments WEEE initiatives visit ni com environment weee htm Mercury Disposal and Recycling LCD lamp s in this monitor contain mercury Dispose or recycle according to local state or federal laws Consult the Electronic Industries Alliance at www eiae or...

Страница 24: ...describes the TPC 2012 TPC 2512 serial port settings COM1 COM2 COM3 Connector Pinout The following figure and table show the COM1 COM2 COM3 connector pinout Note COM1 and COM2 support only half duplex maximum baud rate 115 2 Kbps Pin Signal 1 NDCD 2 NRX 3 NTX 4 NDTR 5 GND 6 NDSR 7 NRTS 8 NCTS 9 NRI 1 5 9 6 ...

Страница 25: ...to RS 232 RS 422 or RS 485 and it has auto data flow control capability In other words the TPC 2012 TPC 2512 can automatically detect the data flow direction at this port when two wired RS 485 communication is activated The following figure and table show the COM4 pinout and settings COM4 Mode S1 and S2 Setting RS232 Mode RS485 Mode RS422 Master Mode RS422 Slave Mode 1 5 9 6 ...

Страница 26: ...pendix B Serial Port Settings National Instruments Corporation B 3 TPC 2012 TPC 2512 User Manual PIN RS 232 RS 422 RS 485 1 NDCD TX D 2 NRX TX D 3 NTX RX 4 NDTR RX 5 GND GND GND 6 NDSR 7 NRTS 8 NCTS 9 NRI ...

Страница 27: ...atchdog timer is built into the W83627HF I O controller It includes the following programmable functions You can enable and disable the timer via programming You can set the timer interval from 1 to 255 seconds or 1 to 255 minutes The timer generates an interrupt or resets the signal if the software fails to reset the timer after a timeout Watchdog Timer Programming The watchdog timer I O port add...

Страница 28: ...Figure C 1 describes the watchdog timer programming procedure and Table C 1 describes the watchdog timer registers Figure C 1 Watchdog Timer Programming Procedure Unlock W83627 Select Watchdog Timer Register Enable Watchdog Timer Function Use Watchdog Timer Function Lock W83627HF ...

Страница 29: ... 0 to bit 3 default second Write 1 to bit 3 minute F6 hex Write 0 Stop timer 01 to FF hex default The count amount in seconds or minutes depends on the value set in register F5 hex This number determines how long the watchdog timer waits for the strobe before generating an interrupt or reset signal Writing a new value to this register resets the timer to count with the new value F7 hex Read Write ...

Страница 30: ...Mov al 07h Select registers of watchdog timer Out dx al Inc dx Mov al 08h Out dx al Dec dx Enable the function of watchdog timer Mov al 30h Out dx al Inc dx Mov al 01h Out dx al Dec dx Set second as counting unit Mov al 0f5h Out dx al Inc dx In al dx And al not 08h Out dx al Dec dx Set timeout interval as 10 seconds and start counting Mov al 0f6h Out dx al Inc dx Mov al 10 Out dx al Dec dx lock W8...

Страница 31: ...t dx al Mov al 07h Select registers of watchdog timer Out dx al Inc dx Mov al 08h Out dx al Dec dx Enable the function of watchdog timer Mov al 30h Out dx al Inc dx Mov al 01h Out dx al Dec dx Set minute as counting unit Mov al 0f5h Out dx al Inc dx In al dx Or al 08h Out dx al Dec dx Set timeout interval as 5 minutes and start counting Mov al 0f6h Out dx al Inc dx Mov al 5 Out dx al Dec dx lock W...

Страница 32: ... Mov al 87h Out dx al Out dx al Mov al 07h Select registers of watchdog timer Out dx al Inc dx Mov al 08h Out dx al Dec dx Enable the function of watchdog timer Mov al 30h Out dx al Inc dx Mov al 01h Out dx al Dec dx Enable watchdog timer to be reset by mouse Mov al 0f7h Out dx al Inc dx In al dx Or al 80h Out dx al Dec dx lock W83627HF Mov al 0aah Out dx al ...

Страница 33: ...k W83627H Mov al 87h Out dx al Out dx al Mov al 07h Select registers of watchdog timer Out dx al Inc dx Mov al 08h Out dx al Dec dx Enable the function of watchdog timer Mov al 30h Out dx al Inc dx Mov al 01h Out dx al Dec dx Enable watchdog timer to be strobed reset by keyboard Mov al 0f7h Out dx al Inc dx In al dx Or al 40h Out dx al Dec dx lock W83627HF Mov al 0aah Out dx al ...

Страница 34: ...l 87h Out dx al Out dx al Mov al 07h Select registers of watchdog timer Out dx al Inc dx Mov al 08h Out dx al Dec dx Enable the function of watchdog timer Mov al 30h Out dx al Inc dx Mov al 01h Out dx al Dec dx Generate a time out signal Mov al 0f7h Out dx al Write 1 to bit 5 of F7 register Inc dx In al dx Or al 20h Out dx al Dec dx lock W83627HF Mov al 0aah Out dx al ...

Страница 35: ...is appendix describes DeviceIOControl and it parameters It also includes a programming example DeviceIOControl DeviceIOControl sends a control code directly to a specified device driver causing the corresponding device to perform the specified operation The function and its parameters are BOOL DeviceIoControl HANDLE hDevice DWORD dwIoControlCode LPVOID lpInBuffer DWORD nInBufferSize LPVOID lpOutBu...

Страница 36: ...arameter specifies an operation that does not require input data nInBufferSize in Size in bytes of the buffer pointed to by lpInBuffer lpOutBuffer out Long pointer to a buffer that receives the operation s output data This parameter can be NULL if the dwIoControlCode parameter specifies an operation that does not produce output data nOutBufferSize in Size in bytes of the buffer pointed to by lpOut...

Страница 37: ...sed lpOutBuffer unused nOutBufferSize unused IOCTL _WDT_DISABLE Disables the application watchdog timer lpInBuffer unused nInBufferSize unused lpOutBuffer unused nOutBufferSize unused IOCTL_WDT_STROBE Triggers the watchdog If your application uses IOCTL_WDT_ENABLE to enable the watchdog first and then sends IOCTL_WDT_REBOOT to the WDT driver your application must trigger the watchdog once during t...

Страница 38: ...s are nOutBufferSize unused IOCTL_WDT_SETTIMEOUT Sets the watchdog time setting lpInBuffer The DWORD points to your watchdog time setting The watchdog time settings are nInBufferSize unused lpOutBuffer unused nOutBufferSize unused Setting Time 0 2 s 1 default 5 s default 2 10 s 3 15 s 4 30 s 5 45 s 6 60 s Setting Time 0 2 s 1 default 5 s default 2 10 s 3 15 s 4 30 s 5 45 s 6 60 s ...

Страница 39: ...MEOUT WDT_CODE 0x904 define IOCTL_WDT_REBOOT WDT_CODE 0x905 for compatibility reasons you can define IOCTL as below define IOCTL_WDT_ENABLE 0x1001 define IOCTL_WDT_DISABLE 0x1002 define IOCTL_WDT_STROBE 0x1003 define IOCTL_WDT_GETTIMEOUT 0x1004 define IOCTL_WDT_SETTIMEOUT 0x1005 define IOCTL_WDT_REBOOT 0x1006 HANDLE m_hWDT NULL TCHAR szClassName 60 assign the WDT driver name wsprintf szClassName T...

Страница 40: ... WinCE TPC 2012 TPC 2012 TPC 2512 User Manual D 6 ni com While 1 do your job here Sleep 8000 DeviceIoControl m_hWDT IOCTL_WDT_STROBE NULL 0 NULL 0 dwTemp NULL DeviceIoControl m_hWDT IOCTL_WDT_DISABLE NULL NULL 0 dwTemp NULL CloseHandle m_hWDT ...

Страница 41: ...provides an upper filter in the storage device driver stack that redirects disk write operations to volatile RAM or nonvolatile disk storage EWF protects a volume from write access and offers the following benefits Write protects one or more partitions on your system Enables read only media such as CD ROM or flash to boot and run Prolongs the life span of write sensitive storage such as CompactFla...

Страница 42: ...nect to a CD ROM via the CompactFlash slot CompactFlash to IDE Transfer Kit Assembly Follow these steps to connect to a CD ROM via the CompactFlash slot 1 Connect the IDE cable to the adapter board 2 Insert the adapter board into the CompactFlash slot 3 Connect the CD ROM to the IDE cable 4 Connect the external power line to the CD ROM ...

Страница 43: ...e double tap sensitivity in the Double Tap tab To recalibrate the stylus use the Calibration tab Press the Recalibrate button then press and briefly hold the stylus on the center of each target as it appears on the screen When finished tap on the screen with the stylus to save the settings Touchscreen Calibration TPC 2512 To calibrate the TPC 2512 go to Start All Programs PenMount USB Utilities Co...

Страница 44: ...e the fuse unless it is damaged Do not replace the fuse with a differently rated fuse For more information see the fuse specifications in Appendix A Specifications Follow these steps to replace the fuse 1 Remove the fuse cover 2 Replace the damaged fuse with a new one 3 Place the fuse cover back into position ...

Страница 45: ...ard Service Program Membership This program entitles members to direct access to NI Applications Engineers via phone and email for one to one technical support as well as exclusive access to on demand training modules via the Services Resource Center NI offers complementary membership for a full year after purchase after which you may renew to continue your benefits For information about other tec...

Страница 46: ... you need contact your local office or NI corporate headquarters Phone numbers for our worldwide offices are listed at the front of this manual You also can visit the Worldwide Offices section of ni com niglobal to access the branch office Web sites which provide up to date contact information support phone numbers email addresses and current events ...

Страница 47: ...OOT D 5 IOCTL_WDT_SETTIMEOUT D 4 IOCTL_WDT_STROBE D 3 using D 3 parameters D 1 diagnostic tools NI resources I 1 dimensions A 2 documentation conventions used in the manual vi NI resources I 1 drivers NI resources I 1 E electromagnetic compatibility specifications A 5 Enhanced Write Filter EWF E 1 environmental management A 6 environmental specifications A 4 EWF E 1 example programs watchdog timer...

Страница 48: ...software NI resources I 1 specifications A 1 CE compliance A 5 cleaning 1 2 A 6 dimensions A 2 electromagnetic compatibility A 5 environmental A 4 environmental management A 6 fuse A 4 LCD A 3 mercury disposal and recycling A 6 physical A 1 power A 4 safety A 5 system kernel A 3 touchscreen A 4 Waste Electrical and Electronic Equipment compliance A 6 Support I 1 support technical I 1 system kernel...

Страница 49: ... programming C 1 example programs C 4 on Win CE D 1 DeviceIOControl D 1 overview C 1 procedure figure C 2 registers table C 3 TPC 2512 version information E 1 Windows XP Embedded features E 1 training and certification NI resources I 1 troubleshooting NI resources I 1 V version information on TPC 2512 E 1 W Waste Electrical and Electronic Equipment compliance specifications A 6 watchdog timer prog...

Отзывы: