Andes Workshop

It is currently Thu Mar 28, 2024 9:07 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: ADP-XC5的I/O PORT
PostPosted: Mon Dec 03, 2012 9:20 pm 
Offline

Joined: Mon Dec 03, 2012 5:39 pm
Posts: 5
你好,

請問ADP-XC5這塊版子上的排針(ex: J31、J32或J37),那些是可以接收外部訊號到板子內?
(訊號是數位訊號,約16~18bits)

如果有的話,我想請問一下是否有提供類似的lab可以讓我參考,謝謝。


Top
 Profile Send private message E-mail  
 
 Post subject: Re: ADP-XC5的I/O PORT
PostPosted: Wed Dec 05, 2012 5:14 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
附件是這3個排針的圖,內建的SOC已經把port用掉大部份。
請問netlist是您要自己合嗎?


Attachments:
j37.jpg
j37.jpg [ 104.28 KiB | Viewed 35839 times ]
j32.jpg
j32.jpg [ 79.83 KiB | Viewed 35839 times ]
j31.jpg
j31.jpg [ 140.57 KiB | Viewed 35839 times ]
Top
 Profile Send private message E-mail  
 
 Post subject: Re: ADP-XC5的I/O PORT
PostPosted: Fri Dec 07, 2012 4:17 pm 
Offline

Joined: Mon Dec 03, 2012 5:39 pm
Posts: 5
您好:
1.內建的SOC已經把port用掉大部份。
我不太懂您說的意思。

2.請問netlist是您要自己合嗎?
這塊板子上的已經燒錄Andes N12的core。

我的想法是,我現在有一個input端會產生16(18)bit的數位訊號,我想經過板子上的這些排針(ports)讀取data然後輸入到cpu裡面,經過運算之後再輸出結果到LCD顯示。那目前的問題是我不確定那些排針可以當作我的input ports,所以想了解板子上每個ports的功能。

還有我想請問一下,關於GPIO的這個部分,ADP-XC5這塊只定義SW4~SW8,那其他的J31、J32或J37可以當作GPIO來使用,然後實現我上述的想法嗎?

謝謝。


Top
 Profile Send private message E-mail  
 
 Post subject: Re: ADP-XC5的I/O PORT
PostPosted: Tue Dec 11, 2012 4:19 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
您好,Andes是否已有人與您連繫?
問題解決了嗎?


Top
 Profile Send private message E-mail  
 
 Post subject: Re: ADP-XC5的I/O PORT
PostPosted: Tue Dec 11, 2012 11:29 pm 
Offline

Joined: Mon Dec 03, 2012 5:39 pm
Posts: 5
您好,

是有與Andes的人員討論,目前我已經把整個問題向他說明,但問題還沒解決。

謝謝您提供的意見。


Top
 Profile Send private message E-mail  
 
 Post subject: Re: ADP-XC5的I/O PORT
PostPosted: Tue Jan 15, 2013 6:09 pm 
Offline

Joined: Mon Dec 03, 2012 5:39 pm
Posts: 5
ADP-XC5上面的J32有些pin腳定義為GPIO6, 7,8, 9, 11, 13, 14,然後我參考AG101P Datasheet,
其中第61頁中的定義是GPIO的input data register(程式碼寫法如下)
#define GPIO_DataIn *((unsigned int *)0x98700004)
在我的測試結果中,GPIO1~5(SW4~8)可以經過GpioDataIn變數讀值進去到CPU中,但是GPIO6, 7,8, 9, 11, 13, 14皆無反應,而程式碼這樣子的寫法不是已經定義全部的GPIO將由GPIO_DataIn傳值,還是說GPIO6, 7,8, 9, 11, 13, 14是需要額外再定義變數嗎?如果是的話請問該如何定義?


Top
 Profile Send private message E-mail  
 
 Post subject: Re: ADP-XC5的I/O PORT
PostPosted: Wed Jan 16, 2013 6:19 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
1.

Q:在AG101P Datasheet第61頁GpioDataOut的這個定義中,如果我令GpioDataOut = 0xFFFF時,他會讓我的所有的GPIO的PIN輸出為high,那是否可以只讓其中某個pin腳當作我的輸出,其他剩餘的GPIO pin腳為輸入?

A:請參照 page253,GPIO要當Input/Output使用時要設定 GPIO_PinDir為o or 1.GPIO可分成GPIO15-0 (0x0000 or 0xFFFF)可控制不同的GPIO.

2.

Q: 在AG101P Datasheet第30頁,有GPIO2(Base=0x9920 0000)這個變數,請問他是對應到我的ADP-XC5中那些GPIO的pin腳?

A:找不到信中所敘述的?



3.

Q: 我想請問一下,我之前請教的問題有解決的方案嗎?

line6 #define GPIO_DataIn *((unsigned int *)0x98700004)

在AG101P Datasheet第61頁中的定義是GPIO的input data register,在我的測試結果中,GPIO1~5(SW4~8)可以經過GpioDataIn變數讀值進去到CPU中,但是GPIO6, 7,8, 9, 11, 13, 14皆無反應,而程式碼line6不是已經定義全部的GPIO將由GPIO_DataIn傳值,還是說

GPIO6, 7,8, 9, 11, 13, 14是需要額外再定義變數嗎?如果是的話請問該如何定義?

A: 當Input使用時必須外部Pull-up or Pull-down 以及參照Table. 176設定IO內部Pull-type/pull-up down.


Top
 Profile Send private message E-mail  
 
 Post subject: Re: ADP-XC5的I/O PORT
PostPosted: Tue Apr 16, 2013 11:54 am 
Offline

Joined: Mon Dec 03, 2012 5:39 pm
Posts: 5
我想請問一下,在AndeShape_AG101P_DS0001_v1.0,第287頁的PCLK的頻率(32.768 KHz),是GPIO的最高工作頻率嗎?如果我的GPIO需要工作在5~10MHz的工作頻率底下,請問有解決的辦法嗎?


Top
 Profile Send private message E-mail  
 
 Post subject: Re: ADP-XC5的I/O PORT
PostPosted: Wed Apr 17, 2013 11:36 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
您好
您的問題我會請相關人員回覆。謝謝。


Top
 Profile Send private message E-mail  
 
 Post subject: Re: ADP-XC5的I/O PORT
PostPosted: Thu Apr 18, 2013 10:44 am 
Offline
User avatar

Joined: Wed Aug 31, 2011 3:43 pm
Posts: 2
Dear Shun-Ren,
PCLK 指的是APB clock 為20MHz. 應該符合您系統的需求.


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group