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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
2,516 次查看
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 项奖励
回复
1 解答
2,409 次查看
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 项奖励
回复
2 回复数
2,410 次查看
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 项奖励
回复
2,506 次查看
vicentegomez
NXP TechSupport
NXP TechSupport

Can you please put your question in English

 

Thanks

 

0 项奖励
回复