4. Debugging Features
§
§
§
§
§
§
The PTA0, PTA2, PTA3 and PTA5 pins of the microcontroller are reserved —in
particular, the PTA0 bit in the DDRA Register must not be changed (must be left to
input);
The MON08 lines (PTA1 and PTA4) and the PTA3/RESET line have a 1 KOhm serial
resistor;
Since the IRQ/PTA2 line is reserved (and it is driven to V TST ) the “bil” and “bih”
Assembly instructions will result in no branch and always branch, respectively.
The COP must be disabled at the beginning of the user code.
The Break Module peripheral is reserved, and only one hardware breakpoint is
available—however, you can insert a “swi” instruction into your code to generate a
software breakpoint;
The “Halt” debugging command (in the CodeWarrior IDE) will not work unless the IRQ
interrupt is properly handled;
4
§
13 bytes of stack are wasted by the on-chip monitor —therefore the addresses from SP-
13 to SP are reserved.
Notes and Tips
Entering Debug Session with CodeWarrior
When entering a debug session, the target microcontroller’s FLASH memory is
automatically erased, programmed with the user application, and the trimming value (if the
trimming option is enabled) is automatically calculated and programmed.
Halt Debugging Handling
The “Halt” debugging command (in the CodeWarrior IDE) will not work unless the IRQ
interrupt is properly handled. In particular, the following precautions must be taken in the
application’s source code.
1. Global interrupts must be enabled (use the “cli” instruction);
2. The IRQEN bit in the CONFIG2 register must be set to 1;
3. The IRQ interrupt vector must be handled;
Page 26
相关PDF资料
PKN12EB105C1 MOTOR BRUSHED DC 3V 7796RPM
PKN7EB105C1 MOTOR BRUSHED DC 3V 12130RPM
PM20L-020-HHC3 MOTOR STEPPER 20MM 24VDC 18DEG
PM25L-024-HHC5 MOTOR STEPPER 25MM 24VDC 15DEG
PM25S-048-HHC4 MOTOR STEPPER 25MM 24VDC 7.5DEG
PM35L-048-HHC7 MOTOR STEPPER 35MM 24VDC 7.5DEG
PM35S-048-HHC6 MOTOR STEPPER 35MM 24VDC 7.5DEG
PM42L-048-HHC9 MOTOR STEPPER 42MM 24VDC 7.5DEG
相关代理商/技术参数
PK-HCS08GB60 功能描述:开发板和工具包 - 其他处理器 MC9S08GB60 STARTER KIT RoHS:否 制造商:Freescale Semiconductor 产品:Development Systems 工具用于评估:P3041 核心:e500mc 接口类型:I2C, SPI, USB 工作电源电压:
PK-HCS12C32 功能描述:KIT STARTER USB FOR MC9S12C32 RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:- 标准包装:1 系列:- 类型:MCU 适用于相关产品:Freescale MC68HC908LJ/LK(80-QFP ZIF 插口) 所含物品:面板、缆线、软件、数据表和用户手册 其它名称:520-1035
PK-HCS12E128 功能描述:KIT STARTER USB FOR MC9S12E128 RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:- 标准包装:1 系列:- 类型:MCU 适用于相关产品:Freescale MC68HC908LJ/LK(80-QFP ZIF 插口) 所含物品:面板、缆线、软件、数据表和用户手册 其它名称:520-1035
PKI 10 A AU BLUE 制造商:SKS-Kontakte 功能描述:
PKI 10 A AU GREEN 制造商:SKS-Kontakte 功能描述:
PKI 10 A AU RED 制造商:SKS-Kontakte 功能描述:
PKI 10 A BLAU/BLUE 制造商:SKS-Kontakte 功能描述:
PKI 10 A GELB/GRUEN YELLOW 制造商:SKS-Kontakte 功能描述: