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


Browsing this Thread:   1 Anonymous Users






Re: LED輸出問題
#10
高級會員
高級會員


查看用戶資訊
多謝Qoo77777 分享的寶貴經驗....
我也換塊板子試試!!

發表於: 2005/3/2 20:46
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: LED輸出問題
#9
中級會員
中級會員


查看用戶資訊
參照:

cat520 寫道:
我的情形也一樣....
其它接腳的LED也會微微亮...
到現在還找不出原因....



我的問題解決了,是電路上的問題,換塊板子就OK了,應該是PMOS那部份產生的問題,把原本應該0V的腳位升到2V,只是不知道為何會如此

發表於: 2005/3/2 16:09
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: LED輸出問題
#8
版主
版主


查看用戶資訊
數位這種東西,會微微的亮就有問題,最好把問題找出來解決,這樣對IC比較保險。

發表於: 2005/3/2 16:08
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: LED輸出問題
#7
高級會員
高級會員


查看用戶資訊
我的情形也一樣....
其它接腳的LED也會微微亮...
到現在還找不出原因....

發表於: 2005/3/2 15:38
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: LED輸出問題
#6
高級會員
高級會員


查看用戶資訊
就數位電路而言0 V ~ 2 V是不明狀態
最好是2.5 V以上或是3 V較保險
所以是否接個提升電阻
應該就可以了
試試看

發表於: 2005/3/1 18:56
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: LED輸出問題
#5
中級會員
中級會員


查看用戶資訊
我想應該是我電路的問題,因為我板子上有一個PMOS,因此造成我有沒用到的腳位PORTA、PORTB、PORTC、PORTE等為2V而不是0V

發表於: 2005/3/1 18:45
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: LED輸出問題
#4
版主
版主


查看用戶資訊
這個問題很少見到??

1. 電路接錯了(電路很簡單應該不會吧)
2. 程式寫錯
3. 請問你有動到 TRISE<PSPMODE> 位元嗎? 如不小心設為"1" 就會將 PSP 功能打開,PORTD 的功能就消失了。

發表於: 2005/3/1 14:38
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: LED輸出問題
#3
中級會員
中級會員


查看用戶資訊
我的程式如下,因為覺得LED情況怪怪的,所以用簡單的IO測試,果然......

#include <p18f452.h>

void main(void)
{
TRISD = 0;
LATD = 1;
}

發表於: 2005/3/1 14:31
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: LED輸出問題
#2
資深會員
資深會員


查看用戶資訊
程式碼貼上來比較清楚
RD1~RD7是設為輸入還是輸出?
把資料送到LATD,0不要送到PORTD,0試試

發表於: 2005/3/1 14:15
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


LED輸出問題
#1
中級會員
中級會員


查看用戶資訊
我使用PIC18F452
使用PORTD輸出,LED接330歐姆的電阻,再接地

測試時,讓RD0亮,但是其他RD1~RD7都會微亮!!

量過電壓,RDO輸出為4.2V --->正常
RD1~RD7均為2.01V --->應該要為0V吧!!

換另外一顆PIC情況一樣

請問有哪些原因會造成如此情況??該如何解決呢??

發表於: 2005/3/1 13:50
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







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.

[進階搜尋]


:::

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

教育訓練中心

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