int i,a[10]; int ADC10_Result; WDTCTL = WDTPW + WDTHOL; This is part of the AD sampling code. Why does it go wrong when I write the watchdog before defining the variable?
[i=s] This post was last edited by zhouluopei on 2014-6-20 22:30 [/i] The one from Chuanglong Company, omapl138 arm9+c6748 is pretty good and quite detailed. It can be used as a reference.
Many C functions for measuring time cannot be used in ARM. Some of the available functions are based on the system real-time clock (RTC), so the shortest time unit can only reach 10-2 s. As a general