Slave Mode Setup - Analog Devices ADSP-BF506F Hardware Reference Manual

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

Advertisement

idle;
_main.end:

Slave Mode Setup

Listing 16-2
shows how to configure the slave for interrupt based trans-
fers. The interrupts are serviced in the subroutine
Listing
16-3.
Listing 16-2. Slave Mode Setup
#include <defBF527.h>
/*BF527 is used here as an example—change as appropriate.*/
#include "startup.h"
#define file_size 254
#define SYSMMR_BASE 0xFFC00000
#define COREMMR_BASE 0xFFE00000
.GLOBAL _main;
.EXTERN _TWI_ISR;
.section L1_data_b;
.BYTE TWI_RX[file_size];
.BYTE TWI_TX[file_size] = "transmit.dat";
.section L1_code;
_main:
/***********************************************************
TWI Slave Initialization subroutine
***********************************************************/
TWI_SLAVE_INIT:
ADSP-BF50x Blackfin Processor Hardware Reference
Two-Wire Interface Controller
_TWI_ISR
shown in
16-55

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