Change oscillator in monitor mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change oscillator in monitor mode

4,447 Views
jonasonx
Contributor I
Hello.
 
I am debugging using MON08.
I want to debug in use of external oscillator.
Can I use the external oscillator in debugging?
MON08 entries monitor mode at 9.8304MHz by cyclonepro clock, it is changeable?  
I don't know.
 
Please tell me.
Labels (1)
0 Kudos
Reply
8 Replies

1,577 Views
jonasonx
Contributor I
Hi, Joerg.
Thank you for your reply.
 
MONLINK means CyclonePro or MULTILINK?
cf;908QT4, I'm debugging in monitor mode. Now, To entering monitor mode I have to use the external clock 9.8304MHz(or from Cyclone pro) , so, I can't use any external oscllator.
If I want to use external oscillator, I check the working on my target board in real time after programming. 
 
This my understanding is OK?
0 Kudos
Reply

1,577 Views
Nabla69
Contributor V
Hi jonasonx,

The Multilink is for BDM devices. A single debugging/programming module.
Devices featuring BDM are S08, HC12, S12, S12X... but not HC08.

Alvin.
0 Kudos
Reply

1,577 Views
bigmac
Specialist III
Hello all,
 
I believe that Alvin is referring to a "BDM Multilink".  There is also the "MON08-Multilink" (also referred to as MONLINK in this thread) for the HC08, with two versions - one for USB and the other with parallel port interface.  These use a 16-way ribbon cable to the target.
 
For MON08 debug purposes, you need an external oscillator to enter monitor mode in the first instance, either from the Multilink device, or from another source - but not the internal oscillator.  However, if the code then attempts to change the bus frequency, loss of communications with the Multilink will result.
 
Regards,
Mac
 
0 Kudos
Reply

1,577 Views
jonasonx
Contributor I
Hello.
Thank you for your help.
 
From your Information. 
As result, When using MON08 MULTILINK, I can't change frequency by external oscillator in debugging.
The reason
1.We need 9.8304MHz clock(from MULTILINK or extarnal) to enter the monitor mode.
2.Connection is lost between device and MULTILINK, if I change the frequency.Because communication speed is changed.
3.About QY/QT, external oscillator can't set default oscillator. QT/QY starts up using internal oscillator and other pins are GPIO as default.
 
Best regards.  
0 Kudos
Reply

1,577 Views
bigmac
Specialist III
Hello,
 
To further clarify -
It is my understanding that, if you use your own external oscillator it does not have to be 9.8304MHz, since the Multilink device will automatically accommodate a different baud rate than the default 9600 baud.  For the QT/QY devices, the external oscillator is still required, and is used to enter monitor mode.  During debug, the internal oscillator cannot be used.
 
Monitor mode and user mode have different start-up conditions.  Whilst in monitor mode, PTA0, PTA2, PTA3 and PTA5 are dedicated to monitor mode debugging, whilst PTA1 and PTA4 need to be controlled to enter monitor mode, but are afterwards available as GPIO.  PTB0 through PTB7 are not affected by monitor mode.
 
Regards,
Mac
 
0 Kudos
Reply

1,577 Views
jonasonx
Contributor I
Thanks all.
 
I understood well.
0 Kudos
Reply

1,577 Views
joerg
Contributor II
Hi jonasonx
With MONLIK i mean the MONLINK cable from PE (i have a parallel one).
As i noted even if you set the osc from the PE interface, the MONLINK uses the osc only at the begin. Because only this way they can measure the internal clock speed. The MONLINK software also will program the OSC trim value on the chip, but you have to put this value to the trim register at the beginning of your code. See the EBS08 for QT/QY devices on:
EBS08

I hope that helps

Saluti Joerg
0 Kudos
Reply

1,577 Views
joerg
Contributor II
Hi
Yes you can use an other OSC. But think of th baudrate, since the baudrate depends directly on the osc frequency. Using a MONLINK from PE solves this problem, because the baudrate is measured and adjusted by the MONLINK interface.

Saluti Joerg
0 Kudos
Reply