Hello,
I`m new here.
What is the reason I cannot see the correct Content of patternQPI in Watchwindow?
thanks Ellen
/* * MyFirstProg.c * * Created: 07.03.2019 15:25:11 * Author : User2 * */ #define F_CPU 160000000 #include <avr/io.h> uint8_t QPI[] = { 0x51, 0x50, 0x49, 0xBE, 0x0A, 13 }; // Life request to device char patternQPI[] = "(PI30"; // (PI30 <crc> 0D > Response */ int val1 = 0xff00; int main(void) {al1 = QPI[2]; while (1) { val1 = val1 << 1; if (val1 < 0) val1 = 0xeeee; } return(0); }
Appendix sreenshot