MEGA带PA系列的8位单片机内部都有一个唯一signature id,该代码可以读取这个signature id用来做硬件识别或者授权。 tUUID CG_GetUUID(void) typedef struct { uint8 osc; //RC Oscillator Calibration Byte. Z-Pointer Address=0x0; uint8 sig[3]; //Device Signature Byte. Z-Pointer Address=0x0,0x2,0x4; uint8 uid[10]; //serial number B