| Moteur de recherche de fiches techniques de composants électroniques |
|
PIC24H Fiches technique(PDF) 117 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC24H Fiches technique(HTML) 117 Page - Microchip Technology |
|
117 / 290 page ![]() © 2006 Microchip Technology Inc. Preliminary DS70175D-page 117 PIC24H 7.4 DMA Initialization Example The following is a DMA initialization example: EXAMPLE 7-1: DMA SAMPLE INITIALIZATION METHOD // Clear all DMA controller status bits to a known state DMACS0 = 0; // Set up DMA Channel 0: Word mode, Read from Peripheral & Write to DMA; Interrupt when all the data has been moved; Indirect with post-increment; Continuous mode with Ping-Pong Disabled DMA0CON = 0x000D; //Automatic DMA transfer initiation by DMA request; DMA Peripheral IRQ Number set up for ADC1 DMA0REQ = 0x0000; // Set up offset into DMA RAM so that the buffer that collects A/D result data starts at the base of DMA RAM DMA0STA = 0x0000; // DMA0PAD should be loaded with the address of the A/D conversion result register DMA0PAD = (volatile unsigned int) &ADC1BUF0; // DMA transfer of 256 words of data DMA0CNT = 0x0100 ; //Clear the DMA0 Interrupt Flag IFS0bits.DMA0IF = 0; //Enable DMA0 Interrupts IEC0bits.DMA0IE = 1; //Enable the DMA0 Channel DMA0CONbits.CHEN = 1; |
|
Lien URL |
| ALLDATASHEET vous a-t-il été utile ? [ DONATE ] |
À propos de Alldatasheet | Publicité | Contactez-nous | Politique de confidentialité | Lien vers la fiche technique | Echange de liens | Fabricants All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |