added macro chk and 8/16Mhz