Bug in ARM serial communication and external Interrupt
Posted: Sun Oct 25, 2015 7:20 pm
Hello,
I am using the ARM controller AT91SAM7S512_64.
On PA31 i use a switch for jumping in a macro to send commands over RS232 to the display. Transmitting data to the display and receiving "ACK" from the display is OK (0x06). (Macro: Open_TouchMacro)
Pin 20 of the controller (IRQ0) is connected to the "SBUF" pin of the display. This pin does signalisate, that a touch button is pressed.
Sending a command over RS232 in the external interrupt 0 is ok. This command is used for that display must now send the specific code of the pressed touch button.
But when I´m writing the value of the received "ACK" in a variable, the value is always 0xFF.
Now when I´m jumping again with the switch on PA31 in the macro "OpenTouchMacro", sending commands to the display is ok, but the received "ACK" byte is always now 0xFF. When i do reset the controller, receiving is ok again, so long if I did not jump in external interrupt 0
I think there is a problem when I am receiving serial data in external interrupt.
regards
ARM
I am using the ARM controller AT91SAM7S512_64.
On PA31 i use a switch for jumping in a macro to send commands over RS232 to the display. Transmitting data to the display and receiving "ACK" from the display is OK (0x06). (Macro: Open_TouchMacro)
Pin 20 of the controller (IRQ0) is connected to the "SBUF" pin of the display. This pin does signalisate, that a touch button is pressed.
Sending a command over RS232 in the external interrupt 0 is ok. This command is used for that display must now send the specific code of the pressed touch button.
But when I´m writing the value of the received "ACK" in a variable, the value is always 0xFF.
Now when I´m jumping again with the switch on PA31 in the macro "OpenTouchMacro", sending commands to the display is ok, but the received "ACK" byte is always now 0xFF. When i do reset the controller, receiving is ok again, so long if I did not jump in external interrupt 0
I think there is a problem when I am receiving serial data in external interrupt.
regards
ARM