Browsing this Thread:
1 Anonymous Users
Topic options
View mode
舊的在前
請教幾個有關AN235的問題
新會員
Joined
: 2006/7/19 13:14最後登入時間
: 2006/9/20 19:11
Group:
註冊會員
Level : 2
HP : 0 / 31
MP : 4 / 1647
EXP : 25
各位先進好: 最近看了AN235對於裡面有幾個地方不懂,然後將程式碼燒進APP001的板子上,用的是18F452。問題如下: (1) 程式碼中的Even flag在LIN程式中有什麼樣的功用呢? #pragma udata access TestSection2 near union { struct { unsigned EO1:1; // Even or odd flag unsigned EO2:1; unsigned EO3:1; }Bit; near unsigned char Byte; } MYCOUNT; (2) 程式碼中的l_bit_rate=71,我的版子用的是16Mhz的 震盪器,所以改成l_bit_rate=25,這樣對嗎? (3) 因為AN235沒附lin_d.h與lindefs.inc檔,所以我將AN235裡面的附錄C存成.H檔,附錄D存成.INC檔,附錄E存成.INC檔。而DEVICES.inc檔是用AN237的,這樣使用對嗎? (4)請問程式中的timer的中斷的作用是什麼呢? 謝謝~
發表於: 2006/8/8 16:07
You can view topic.
你 不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.