Basic Information Functional Description Application Description Points to Note Others

Basic Information


Functional Description


Application Description


Points to Note


Question 1

When using the emulator for editing C language programs, if the WDT is off, why does the program randomly jump back to the start of the main function.

Answer

When editing C language programs, if the program contains defined constant arrays, then when the array is changed it is important to not to have a border overflow. If a defined variable array const unsigned char const unsigned char data[2]={0x01,0x02}; if in the program there is temp=data[2]; this statement will have a border overflow, here the program will have unpredictable results, which will include the program jumping back to the start of the main function.


Question 2

Using the C language in the HT-IDE3000 why is there are error when “_delay(m);” is used?

Answer

For the C language in the HT-IDE3000, the parameter used in the “void _delay(unsigned long)”function, can only be a constant value and must not be a variable value.



Others