IO_LED question

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

IO_LED question

2,437 Views
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 
Labels (1)
0 Kudos
Reply
3 Replies

415 Views
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 Kudos
Reply

415 Views
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 Kudos
Reply

415 Views
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 Kudos
Reply