전자부품 데이터시트 검색엔진
  Korean  ▼

Delete All
ON OFF
ALLDATASHEET.CO.KR

X  

Preview PDF Download HTML

ATMEGA1280 데이터시트(HTML) 37 Page - ATMEL Corporation

부품명 ATMEGA1280
상세내용  8- BIT Microcontroller with 256K Bytes In-System Programmable Flash
Download  407 Pages
Scroll/Zoom Zoom In 100% Zoom Out
제조사  ATMEL [ATMEL Corporation]
홈페이지  http://www.atmel.com
Logo 

ATMEGA1280 데이터시트(HTML) 37 Page - ATMEL Corporation

Zoom Inzoom in Zoom Outzoom out
/ 407 page
 37 / 407 page
background image
37
ATmega640/1280/1281/2560/2561
2549A–AVR–03/05
Note:
1. See “About Code Examples” on page 8.
Assembly Code Example
(1)
; OFFSET is defined to 0x4000 to ensure
; external memory access
; Configure Port C (address high byte) to
; output 0x00 when the pins are released
; for normal Port Pin operation
ldi
r16, 0xFF
out
DDRC, r16
ldi
r16, 0x00
out
PORTC, r16
; release PC7:6
ldi
r16, (1<<XMM1)
sts
XMCRB, r16
; write 0xAA to address 0x0001 of external
; memory
ldi
r16, 0xaa
sts
0x0001+OFFSET, r16
; re-enable PC7:6 for external memory
ldi
r16, (0<<XMM1)
sts
XMCRB, r16
; store 0x55 to address (OFFSET + 1) of
; external memory
ldi
r16, 0x55
sts
0x0001+OFFSET, r16
C Code Example(1)
#define OFFSET 0x4000
void
XRAM_example(void)
{
unsigned char *p = (unsigned char *) (OFFSET + 1);
DDRC = 0xFF;
PORTC = 0x00;
XMCRB = (1<<XMM1);
*p = 0xaa;
XMCRB = 0x00;
*p = 0x55;
}


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


데이터시트 Download




링크 URL



Privacy Policy
ALLDATASHEET.CO.KR
ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ]  

Alldatasheet는?   |   광고문의    |   운영자에게 연락하기   |   개인정보취급방침   |   즐겨찾기   |   링크교환   |   제조사별 검색
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