• slider image 442
  • slider image 492
  • slider image 493
  • slider image 494
  • slider image 495
  • slider image 496
  • slider image 491
:::


Browsing this Thread:   1 Anonymous Users






Re: 關於c30的問題
#2
版主
版主


查看用戶資訊
1. 有的。
2. OpenDCI 有支援I2S 模式,請看 C:\Program Files\Microchip\MPLAB C30\docs\16-bit Peripheral Libraries.htm 的說明

3.5         OpenDCI
 

Function Prototype
 void OpenDCI
(unsigned int config1,

   
unsigned int config2,

   
unsigned int config3,

   
unsigned int trans_mask,

   
unsigned int recv_mask);
 
Include
 
dci.h
 
Description
 This 
function configures the DCI module.
 
Arguments
 config1 
The parameters to be configured in the DCION1 register as defined below:

Module On/Off

   DCI_EN

   DCI_DIS

Idle Mode Operation

   DCI_IDLE_CON

   DCI_IDLE_STOP

DCI Loopback Mode Enable

   DCI_DIGI_LPBACK_EN

   DCI_DIGI_LPBACK_DIS

CSCK pin direction select

   DCI_SCKD_INP

   DCI_SCKD_OUP

DCI sampling edge selection

   DCI_SAMP_CLK_RIS

   DCI_SAMP_CLK_FAL

FS pin direction select

   DCI_FSD_INP

   DCI_FSD_OUP

Data to be transmitted during underflow

   DCI_TX_LASTVAL_UNF

   DCI_TX_ZERO_UNF

SDO pin status during transmit disable

   DCI_SDO_TRISTAT

   DCI_SDO_ZERO

Data justification control

   DCI_DJST_ON

   DCI_DJST_OFF

Frame Sync mode select

   DCI_FSM_ACLINK_20BIT

   DCI_FSM_ACLINK_16BIT

   DCI_FSM_I2S

   DCI_FSM_MULTI

 

config2 
This contains the parameters to be configured in

the DCICON2 register 
as defined below:

DCI Buffer length

   DCI_BUFF_LEN_4

   DCI_BUFF_LEN_3

   DCI_BUFF_LEN_2

   DCI_BUFF_LEN_1

DCI Frame sync generator control

   DCI_FRAME_LEN_16

   DCI_FRAME_LEN_15

   DCI_FRAME_LEN_14

   
.....

   
DCI_FRAME_LEN_1

DCI data word size

   DCI_DATA_WORD_16

   DCI_DATA_WORD_15

   DCI_DATA_WORD_14

   
.....

   
DCI_DATA_WORD_5

   DCI_DATA_WORD_4

 

config3 
The bit clock generator value to be configured in the DCICON3 register.

 

trans_mask The transmit receive slot.

 

recv_mask Enable bits to be configured into the TSCON RSCON register as defined below:

   
DCI_DIS_SLOT_15

   DCI_DIS_SLOT_14

   
.....

   
DCI_DIS_SLOT_1

   DCI_DIS_SLOT_0

   DCI_EN_SLOT_ALL

   DCI_DIS_SLOT_ALL
 
Return Value
 None
 
Remarks
:
 
This routine configures the following parameters:

1. DCICON1 registerEnable bitFrame Sync modeData JustificationSample Clock DirectionSample ClockEdge ControlOutput Frame Synchronization Directions ControlContinuous Transmit/Receive modeUnderflow mode.

2. DCICON2 registerFrame Sync Generator ControlData Word Size bitsBuffer Length Control bits.

3. DCICON3 registerClock Generator Control bits

4. TSCON register
Transmit Time Slot Enable Control bits.

5. RSCON registerReceive Time Slot Enable Control bits.
 
Source File:
 
OpenDCI.c

發表於: 2007/9/7 10:33
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


關於c30的問題
#1
新會員
新會員


查看用戶資訊
請問一下c30是否有支援dsPIC30F4013?
另外請問他的DCI MODULE如何讓他支援I2S?

發表於: 2007/9/6 16:25
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... ]

教育訓練中心

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