ENGLISH 简体中文 日本語 한국어  

    Login | Register 


   
 
请输入关键词或器件型号    




应用笔记614

Diagnostic Port for the TINIs400

Abstract: The TINIs400 socket board has a diagnostic port option for diagnostic messages. This debug port (connected to port pin P5.2) is a write-only pseudoserial port and does not use any of the serial ports of the TINI400 system. This application note describes how to connect the debug port to a PC and how to use the port to display debug messages from TINI®.

Introduction

The TINIs400 socket board has a debug port option for diagnostic messages. This debug port (connected to port pin P5.2) is a write-only pseudoserial port and does not use any of the serial ports of the TINI400 system. The debug port is shared with the status LED on the TINIm400, so the LED flickers when the debug port is used.

Introduction

Verify that the TINIs400 is configured with Q1 (BSS84), R3 (10k), and J6 (3-pin connector). This is the standard configuration on most TINIs400 socket boards.

Then, connect the diagnostic port J6 to the PC:

Figure 1. TINIs400 diagnostic port connection.
Figure 1.

On the PC, the signal names are: RX = 2, TX = 3, GND = 5.

To display the debug messages on the PC, you can use JavaKit or any other terminal program set to 115200, 8N1.

Debug Class

Add calls to the methods com.dalsemi.system.Debug.dump* to your application. Avoid dynamically allocating strings, as this will consume memory every time you print a debug message. Since writing to the debug port slows down the application, dumping single (hex) bytes is preferred, especially when the dump code is part of a loop.

The following example prints a string to the debug port:
com.dalsemi.system.Debug.dump("This should not happen (my fault)");

TINI400 Runtime

As a final step, load tini_debug_400.tbin instead of tini_400.tbin. You can switch between these two firmware versions without clearing the heap/file system.

Version Notice

This application note describes version 1.11 of the TINI400 runtime environment.

More Information

Details of the TINI Platform are on our website, www.maxim-ic.com/TINI. The TINI Specification and Developer's Guide is an invaluable resource when developing with the TINI platform, and can be downloaded from the Maxim website. Application Notes 612 and 708 are guides to getting started with the DS80C400-based TINI modules.



TINI is a registered trademark of Maxim Integrated Products, Inc.


相关型号  APP 614: Apr 16, 2003
DS80C400 网络微控制器 完整的数据资料
(PDF, 1.8MB)
免费样品
DSTINIS400 DSTINIs400/DSTINIx-00x插座板 完整的数据资料
(PDF, 496kB)

自动更新
需要自动接收最新发布的应用笔记吗?请订阅EE-Mail™ (English only)。




我们期待您的反馈!
喜欢?不喜欢?有待改善?或为我们提供建议?请与我们联系 — 我们将根据您的意见或建议改善我们的工作。 网页评价或提供建议

 

下载,PDF格式下载,PDF格式 (26kB)
 AN614, AN 614, APP614, Appnote614, Appnote 614

        •         •         •     隐私权政策     •     法律声明

    © 2009 Maxim Integrated Products版权所有