Renesas Single-Chip Microcomputer M38C89T-ADF Manual do Utilizador Página 124

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 138
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 123
5-8
Rev.1.00 May 22 2012
REJ09B0566
4BUsage Examples
5
5.4 24BDMA controller
destination_string_1,
strlen(source_string_1),
0,
0,
0,
DMAC0_transfer_end_handler,
7
);
/* Configure channel 1 */
R_DMAC_Create(
1,
PDL_DMAC_CONSECUTIVE | PDL_DMAC_SOURCE_ADDRESS_PLUS | \
PDL_DMAC_DESTINATION_ADDRESS_PLUS,
0,
source_string_2,
destination_string_2,
strlen(source_string_2),
0,
0,
0,
PDL_NO_FUNC,
0
);
/* Enable the SW3 interrupt */
R_INTC_CreateExtInterruptAll(
PDL_INTC_IRQ3,
PDL_INTC_FALLING | PDL_INTC_B | PDL_INTC_DMAC_TRIGGER_ENABLE,
PDL_NO_FUNC,
0
);
/* Enable channel 0 */
R_DMAC_Control(
PDL_DMAC_0,
PDL_DMAC_ENABLE,
PDL_NA,
PDL_NA,
PDL_NA
);
/* Enable and start channel 1 */
R_DMAC_Control(
PDL_DMAC_1,
PDL_DMAC_ENABLE | PDL_DMAC_START,
PDL_NA,
PDL_NA,
PDL_NA
);
/* Read the status for channel 0 */
R_DMAC_GetStatus(
0,
&StatusValue,
&SourceAddr,
&DestAddr,
&ByteCount
);
while(1);
}
void DMAC0_transfer_end_handler(void)
{
/* Invert the port pin */
Vista de página 123
1 2 ... 119 120 121 122 123 124 125 126 127 128 129 ... 137 138

Comentários a estes Manuais

Sem comentários