• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::

論壇索引


Board index » All Posts (summer678)




Re: HI-Tech C
#1
初級會員
初級會員


Dear 各位大大,
怎麼沒人回覆我啊!!!!!還是誰有可以提供參考資料啊!!!!!
感恩!!!感恩!!!

發表於: 2006/9/22 13:47
頂部


HI-Tech C
#2
初級會員
初級會員


Dear 各位大大,
有兩個問題要請教大家!!

1.變數問題

--在主程式中宣告一變數如下--

near union
{
unsigned int Flag16_1;
struct
{
unsigned int ScanInput :1;
unsigned int sw2 :1;
unsigned int r :1;
unsigned int r_lock :1;
unsigned int sw1_lock :1;
unsigned int sw2_lock :1;
unsigned int Stop_100ms :1;
unsigned int Start_Scan :1;
unsigned int Roller_Stat :1;
unsigned int :7;
}bits;
}Flag1bits;

--在其他副程式中仍會存取此變數,宣告如下--

extrn near union
{
unsigned int Flag16_1;
struct
{
unsigned int ScanInput :1;
unsigned int sw2 :1;
unsigned int r :1;
unsigned int r_lock :1;
unsigned int sw1_lock :1;
unsigned int sw2_lock :1;
unsigned int Stop_100ms :1;
unsigned int Start_Scan :1;
unsigned int Roller_Stat :1;
unsigned int :7;
}bits;
}Flag1bits;

可是compile 會出現Error!!!!!
此宣告是哪裡有問題!!!!因為其他的變數非共用型態用extern是
可以的!!!


2.HI-Tech C 可以指定Code的記憶體位址嗎???





發表於: 2006/9/15 14:08
頂部


Re: 16F630燒錄問題
#3
初級會員
初級會員


Dear 板主大大:
  我有用過Stop Watch測試過,pic16f630的Internal OSC為4Mhz,我讓它1ms中斷一次,測試的時間是正常的,但燒錄後就產生我提出的問題,會是因為我使用ICD2燒錄的原因ㄇ?...
對ㄌ,我有將clock輸出測試震盪頻率測量結果,F=5.263158Mhz
這又是啥麼情形!!!!!!!!!
感謝大大解答喔..........................................

發表於: 2006/4/17 9:02
頂部


16F630燒錄問題
#4
初級會員
初級會員


Dear all:
  為何用ICD2燒錄會出現以下ㄉ錯誤,我用ㄉ是內部震盪模式

ICDWarn0033: MPLAB ICD 2 does not support programming this device if both the internal oscillator and internal MCLR are selected. You may continue programming, but you are encouraged to cancel, reconfigure your device, and try again.

可是還是可以動作,但是中斷時間變的誤差很大如:1ms中斷一次卻變為0.76ms一次,這是啥情況啊!!!!!!!!!!!!





發表於: 2006/4/14 9:29
頂部


Re: 如何實現讓pic16fxx有多重中斷功能?
#5
初級會員
初級會員


哈囉..
這是可行的,你只要在中斷副程式設定旗標,然後在主程式在執行就好啦..如下:

void main (void)
{
if(flag,scandsp)
{
scandsp();
flag,scandsp=0;
}

if(.....)
{.........}

}

void interrupt ISR( void )
{
if(T0IF)
{
flag,scandsp=1;
T0IF=0;
}

if(T1IF)
{........................}
.
.
.

}
大致是這樣囉..


發表於: 2006/2/17 16:20
頂部


Re: 如何實現讓pic16fxx有多重中斷功能?
#6
初級會員
初級會員


哈囉..
這是可行的,你只要在中斷副程式設定旗標,然後在主程式在執行就好啦..如下:

void main (void)
{
if(flag,scandsp)
{
scandsp();
flag,scandsp=0;
}

if(.....)
{.........}

}

void interrupt ISR( void )
{
if(T0IF)
{flag,scandsp=1;}

if(T1IF)
{........................}
.
.
.

}
大致是這樣囉..


發表於: 2006/2/17 16:18
頂部


Re: 控制其他MCU
#7
初級會員
初級會員


哈囉..
應該先思考你要用幾位元來當作一筆控制指令吧!如果你要用一個pin腳的話,可以設個Buffer(8 bit),Dleay一段時間依序送出Buffer的值(bit0~bit7),當然你的接收端要根據Dleay的時間來接收,
不曉得是不是你要的想法,ㄏㄏ

發表於: 2006/2/16 13:23
頂部


About PIC18F452 Sleep wake-up 問題
#8
初級會員
初級會員


各位大大請指教:
  我想用Timer1 wake-up from sleep,data sheet 提到
Timer1必須在 an asynchronous counter mode下,那是不是說要使用外部的震盪接至 T1CKI/T1OSO及T1OS且T1CON=0xBF,
才可wake-up

發表於: 2006/1/18 11:01
頂部


Re: 關於Pin腳的問題
#9
初級會員
初級會員


嗯......我了啦......謝謝各位大大喔...............

發表於: 2005/11/25 10:48
頂部


Re: 關於Pin腳的問題
#10
初級會員
初級會員


恩...我應該這麼說..(指令速度為 20MHz/4= 200ns 執行一個指令)這是執行一道指令所花的時間..理論上來說它會馬上變HIGH..但實際上這是不可能的我想知道的是實際上會延遲多少時間拉到HIGH呢..謝謝版大喔....

發表於: 2005/11/24 17:31
頂部



(1) 2 3 4 »



:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------