Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

Please accept the use of cookies on our site

At PEmicro we use web browser cookies in order to provide you with an enhanced experience and in order to be able to do things like shopping cart processing and identify you when you login to our website.

Click here to accept

   Home P&E Customer Support FAQs - Frequently Asked Questions FAQ ID # 48
FAQ ID # 48
Is it possible to stop a running HC08 target? Whenever I issue a "stop" command to my running target, I seem to lose communication and I get the "Ping, Reset, Abort" dialog!

The HC08 architecture does not have any built in functionality to stop a running target. Therefore, in previous scenarios, once a user had started a target running, there were only three way to regain control of the MCU:

(1) execute an SWI instruction pre-placed into code,

(2) encounter a breakpoint,

(3) or reset the device.

PEmicro has introduced a feature that will allow method (1) from above to be expanded to allow the user to stop a running target by issuing a stop command, rather than pre-planning the point where an SWI will occur. Please note that the following features are only valid for users who are using any of the Multilink or Cyclone products for the HC908 family.

When a stop command is issued through the debugger, a >10ms low pulse will be sent out on the COM line. This allow the user to poll the COM line in the main loop and issue an SWI when the line goes low. This feature is always enabled, and is non intrusive to user’s code (if the user does not use this feature, debugging will not be affected in any way).

The user can also enable an IRQ event to be triggered when a stop command is issued. This will give the user the added option of creating an ISR that will execute an SWI instruction when the IRQ event is detected by the MCU, or polling the IRQ flag and triggering the SWI manually (this will allow for applications in which interrupts are not used to use this feature). Note that user’s who are using the IRQ line for other functions should not enable this feature.

Please see the attached document for full implementation guidelines as well as code examples for implementation.

Related Downloads
How To- Stopping a Running HC08 Target - This document describes how to implement PEmicro's method for stopping a running HC08 target.

Architectures Categories Products
Please rate this FAQ to help us improve our support
0 means "not helpful"
10 means "very helpful"
0 1 2 3 4 5 6 7 8 9 10

© 2018 P&E Microcomputer Systems Inc.
Website Terms of Use and Sales Agreement