다 같이 인사를~ 안녕~
MCU Control Register – MCUCR
|
Bit |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
SRE |
SRW10 |
SE |
SM1 |
SM0 |
SM2 |
IVSEL |
IVCE |
|
Read/Write |
R/W |
R/W |
R/W |
R/W |
R/W |
R/W |
R/W |
R/W |
|
Initial Value |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
Bit 7 – SRE: External SRAM/XMEM Enable
Writing SRE to one enables the External Memory Interface.The pin functions AD7:0,
A15:8, ALE, WR, and RD are activated as the alternate pin functions. The SRE bit overrides
any pin direction settings in the respective data direction registers. Writing SRE to
zero, disables the External Memory Interface and the normal pin and data direction settings
are used.
Bit 6 – SRW10: Wait-state Select Bit
For a detailed description in non-ATmega103 compatibility mode, see common description
for the SRWn bits below (XMCRA description). In ATmega103 compatibility mode,
writing SRW10 to one enables the wait-state and one extra cycle is added during
read/write strobe as shown in Figure 14.
내 포스팅이 검색엔진에 노출되도록 하기 위한 rss 등록 page
Daum : http://cs.daum.net/mail/form/15.html
Yahoo : http://kr.helpboard.yahoo.com/helpfeedback/s_center.html?p_isblog=Y&p_qtype=1
Nate : http://add.nate.com/
Paran : http://add.paran.com/
인터럽트 서비스 루틴
#pragma로 인터럽트 주소 지정. ISR 함수명 앞에 “__interrupt” 키워드 추가.
Ex) #pragma vector=0x0b
__interrupt void timer0_isr (void)
|
|
ATmega64 |
ATmega128A |
|
Flash (Kbytes) |
64 |
128 |
|
EEPROM (Kbytes) |
2 |
4 |
|
SRAM (Bytes) |
4096 |
4096 |
|
Max I/O Pins |
54 |
53 |
|
F.max (MHz) |
16 |
16 |
|
Vcc (V) |
2.7 – 5.5 |
2.7 – 5.5 |
|
10-bit A/D Channels |
8 |
8 |
|
Analog Comparator |
Yes |
Yes |
|
16-bit Timers |
2 |
2 |
|
8-bit Timer |
2 |
2 |
|
Brown Out Detector |
Yes |
Yes |
|
Ext Interrupts |
8 |
8 |
|
Hardware Multiplier |
Yes |
Yes |
|
Interrupts |
34 |
34 |
|
ISP |
Yes |
Yes |
|
On Chip Oscillator |
Yes |
Yes |
|
PWM Channels |
8 |
8 |
|
RTC |
Yes |
Yes |
|
Self Program Memory |
Yes |
Yes |
|
SPI |
1 |
1 |
|
TWI |
Yes |
Yes |
|
UART |
2 |
2 |
|
Watchdog |
Yes |
Yes |
|
Pb-Free Packages |
MLF (VQFN) 64 TQFP 64 |
MLF (VQFN) 64 TQFP 64 |
결론적으로는 메모리 차이인거다.
MPLAB IDE 8.30을 설치하려 하는데 시작도 하기 전에
Error 1324. The path ?? contains an invalid character.
라는 메시지가 떴다.
뭐지? 해서 다음 버전을 받아 보았지만 역시 마찬가지.
아무래도 그 컴퓨터 언어가 일본어로 되어있어서 그런 것 같은데 확신은 없는 상황.
그래서 그냥 무작정 한국어로 바꿔보기로 결정했다. 결론적으론 해결되었고.
1. 제어판 -> 날짜, 시간, 언어 및 국가별 옵션에 들어간다.
2. 국가 및 언어 옵션에 들어간다.
3. 국가별 옵션 탭에서 한국어를 선택한다.
여기까지 하고 재부팅을 했는데 그래도 똑같은 상황이었다. 결론은 4번. 4번이 가장 중요했다.
4. 고급 탭에 들어가 한국어로 바꿔준다.
이렇게 하고 재부팅 해줬더니 깔끔하게 설치완료. 에휴, 별게 다 말썽이다.
Software reset이 필요한 경우
asm("jmp 0");
또는
#define WDR asm("WDR")
WDR;
이렇게 하면 된다.
하드웨어적으로 리셋 시켜주는 편이 더 좋긴 하겠지만...