Datenblatt-Suchmaschine für elektronische Bauteile
  German  ▼
ALLDATASHEETDE.COM

X  

ATmega162 Datenblatt(PDF) 34 Page - ATMEL Corporation

Teilenummer ATmega162
Bauteilbeschribung  8-bit Microcontroller with 16K Bytes In-System Programmable Flash
PDF  324 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Hersteller  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

ATmega162 Datenblatt(HTML) 34 Page - ATMEL Corporation

Back Button ATmega162 Datasheet HTML 30Page - ATMEL Corporation ATmega162 Datasheet HTML 31Page - ATMEL Corporation ATmega162 Datasheet HTML 32Page - ATMEL Corporation ATmega162 Datasheet HTML 33Page - ATMEL Corporation ATmega162 Datasheet HTML 34Page - ATMEL Corporation ATmega162 Datasheet HTML 35Page - ATMEL Corporation ATmega162 Datasheet HTML 36Page - ATMEL Corporation ATmega162 Datasheet HTML 37Page - ATMEL Corporation ATmega162 Datasheet HTML 38Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 34 / 324 page
background image
34
2513K–AVR–07/09
ATmega162/V
Using all 64KB
Locations of External
Memory
Since the external memory is mapped after the internal memory as shown in Figure 11, only
64,256 Bytes of external memory are available by default (address space 0x0000 to 0x04FF is
reserved for internal memory). However, it is possible to take advantage of the entire external
memory by masking the higher address bits to zero. This can be done by using the XMMn bits
and control by software the most significant bits of the address. By setting Port C to output 0x00,
and releasing the most significant bits for normal Port Pin operation, the Memory Interface will
address 0x0000 - 0x1FFF. See code example below.
Note:
1. The example code assumes that the part specific header file is included.
Care must be exercised using this option as most of the memory is masked away.
Assembly Code Example(1)
; OFFSET is defined to 0?2000 to ensure
; external memory access
; Configure Port C (addr?ss high byte) to
; output 0x00 when the p?ns are released
; for normal Port Pin op?ration
ldi
r16, 0xFF
out
DDRC, r16
ldi
r16, 0x00
out
PORTC, r16
; release PC7:5
ldi
r16, (1<<XMM1)|(1<<XMM0)
out
SFIOR, r16
; write 0xAA to address ?x0001 of external
; memory
ldi
r16, 0xaa
sts
0x0001+OFFSET, r16
; re-enable PC7:5 for ex?ernal memory
ldi
r16, (0<<XMM1)|(0<<XMM0)
out
SFIOR, r16
; store 0x55 to address ?OFFSET + 1) of
; external memory
ldi
r16, 0x55
sts
0x0001+OFFSET, r16
C Code Example
(1)
#define OFFSET 0x2000
void
XRAM_example(void)
{
unsigned char *p = (unsigned char *) (OFFSET + 1);
DDRC = 0xFF;
PORTC = 0x00;
SFIOR = (1<<XMM1) | (1<<XMM0);
*p = 0xaa;
SFIOR = 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


Datenblatt Download

Go To PDF Page


Link URL



War ALLDATASHEET hilfreich?  [ DONATE ] 

Über Alldatasheet   |   Werbung   |   Kontakt   |   Privatsphäre und Datenschutz   |   Link zum Datenblatt    |   Linktausch   |   Hersteller
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