MC9S08QG8 - DEMO9S08QG8, BDM Program flow on board in real time or no?

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

MC9S08QG8 - DEMO9S08QG8, BDM Program flow on board in real time or no?

Jump to solution
1,762 Views
Mei
Contributor IV

 

Hallo Community,
I am programming MC9S08QG8 on DEMO9S08QG8 BDM Board.
The calculated
frequency / period of time loops corresponds to the measured frequency.

The condition is: To set or delete a port output with bset..., bclear..,
I need 5 clocks instead of 4
as specified in the instruction set list. 
With help of BDM interface on demo board I can also program a controller
outside the demo board and it shows the same properties.
if this controller runs separately, its working speed is significantly higher.
I think the already noticed bset, bclear commands run properly outside of BDM
with 4 clocks. For an exact calculation, the bus cycle of the separate controller
would also have to differ slightly from the bus cycle on the BDM board.
The influence of the set / clear commands must be clarified with further measurements,
but maybe someone from the community knows what it is like.
With best Regards
Gerd


 
. 
 
 

 

0 Kudos
1 Solution
1,655 Views
Mei
Contributor IV

Hallo Community,

the above question has now been clarified

  • The instruction set of HCS08 is not the same as HC08 (MC68HC908).
    A large number of the commands of the HCS08 require one or two additional cycles for execution compared to the HC08.
  • And just as easy: When the program is started on the BDM target, the P&E BDM software performs an oscillator trim and transfers the trim value stored in $ FFAF to $ 003A (ICSTRM). Here the entered value regulates the bus cycle. When I write these instructions at the top of my program. Now the run on the BDM board is the same as the free run outside the board because the bus cycle is the same.

With best regards

Gerd Meinert

 

View solution in original post

0 Kudos
2 Replies
1,656 Views
Mei
Contributor IV

Hallo Community,

the above question has now been clarified

  • The instruction set of HCS08 is not the same as HC08 (MC68HC908).
    A large number of the commands of the HCS08 require one or two additional cycles for execution compared to the HC08.
  • And just as easy: When the program is started on the BDM target, the P&E BDM software performs an oscillator trim and transfers the trim value stored in $ FFAF to $ 003A (ICSTRM). Here the entered value regulates the bus cycle. When I write these instructions at the top of my program. Now the run on the BDM board is the same as the free run outside the board because the bus cycle is the same.

With best regards

Gerd Meinert

 

0 Kudos
1,752 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Can you please put your question in English

 

Thanks

 

0 Kudos