MON166 User's Guide
MON166 is a debug monitor for C16x and ST10 user programs. It consists of:
- A configurable monitor program that resides and runs on your target system.
- The µVision Debugger and its associated MON166 driver.
The code space requirements of MON166 are small. It can run from about 5K of external or on-chip CODE memory.
It requires only 256 bytes of RAM for monitor variables and storage.
To debug programs with MON166, you must configure the monitor for your specific target system (which has several requirements).
Then, you must alter the load/starting address of your target program and download it to your target system using MON166 and the µVision Debugger.
MON166 offers the following features:
- Controlled program execution with single-stepping and multiple software breakpoints.
- Ability to view and change CPU registers and memory.
- Access to Special Function Registers (SFRs).
- Full speed execution of user programs.
The MON166 Monitor has the following requirements:
- MCU compatible with 80C166, C161, C163, C164, C165, C167, or ST10.
- Software trap for breakpoints (NMI is typical).
- Ten (10) words of stack space in the user program being tested.
- 256 bytes of off-chip data memory (RAM).
- 5K bytes of off-chip code memory (ROM) loaded with the MON166 monitor. RAM may be used with the MCU in bootstrap mode.
- Serial interface.
This may be the on-chip UART,
a simulated UART (using two port pins),
or an external UART (like the 16450 or 16550 used on standard PC's).
MON166 requires only the TRANSMIT DATA and RECEIVE DATA RS-232/V.24 signals along withGROUND.
In some cases, additional connections are necessary to enable communications
(for example, loop-back connections for DTR, DSR, RTS, CTS, and DCD).
There are a few restrictions to using the MON166 Monitor to debug your target programs.
- The memory mapping of a CPU board with MON166 is selected with hardware components and the Monitor configuration file.
It is not possible to use Debug — Memory Map to change the memory mapping of the target system. - The Performance Analyzer, Call Stack, Code Coverage, and Step Out capabilities are not available.
- The View — Periodic Window Update option is not available.
- Breakpoint Options are handled directly by MON166.
However, when access or conditional breakpoints are set,
the application is executed in single steps and not in real time.
Single-step execution is at least 1,000 times slower then real time execution.
Using the monitor requires proper setup and configuration of two distinct applications:
the MON166 Target Monitor program and the µVision IDE and Debugger.
- MON166 is a program that resides on your target system.
It may be programmed into EPROM, ROM, EEPROM, FLASH, non-volatile memory, or RAM.
It communicates with the µVision Debugger and allows you
to download programs (to RAM), set breakpoints,
watch memory areas and program objects, and so on.
When programmed into ROM, MON166 starts running when you reset your target system.
When using your MCU in bootstrap mode, MON166 downloads when you start the µVision Debugger. - The µVision Debugger begins a debugging session with the monitor
by establishing serial communication with the MON166 program running on the target system.
The target program being debugged in µVision is transmitted to MON166 and is written into RAM (by MON166).
Once the target program has been downloaded, you may proceed to step through it, set breakpoints, and so on.All operations performed in the µVision Debugger are communicated to MON166 using a proprietary serial protocol.
MON166 serial commands are NOT ASCII text-based and cannot be easily viewed or created with a terminal program
— the µVision Debugger and MON166 driver are required.
Debugging programs with MON166 has some side-effects:
- MON166 can be configured to use the on-chip UART.
The target program may use the on-chip UART as long as the UART configuration is not changed.
If the serial port, timer, or baud rate configuration are changed,
the monitor will lose communication with the µVision Debugger.
Characters transmitted by the target appear in the µVision Serial Window.
Note that the Stop Program Execution with Serial Interrupt Option must not be checked
if your target program uses the serial port. - You may use the serial interrupt to signal MON166 to halt program execution.
If you enable this option, your target program cannot use the on-chip UART.
MON166 is easily adapted to a wide variety of target hardware.
Several µVision projects are provided to help you quickly configure the monitor for your target system.
These are found in the \KEIL\C166\MONITOR\ folder.
USER166\USER_166.UV2 : User configuration files for 8xC166 CPU and ST10-166.
USER167\USER_167.UV2 : User configuration files for all other CPU variants, like C161, C163, C164, C165, C167, and ST10.
Bootstrap Mode
In bootstrap mode, MON166 is downloaded into RAM of the target system.
This is typically the best mode to start with since the MCU auto-adjusts the serial port baudrate
and does not require you to program an EPROM.
In this mode, the MCU communicates with the PC using the built-in ASC0 UART.
UART Mode
In UART Mode, MON166 is programmed into FLASH memory or an EPROM.
Compared to the Bootstrap Mode, UART Mode saves the download time for MON166.
In this mode, the MCU communicates with the PC using the built-in ASC0 UART or ASC1 UART which is available on some devices.
You may configure that UART for an exact baudrate or you may use auto-baudrate detection.
Simulated Serial Mode
In Simulated Serial Mode, MON166 is programmed into FLASH memory or an EPROM.
This mode does not use any of the on-chip peripherals, but has the restrictions
that you cannot use the uVision HALT toolbar command to stop program execution since there is no serial interrupt.
Tha advantage is that your target program has complete use of the ASC0 UART.
In this mode, the MCU communicates with the PC using two (2) unused I/O pins.
Code in the monitor toggles the transmit pin to send serial characters one bit at a time.
Code to receive serial characters listens for one bit time and determines the character received.
MON166 User's Guide的更多相关文章
- 如何在 arm 官网上找到合适的手册
http://infocenter.arm.com/help/advanced/help.jsp 在这里输入合适的版号即可 这样就可以不用去 CSDN 了 100000_0000_00_EN - AR ...
- Beennan的内嵌汇编指导(译)Brennan's Guide to Inline Assembly
注:写在前面,这是一篇翻译文章,本人的英文水平很有限,但内嵌汇编是学习操作系统不可少的知识,本人也常去查看这方面的内容,本文是在做mit的jos实验中的一篇关于内嵌汇编的介绍.关于常用的内嵌汇编(AT ...
- The Practical Guide to Empathy Maps: 10-Minute User Personas
That’s where the empathy map comes in. When created correctly, empathy maps serve as the perfect lea ...
- Scrum Guide - Scrum指南中文版
现在公司在使用敏捷开发模式进行日常的开发和管理工作,所以我看了下Ken Schwaber的<Scrum Guide>这本小册子,原本是英文的,这里提供中文的,以供日后复习和参考. Scru ...
- The Hacker's Guide To Python 单元测试
The Hacker's Guide To Python 单元测试 基本方式 python中提供了非常简单的单元测试方式,利用nose包中的nosetests命令可以实现简单的批量测试. 安装nose ...
- A Beginner's Guide to Paxos
Google Drive: A Beginner's Guide to Paxos The code ideas of Paxos protocol: 1) Optimistic concurrenc ...
- pipedata3d User Guide
pipedata3d User Guide 1. Introduction 在管道设计过程中,会使用到大量的标准,如ASME,DIN,GB,CB,HG,SH等等.管道设计人员在设计过程中,需要翻阅相关 ...
- Flume官方文档翻译——Flume 1.7.0 User Guide (unreleased version)中一些知识点
Flume官方文档翻译--Flume 1.7.0 User Guide (unreleased version)(一) Flume官方文档翻译--Flume 1.7.0 User Guide (unr ...
- Flume官方文档翻译——Flume 1.7.0 User Guide (unreleased version)(二)
Flume官方文档翻译--Flume 1.7.0 User Guide (unreleased version)(一) Logging raw data(记录原始数据) Logging the raw ...
随机推荐
- ETL工具的评价
评价项目 评价结果 备注 支持平台 SUN Solaris.HP-UX.IBM AIX.AS/400.OS/390.Sco UNIX.Linux.Windows 支持数据源 DB2.Informix ...
- objective-C 中两种实现动画的方法
第一种方法: [UIView beginAnimations:@"Curl"context:nil];//动画开始 [UIView setAnimationDuration:1.2 ...
- Js对象转String的函数 和 JSON转String
js对象转string的函数 function obj2str(o){ var r = []; if(typeof o =="string") return "" ...
- Android数据库升级,数据不丢失解决方案
假设要更新TableC表,建议的做法是: 1) 将TableC重命名为TableC_temp SQL语句可以这样写:ALERT TABLE TableC RENAME TO TableC_temp; ...
- 通过DDOS攻击流程图来浅谈如何预防Ddos攻击与防御
DDOS攻击流程图 站长之家配图(来源:ppkj.net) 一 背景 在前几天,我们运营的某网站遭受了一次ddos攻击,我们的网站是一个公益性质的网站,为各个厂商和白帽子之间搭建一个平台以传递安全问题 ...
- border透明
最近在写一表项目,需要边框透明,起初我以为没有办法实现,最近看一本书中找到办法,就是通过rgba实现,代码如下: border: 1px solid rgba(0, 0, 0, 0.7); 关于rgb ...
- ansible安装及问题解决
本文主要用来安装ansible,在进行安装的时候,也可以使用其他的版本进行安装,本文主要讲述安装ansible的步骤,还有常用问题的解决. 1.查看python版本 由此可以看到python的版本为2 ...
- IT智力题
题目1:你让工人为你工作7天,给工人的回报是一根金条.金条平分成相连的7段,你必须在每天结束时给他们一段金条,如果只许你两次把金条弄断,你 如何给你的工人付费? 答案:两次弄断就应分成三份,我把金条分 ...
- sharepoint站点锁定后解锁
MOSS站点备份过程中中断后导致整个站点处于锁定状态 其他的命令都无效,以下命令才解决问题 PS C:\Users\root> $Admin = new-object Microsoft.Sha ...
- 基于AWS的自动化部署实践
过年前,我给InfoQ写了篇文章详细介绍我们团队在过去4年基于AWS的自动化部署实践.文章包括了:为什么选择AWS.AWS上自动化部署的优势和挑战.我们的解决方案,以及和AWS DevOps方案(Op ...