Help with LED component

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

Help with LED component

跳至解决方案
2,216 次查看
etolocka
Contributor I
Hi

I´m confused about the use of the LED component in the debugger (I have CW 5.0 Special Edition).

Can I show in this component the value of a port (e.g: PTA) using the leds while I simulate my code?

The help file says "In the text field, the user can specify which value should be displayed by the LED bar. The location is specified with a string in the form object.value"
What means "object.value"?

Thankfully,
Ernesto.
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
877 次查看
CrasyCat
Specialist III
Hello
 
LED component is a legacy component and I would not recommend using it if you are using HC08 Full Chip Simulator or Multilink/CyclonePro as connection. The component is not working with these connection.
Also it will not work if you are using a Special or Standard Edition of the software. This component is available only in professional edition software package.
 
In order to define a LED and make it display value of an I/O port, I would recommend you to use the Visualization Tool component.
You can add one or several LED Instruments. Each Instrument can be attached to a specific memory address and Bit number in the instrument properties.
 
This should do it.
 
CrasyCat

在原帖中查看解决方案

0 项奖励
回复
3 回复数
878 次查看
CrasyCat
Specialist III
Hello
 
LED component is a legacy component and I would not recommend using it if you are using HC08 Full Chip Simulator or Multilink/CyclonePro as connection. The component is not working with these connection.
Also it will not work if you are using a Special or Standard Edition of the software. This component is available only in professional edition software package.
 
In order to define a LED and make it display value of an I/O port, I would recommend you to use the Visualization Tool component.
You can add one or several LED Instruments. Each Instrument can be attached to a specific memory address and Bit number in the instrument properties.
 
This should do it.
 
CrasyCat
0 项奖励
回复
877 次查看
etolocka
Contributor I
Thank you CrasyCat, the Visualization Tools works fine.

The number of instruments is limited to 3. Can I change this value in the Special Edition?

Regards,
Ernesto.
0 项奖励
回复
877 次查看
CrasyCat
Specialist III
Hello
 
No you need to upgrade at least to Standard Edition to get an unlimited key for visualization tools component.
Please refer to the Buyers Guide on the CodeWarrior for HC08 product page for more information on differences between the different editions.
 
This document can be found at following URL for HC08:
 
CrasyCat
0 项奖励
回复