Texas Instruments TMS320C6000 Reference Manual page 151

Chip support library api
Hide thumbs Also See for TMS320C6000:
Table of Contents

Advertisement

Example
4.11.19
MCBSP_MK_SRGR
Macro
Arguments
UINT32 Spcr;
/* you can do this /
Spcr = MCBSP_MK_SPCR(0,0,0,0,0,0,0,0,0,0);
/ or to be more readable, you can do this */
Spcr = MCBSP_MK_SPCR(
MCBSP_SPCR_RRST_YES,
MCBSP_SPCR_RINTM_RRDY,
MCBSP_SPCR_DXENA_NA,
MCBSP_SPCR_CLKSTP_DISABLE,
MCBSP_SPCR_RJUST_RZF,
MCBSP_SPCR_DLB_OFF,
MCBSP_SPCR_XRST_YES,
MCBSP_SPCR_XINTM_XRDY,
MCBSP_SPCR_GRST_YES,
MCBSP_SPCR_FRST_YES
);
Makes a value suitable for the sample rate generator
register
MCBSP_MK_SRGR(
clkgdv,
fwid,
fper,
fsgm,
clksm,
clksp,
gsync
)
Clock divider:
clkgdv
Frame width:
fwid
Frame period:
fper
Transmit frame sync mode:
fsgm
MCBSP_SRGR_CLKGDV_OF(x)
MCBSP_SRGR_FWID_OF(x)
MCBSP_SRGR_FPER_OF(x)
MCBSP_SRGR_FSGM_DXR2XSR
MCBSP_SRGR_FSGM_FSG
CSL API Reference
MCBSP
4-103

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C6000 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents