MC9S08SH8 DCO Frequency

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

MC9S08SH8 DCO Frequency

2,017 Views
mattiad
Contributor II

Hi,

I need to program a MC9S08SH8 microcontroller with Codewarrior 6.3.

In the past I used  PEmicro and I set 32MHz in the DCO Output frequency (see picture attached).

At the moment I don't have the possibility to use PEmicro and I would like to maintain this setting also on Codewarrior.

Is there this possibility?

Thank you in advance.

Tags (2)
0 Kudos
Reply
8 Replies

1,869 Views
mattiad
Contributor II

Hi Vicente,

thank you for your reply.

I'll try it!

Best Regards,

Mattia

0 Kudos
Reply

1,869 Views
mattiad
Contributor II

Hi Vincente,

regarding my first question: exactly, I can't set the clock properly using the OSBDM in the demo board. I don't know why.

Regarding USBDM: actually I've found this open source project

https://sourceforge.net/projects/usbdm

and I bought an USBDM interface on ebay.

https://www.ebay.com/itm/Freescale-USBDM-Programmer-BDM-OSBDM-OSBDM-Download-Debugger-Emulator-Downl...

I would like to know if it's recognize as a reliable instruments by NXP.

Thank you and Best Regards,

Mattia

0 Kudos
Reply

1,869 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Hi Mattia

I do not use that tool so I can not say this is good or not.

regarding to your problem with the OSBDM maybe you need to update it 

You can update with the driver from PEMICRO

I hope this will help you.

0 Kudos
Reply

1,869 Views
mattiad
Contributor II

Hi Vincente,

thank you for your answer.

Actually I'm using this evaluation board to program the microcontroller:

https://www.nxp.com/products/processors-and-microcontrollers/additional-processors-and-mcus/8-16-bit...

I've already tried to modify the parameter in debug configuration but it has anyway an higher clock. I can understand it because the answer in the UART port is faster than 9600kbps (as setted). It seems almost 5% higher.

In parallel I've tried to use the USBDM interface with its software. With its clock trimming setup it works!

usbdm.PNG

So, what I would like to know is:

-why the evaluation board can't set the correct clock frequency?

-Is in your opinion the USBDM interface reliable for programming? Also for production? I'm asking this because it seems that it's an open source hardware and software.

Thank you for your attention and best regards,

Mattia

0 Kudos
Reply

1,869 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Hi 

I am not sure that I got properly your first question, but you can not set properly the clock using the OSBDM that is included on the demo board?

regarding  your second question, the USBDM (the universal multilink?), can work for production, but if you have a high volume I recommend the cyclone

Regards 

0 Kudos
Reply

1,869 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Hi

you can use Processor expert or device initialization, but this is creating a code.

Also there is a tool that you can set the TRIM value, maybe this can help you, you can set the internal clock with a value between 31.250 to 39062.5 Hz please check the image attached.  

Debug configuration/edit/ advance programming options / use custom trim...

pastedImage_2.png

0 Kudos
Reply

1,869 Views
mattiad
Contributor II

Hi Vincente,

I'm using Codewarrior V 11.1.0. I'd like to set the frequency @32Mhz.

Thank you in advance,

Mattia

0 Kudos
Reply

1,869 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Hi

I am not sure if the tool that you was using is the flasher from PE?

so now you want something similar with code warrior 11? 

Please let me know your comments

Regards

Vicente  

0 Kudos
Reply