IO_LED question

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

IO_LED question

2,335 次查看
seventh_ice
Contributor I
i start learn codewarrior since 4 days ago. and still don't understand much about codewarrior.
after compile my project i try to simulate and debug it. I can see port B logic change when i debug it (from 'data' component). But I can't see IO_LED flash, looks like IO_LED not connected to portB, even i allready setup IO_LED for portB. No respons from IO_LED even i write data to port B.
Please give me explanation about that


Regards,


Gunawan 
标签 (1)
0 项奖励
3 回复数

313 次查看
fabio
Contributor IV
Hi Seventh_ice,

May I recommend a nice book ? :smileywink:

HCS08 Unleashed: Designer's Guide to the HCS08 Microcontrollers

The book has a nice tutorial on the Codewarrior tool as well as the HCS08 Microcontrollers.

Best regards,
0 项奖励

313 次查看
CrasyCat
Specialist III
Hello
 
IO_LED Component will not work When you debug on real hardware or on HC(S)08 Full chip simulator.
 
In order to be able to display state of some bits in PORT B in a visual way, I would recommend you to use the Visualization tool component and Add a LED Instrument there.
 
CrasyCat
0 项奖励

313 次查看
Zahar
Contributor IV
Gunawan,

Did you make sure to configure your port as an output by writing 0xFF to the corresponding data direction register?

Best Regards,
Zahar
P&E
0 项奖励