i'm with the same doubt.
when i click over the switch button, nothing happens.
Can anyone help us??
Thanks,
The manuals that came with the HC08 version I have do not have any specific information like you wrote. I did actually do what you wrote. It makes sense it would work that way. But I got no response from the switch. I could click it 100 times and there was no change in portA. I could even hold it down for a period and it would not indicate any change. The little 0 on the switch would never change to a 1 either. I have it connected to the KBI module of the HC08 and set up for interrupts. I do not get any interrupts on that pin in simulation mode either. Can I download the manual somewhere?
bcde
Hello
Oups sorry, I provide you with reference to HC12 instead of HC08 manuals.
For HC08 information is located in manual {Install}\Help\pdf\Debugger_HC08.pdf in chapter ""Book I - Debugger Engine", section "Debugger Components" -> "Visualization Utilities" -> "Visualization Tool".
Which version of the HC08 tools are you using? I have tried with CodeWarrior V5.0. I placed a LED instrument on bit 4 in PORTA and I defined a switch instrument at same address and port.
In the Visualization tool component I have set Refresh Mode to Periodical, I have then switched the component to Display mode (Just click on the top left button in the visualization tool tool bar).
Pressing the button changes the color of the LED and memory is also updated.
Make sure to initialize the DDRA register appropriately before to make sure this works.
CrasyCat
Hello
In fact the Visualization component can be used to get a graphical view of some objects in your application. You can also stimulate memory changes, but it will not allow you to stimulate interrupts.
As you are using HC08 Full Chip simulation I can suggest you to use a "Command" Instrument and use the appropriate command to activate KBI interrupt.
Please refer to {Install}\Help\pdf\Debugger_HC08.pdf, chapter "Book III - HCS08 Debug Connection", section "HCS08 Full Chip Simulation" -> "Peripheral Modules Commands" -> "Keyboard Interrupt Module" for information on commands to activate KBI interrupt.
I hope this helps.
CrasyCat
I have been playing with the Visualization tools and found the following to be true. If the port pin you have an LED or Switch connected to is set as an output pin you can use the switch or led to change the state of the pin. If it is an input pin no change occurs. Ex. I connect an LED to PTB5 (Kind of Port-Memory, Port 0x01, bit to display-5) if you use your mouse to click on the LED it changes the bit on PB5. You can see the change in the memory component window. I set the mode of the memory component window to peridocial 10ms. The same thing happens if you use a switch. If the port is set to an input, there is no state change on the PTB5 pin. So if you are needing a port to be an input the visualization tools seem to have no effect. What am I missing?
I tried the command window and it does work for the KBI module. Thanks. The HC08 series parts does not have an actual component module listed in the menu drop down list for the KBI module like the HCS08 parts. According to the manual you just use the inputX command to change the state of the pin. I could not find a command to just change the state of one pin, you always have to write 8 bits to the memory location.
BCDE
firby,
I have been trying to learn this visualization tool for a while. If you have not done so yet, you should read the manual first and try to make sense of it and then play with the commands to see them work. the manual is located at {Install}\Help\pdf\Debugger_HC08.pdf, chapter "Book I - Debugger Engine" - Visualization Utilities. I will try to help more as I get used to the tool.
CrasyCat,
I have received my upgrade to CodeWarrior V5 and it works much better. I found the documentation you referenced. It does not explain what the different "Kind of Port" options mean. Substitute, Subscribe, Variable, Register, Memory. I have an LED connected to PTB5. In order to get the LED to work I had to set the port type to Memory and Port to Display is 0x01. The manual for the 68HC908 I am using calls this location a register PTB. Could I set Kind of Port to Register and put "PTB" in the Port to Display field? This kind of information would be helpful. What values are allowed for each of the entries? Right now I just have to experiment to see which one works.
Thanks for your help!
It appears the problem I am having is the same I was having with another post I started about code not running in my target but running in debug mode. My version is too old and they don't have any updates. I am working on an upgrade now so it will hopefully fix these problems. I will report when I get the license taken care of.
Thanks for your help! I hope I can help someone in the future to pay back the favor!
bcde