Electronic Components Datasheet Search
  English  ▼

X  

70353C Datasheet(PDF) 58 Page - Microchip Technology

Part # 70353C
Description  Section 21. Enhanced Controller Area Network
PDF  76 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

70353C Datasheet(HTML) 58 Page - Microchip Technology

Back Button 70353C Datasheet HTML 54Page - Microchip Technology 70353C Datasheet HTML 55Page - Microchip Technology 70353C Datasheet HTML 56Page - Microchip Technology 70353C Datasheet HTML 57Page - Microchip Technology 70353C Datasheet HTML 58Page - Microchip Technology 70353C Datasheet HTML 59Page - Microchip Technology 70353C Datasheet HTML 60Page - Microchip Technology 70353C Datasheet HTML 61Page - Microchip Technology 70353C Datasheet HTML 62Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 58 / 76 page
background image
dsPIC33E/PIC24E Family Reference Manual
DS70353C-page 21-58
© 2008-2011 Microchip Technology Inc.
21.8.2
DMA Operation for Receiving Data
When the ECAN controller completes a received message (eight words), the completed
message is transferred to a message buffer in device RAM by the DMA module. The ECAN
module generates a receive data interrupt to start a DMA cycle. In response to this interrupt, the
DMA channel that is configured for ECAN message reception reads from the ECAN Receive
Data register (CiRXD) and stores the message in the device RAM buffer. Eight words are
transferred for every message that is received by the ECAN controller. The detailed layout of the
received message is provided in 21.2 “CAN Message Formats”. A sample code for configuring
the DMA channel for ECAN1 reception is shown in Example 21-7.
Example 21-7:
DMA Channel 1 Configuration for ECAN1 Reception
Note:
For more information on how to configure the DMA Controller, refer to Section 22.
“Direct Memory Access (DMA)” (DS70348).
/* This code snippet shows an example of configuring a DMA channel for the
ECAN message reception. Refer to Example 21-4 for an application example */
/* Data Transfer Size: Word Transfer Mode */
DMA1CONbits.SIZE = 0x0;
/* Data Transfer Direction: Peripheral to device RAM */
DMA1CONbits.DIR = 0x0;
/* DMA Addressing Mode: Peripheral Indirect Addressing mode */
DMA1CONbits.AMODE = 0x2;
/* Operating Mode: Continuous, Ping-Pong modes disabled */
DMA1CONbits.MODE = 0x0;
/* Assign ECAN1 Receive event for DMA Channel 0 */
DMA1REQ = 34;
/* Set Number of DMA Transfer per ECAN message to 8 words */
DMA1CNT = 7;
/* Peripheral Address: ECAN1 Receive Register */
DMA1PAD = (volatile unsigned int) &C1RXD;
.
.
.
.
unsigned long address;
DMA1STAL = (unsigned int) &ecan1msgBuf;
DMA1STAH = (unsigned int) &ecan1msgBuf;
/* Channel Enable: Enable DMA Channel 1 */
DMA1CONbits.CHEN = 0x1;
/* Channel Interrupt Enable: Enable DMA Channel 1 Interrupt */
IEC0bits.DMA1IE = 1;



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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