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

論壇索引


Board index » All Posts (kbat524)




Delay time
高級會員
高級會員


Dear all,

我想寫一段精準的delay time (ex.10 micro sec),讓程式中有需要dealy的地方就呼叫此delay function。(不想使用到計時器)
因為我是用C開發MCU,所以我採用in-line的方式去實現delay:
void dealy(int time)
{
int i;
for(i=0;i<time;i++)
asm("nop");
}
我目前是利用這函數去delay,但不太準,請問還有更好的方法能精準產生micro sec delay嗎?

謝謝

發表於: 2007/4/27 19:03
頂部


Re: 各位高手我把程式pO上來了~~~指點中
高級會員
高級會員


Hello,

temp宣告為local variable好像沒什幫助。
union及struct用在A/D讀值的擷取,你可以參考TAIWAN MICROCHIP的範例程式!

發表於: 2007/4/25 11:32
頂部


Re: 懇請高手們指點~~~謝謝
高級會員
高級會員


(1).不知你是否有設定 ANALOG SELECT REGISTER(ANSEL)?
(2).LCD無畫面 :LCD initial的timing及設定是否正確?

發表於: 2007/4/24 10:45
頂部


Re: 為什麼PIC16F877上有VDD PIN 腳有兩個?
高級會員
高級會員


請問:

不好意思還是有疑問,因為我現在除了寫pic16f877外還有接觸20 pin的pic16f687。
PIC16F687的VDD只有一腳但MAX current into Vdd pin 也是250mA,因此似乎16F877用了兩根Vdd也沒增加MAX current into Vdd pin ?為什麼呢?

謝謝。

發表於: 2007/4/23 19:26
頂部


Re: 為什麼PIC16F877上有VDD PIN 腳有兩個?
高級會員
高級會員


謝謝,
請問In the pic16f87x datasheet electrical characteristics,
Max current out of Vss pin is 300mA and Max current into Vdd pin is 250mA 這兩個max電流值是指Vss及Vdd 還沒combined的電流嗎?

Thank you very much.

發表於: 2007/4/23 15:29
頂部


Re: 為什麼PIC16F877上有VDD PIN 腳有兩個?
高級會員
高級會員


請問:

In the datasheet ch15.0 Electrical Characterics,
Max output current sink(source) by any i/o port is 25mA,
and Max current sink(source) by PORTA,PORTB,PORTD(Combined) is 200mA.

這段話什麼意思呢?為什麼說每一個I/O 的電流為25mA,PORT combined 後卻能達200mA呢?

Thank you very much.

發表於: 2007/4/23 14:46
頂部


Re: 為什麼PIC16F877上有VDD PIN 腳有兩個?
高級會員
高級會員


請問:
增加的電流指什麼電流呢?
是PORT的SOURCE CURRENT 及SINK CURRENT嗎?

Thank you very much.

發表於: 2007/4/23 13:48
頂部


為什麼PIC16F877上有VDD PIN 腳有兩個?
高級會員
高級會員


Dear all,

為什麼PIC16F877上VDD PIN 及VSS PIN腳各有兩個?
是什麼原因會這樣設計呢?

Thanks very much.

發表於: 2007/4/20 16:06
頂部


Re: 請問High-Tech C支援16F913嗎?
高級會員
高級會員


我的信箱:kbat524@yahoo.com.tw 麻煩版主寄給我!

發表於: 2006/11/15 20:54
頂部


Re: HELP!!pic60--u.lib
高級會員
高級會員


我的信箱:kbat524@yahoo.com.tw 麻煩版主寄給我!謝謝

發表於: 2006/11/15 20:52
頂部



« 1 ... 12 13 14 (15)



:::

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... ]

教育訓練中心

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