Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AT91SAM7A2-AI Datasheet(PDF) 87 Page - ATMEL Corporation

Part # AT91SAM7A2-AI
Description  AT91 ARM Thumb-based Microcontrollers
PDF  369 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

AT91SAM7A2-AI Datasheet(HTML) 87 Page - ATMEL Corporation

Back Button AT91SAM7A2-AI Datasheet HTML 83Page - ATMEL Corporation AT91SAM7A2-AI Datasheet HTML 84Page - ATMEL Corporation AT91SAM7A2-AI Datasheet HTML 85Page - ATMEL Corporation AT91SAM7A2-AI Datasheet HTML 86Page - ATMEL Corporation AT91SAM7A2-AI Datasheet HTML 87Page - ATMEL Corporation AT91SAM7A2-AI Datasheet HTML 88Page - ATMEL Corporation AT91SAM7A2-AI Datasheet HTML 89Page - ATMEL Corporation AT91SAM7A2-AI Datasheet HTML 90Page - ATMEL Corporation AT91SAM7A2-AI Datasheet HTML 91Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 87 / 369 page
background image
87
PRELIMINARY
AT91SAM7A2
6021A–ATARM–07/04
Configuration Steps
•
Enable PDC clock by writing the PDC bit in PMC_PMSR of the PMC peripheral
•
Configuration of PDC_PRA: Address of targeted register TX or RX
•
Configuration of PDC_CR: Flux direction and element size (8-bit, 16-bit, 32-bit)
•
Configuration of PDC_MR: Address of a memory space to receive or transmit data
•
Configuration of PDC_TC: Number of transmissions or receptions to do and start
PDC
PDC Transfer Example
Transmission on SPI
Assuming the following:
•
SPI bits per transfer = 10 on NPCS0 (i.e. BITS[3:0] = 0010b in SPI_CRS0)
•
Number of 10-bit words to transfer: 15
•
Address of buffer in internal RAM for 10-bit words to be transmitted 0x00000100
(first 10-bit word is at address 0x00000100, second 10-bit word is at address
0x00000102, …)
•
SPI clock is enabled (SPI = 1 in SPI_PMSR)
•
SPI is enabled (SPIENS = 1 in SPI_SR)
PDC channel 7 must be configured as follows:
•
PDC_PRA7 = 0xFFFB4084 (i.e. address of the SPI_TDR register)
•
PDC_CR7 = 0x00000003 (i.e. 10-bit words cater in 16-bit words so PDC transfer
size is a half-word incrementing the address pointer by 2 after each transfer,
transfers are done from memory to peripheral so DIR = 1)
•
PDC_MPR7 = 0x00000100 (address of buffer)
•
PDC_TCR7 = 0x0000000F (number of 10-bit words to transfer)
As soon as the software writes the number of bytes to transfer in the PDC_TCR7 regis-
ter, the PDC starts transmitting the 15 10-bit words.
When all the 10-bit words have been transferred to the SPI_TDR register, the TEND bit
in the SPI_SR register will be set to a logical 1 informing the software that the transfer is
completed. The TEND bit in the SPI_SR register can also generate an interrupt if the
corresponding bit is set in the SPI_IMR register.
Note: If a module is used in reception and transmission, the reception channel must be
configured before the transmission channel.
Reception on SPI
Assuming the following:
•
SPI bits per transfer = 8 on NPCS0 (i.e. BITS[3:0] = 0000b in SPI_CRS0)
•
Number of 8-bit words to transfer: 69
SPI
RX: Ch6
Reception
SPI_SR
REND
RDRF
TX: Ch7
Transmission
SPI_SR
TEND
TDRE
Capture CAPT0
Ch8
Reception
CAPT0_SR
PDCEND
DATACAPT
Capture CAPT1
Ch9
Reception
CAPT1_SR
PDCEND
DATACAPT
Table 36. PDC Transfer Status (Continued)
Peripheral
PDC Channel
Transfer Direction
Associated
Peripheral Status
Register
End of Transfer Bit
in Status Register
Status Bit for
PDC_TCRx
Decrement (Trigger)



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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


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