Hello!
I was trying to create a button debug, it has to change the value of one or more inputs of GPIO ports, but I can't :(
I have tried this sentences for creating the debugging button
DEFINE BUTTON "UP", "P2_P8 = 1" --> error 34: undefined identifier
DEFINE BUTTON "UP", "P2.8 = 1" --> Nothing happens.
DEFINE BUTTON "UP", "P2_P8 = 1" --> error 52: left side of '.' requires struct/union
DEFINE BUTTON "UP", "P2 = 0xFFFF" --> this sentece goes well but this isn't the funtion I want.
So, I don't know how I can simulate with a debugging button to put a up/down level in a GPIO port. Can someone help me, please?
Thanks for all, Willow.
Hello, Willow Willow, How about:
DEFINE BUTTON "Up", "PORT2 |= 0x0100" DEFINE BUTTON "Down", "PORT2 &= ~0x0100"
...and ask the KEIL help for "Peripheral Variables"
Good luck!
Thank you very much.
I will see Keil's help.
Thanks, again.