16F946 LCD無法正確點亮
|
||||
---|---|---|---|---|
新會員
|
不知道各位先進是否有遇到這種問題,就是我要點亮16F946之Com0的seg0&seg1時,結果顯示時卻連com1/com2/com3的seg0&seg1都會點亮,由於剛開始接觸此顆MCU,可能設定上也有些問題,還請各位先進不吝指教.
使用compiler: Hi-tech V9.5 Init() { TRISA = 0xFB; TRISB = 0xC1; TRISC = 0x3F; TRISD = 0x06; TRISE = 0x08; TRISF = 0x00; TRISG = 0x3F; LCDSE0 = 0x00; LCDSE1 = 0x00; LCDSE2 = 0xFF; LCDSE3 = 0xFF; LCDSE4 = 0x00; LCDSE5 = 0x00; LCDCON = 0xC3; LCDPS = 0x30; LCDDATA2=3; LCDDATA5=0; LCDDATA8=0; LCDDATA11=0; LCDDATA12=0; LCDDATA15=0; LCDDATA18=0; LCDDATA21=0; } Run 完此段程式,我去量測腳位電壓, Com0 ~ Com4 and seg0&seg1都是0.6V
發表於: 2006/7/20 10:16
|
|||
|