請手頭有ch451開發(fā)板,或是正在開發(fā)有硬件的同志們,測試一下下面的程序。 (451程序?yàn)楸揪W(wǎng)站下載的) main() { ch451_init(); EA=1; ch451_write(CH451_SYSON2); ch451_write(CH451_BCD);
ch451_write(CH451_BCD); ch451_write(CH451_DIG0 + 0x8); ch451_write(CH451_DIG1 + 0x8); ch451_write(CH451_DIG2 + 0x8); ch451_write(CH451_DIG3 + 0x8); ch451_write(CH451_DIG4 + 0x8); ch451_write(CH451_DIG5 + 0x8); ch451_write(CH451_DIG6 + 0x8); while(1) { ch451_write(CH451_SYSON2); } }
我的總是在執(zhí)行議會兒出現(xiàn)黑屏,然后主循環(huán)換成別的指令會有別的不正?,F(xiàn)象。不知道你們的是不?什么毛?。浚?線)