Greet all, I'm trying to write a signal simulation function for a push button, but it doesn't seem to work. What I tried to do was create a Toggle button in Tool menu of Keil IDE (uVision2 Version 2.40a) to toggle an input port pin as it's a push button switch when I run the debugger. I've been reading Keil uVision user guide, but don't quite to get it. Here are what I did. This one works as intended.
define button "Toggle", "Port3 = Port3 ^ 0x10"
signal void Toggle (void) { PORT3 = (PORT3 ^ 0x10); twatch (1000000); }
signal void Toggle (void) { PORT3 = (PORT3 ^ 0x10); twatch (1000000); } Toggle ();
Thank you for your reply Mr. Reinhard Keil. Sorry for being misinformed. Yes, you're right. It's Toolbox that was I meant not Tool Menu.