Analog Devices ADSP-BF506F Hardware Reference Manual page 1096

Adsp-bf50x blackfin processor
Hide thumbs Also See for ADSP-BF506F:
Table of Contents

Advertisement

Programming Examples
Listing 22-1. Using the ACM in Conjunction with a SPORT
/*************************************************
** Example pseudo code showing the process for **
** using the ACM in conjunction with a SPORT
*************************************************/
/* SPORT1 Selected
ACLK falling edge occurs after CS
Active low CS
Trigger 1 polarity set to rising edge
Trigger 0 polarity set to rising edge
Trigger 1 select set to PWM_SYNC1
Trigger 0 select set to PWM_SYNC0
ACMTMR1 enabled
ACMTMR0 enabled
ACM disabled */
write(ACM_CTL, 0x4026, 16bit);
/* Timing configurations 1 register
CS width (Tcsw) = 'd10
Hold cycles (Th) = 'd15
Zero cycles (Tz) = 'd2 */
write(ACM_TC1, 0x2f0a, 16bit);
/* Timing configurations 0 register
Clock divisor (CKDIV) = 'd1
Setup cycles (Ts) = 'd0 */
write(ACM_TC0, 0x0001, 16bit);
/* Event 2 ETIME = 'h00000001 */
write(ACM_ET2, 0x00000001, 32bit);
/* ACM signal settings for event 2:
22-42
ADSP-BF50x Blackfin Processor Hardware Reference
**

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADSP-BF506F and is the answer not in the manual?

This manual is also suitable for:

Adsp-bf504Adsp-bf504f

Table of Contents