Brise

ATMEGA128 스펙 study 본문

MCU

ATMEGA128 스펙 study

naudhizb 2014. 9. 24. 14:49
반응형




atmega128 pro.pdf


ATMEGA128.pdf







아트메가128의 특징


 Harvard architecture

• 8비트 고성능-저전력 마이크로프로세서(고성능???)

• RISC 아키텍쳐(133개의 명령어, 대부분이 1사이클에 실행 가능(곱셈은 2사이클)

• 32*8 범용 레지스터

• 128KB Flash(10M Write/Erase cycle), 4KB EEPROM(100M Write/Erase cycle) 4KB SRAM

 64KB까지 외부 메모리 확장 가능(Up to 64Kbytes Optional External Memory Space)

• JTAG (IEEE std. 1149.1 Compliant) Interface

 Two 8-bit Timer/Counters with Separate Prescalers and Compare Modes

 Two Expanded 16-bit Timer/Counters with Separate Prescaler, Compare Mode and Capture

Mode

 Two 8-bit PWM Channels

 6 PWM Channels with Programmable Resolution from 2 to 16 Bits

 Output Compare Modulator

 8-channel, 10-bit ADC


 Byte-oriented Two-wire Serial Interface

 Dual Programmable Serial USARTs

 Master/Slave SPI Serial Interface


 Power-on Reset and Programmable Brown-out Detection

 External and Internal Interrupt Sources


 Six Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, Standby, and

Extended Standby (뒷부분에 추가 설명)


• Operating Voltages

– 4.5 - 5.5V ATmega128




아트메가의 (특수한)모드


 The Power-down mode saves the register contents but freezes the Oscillator, disabling all other chip functions

until the next interrupt or Hardware Reset.

 In Power-save mode, the asynchronous timer continues to run, allowing the user to maintain a timer base while the rest of the device is sleeping.

The ADC Noise Reduction mode stops the CPU and all I/O modules except Asynchronous Timer and ADC, to minimize switching noise during ADC conversions.

 In Standby mode, the Crystal/Resonator Oscillator is running while the rest of the device is sleeping. This allows very fast start-up combined with low power consumption.

 In Extended Standby mode, both the main Oscillator and the Asynchronous Timer continue to run.






아트메가 핀의 사용과 종류



Port A (PA7..PA0) 


 Port A is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The

Port A output buffers have symmetrical drive characteristics with both high sink and source

capability. As inputs, Port A pins that are externally pulled low will source current if the pull-up

resistors are activated. The Port A pins are tri-stated when a reset condition becomes active,

even if the clock is not running. Port A also serves the functions of various special features of the ATmega128 as listed on page 72.(외부 메모리 인터페이스로 활용 가능)




Port B (PB7..PB0)


 Port B is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The

Port B output buffers have symmetrical drive characteristics with both high sink and source

capability. As inputs, Port B pins that are externally pulled low will source current if the pull-up

resistors are activated. The Port B pins are tri-stated when a reset condition becomes active,

even if the clock is not running. Port B also serves the functions of various special features of the ATmega128 as listed on page 73.( Counter 0/1/2의 PWM 출력, SPI 통신포트로 사용 가능)




Port C (PC7..PC0)


 Port C is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The

Port C output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs, Port C pins that are externally pulled low will source current if the pull-up resistors are activated. The Port C pins are tri-stated when a reset condition becomes active, even if the clock is not running. Port C also serves the functions of special features of the Atmel® AVR®ATmega128 as listed on page 76. In ATmega103 compatibility mode, Port C is output only, and the port C pins are not tristated when a reset condition becomes active.

(외부 메모리 인터페이스로 활용 가능)


Note: The ATmega128 is by default shipped in ATmega103 compatibility mode. Thus, if the parts are not

programmed before they are put on the PCB, PORTC will be output during first power up, and until

the ATmega103 compatibility mode is disabled.



Port D (PD7..PD0) 


 Port D is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The

Port D output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs, Port D pins that are externally pulled low will source current if the pull-up resistors are activated. The Port D pins are tri-stated when a reset condition becomes active, even if the clock is not running. Port D also serves the functions of various special features of the ATmega128 as listed on page 77. (외부 인터럽트, 외부 클럭/타이머 input으로 활용 가능)



Port E (PE7..PE0) 


 Port E is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The

Port E output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs, Port E pins that are externally pulled low will source current if the pull-up resistors are activated. The Port E pins are tri-stated when a reset condition becomes active,even if the clock is not running. Port E also serves the functions of various special features of the ATmega128 as listed on page 80. 

(외부 인터럽트, 외부 클럭/타이머 input counter3 output, Analog comperator, Programming in/out, UART0로 활용 가능)




Port F (PF7..PF0)


 Port F serves as the analog inputs to the A/D ConverterPort F also serves as an 8-bit bi-directional I/O port, if the A/D Converter is not used. Port pins can provide internal pull-up resistors (selected for each bit). The Port F output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs, Port F pins that are externally pulled low will source current if the pull-up resistors are activated. The Port F pins are tri-stated when a reset condition becomes active, even if the clock is not running. If the JTAG interface is enabled, the pull-up resistors on pins PF7(TDI), PF5(TMS), and PF4(TCK) will be activated even if a Reset occurs. The TDO pin is tri-stated unless TAP states that shift out data are entered. Port F also serves the functions of the JTAG interface.

 In ATmega103 compatibility mode, Port F is an input Port only.




Port G (PG4..PG0)


 Port G is a 5-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port G output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs, Port G pins that are externally pulled low will source current if the pull-up resistors are activated. The Port G pins are tri-stated when a reset condition becomes active, even if the clock is not running. Port G also serves the functions of various special featuresThe port G pins are tri-stated when a reset condition becomes active, even if the clock is not running.

In ATmega103 compatibility mode, these pins only serves as strobes signals to the external

memory as well as input to the 32kHz Oscillator, and the pins are initialized to PG0 = 1, PG1 = 1,

and PG2 = 0 asynchronously when a reset condition becomes active, even if the clock is not

running. PG3 and PG4 are oscillator pins.



AVCC


 AVCC is the supply voltage pin for Port F and the A/D Converter. It should be externally connected

to VCC, even if the ADC is not used. If the ADC is used, it should be connected to VCC through a low-pass filter. 



AREF


 AREF is the analog reference pin for the A/D Converter.



PEN

 PEN is a programming enable pin for the SPI Serial Programming mode, and is internally pulled high . By holding this pin low during a Power-on Reset, the device will enter the SPI Serial Programming mode. PEN has no function during normal operation.




CPU 설명

- 8비트 버스에 주변기기가 물려있음

- 32*8 범용레지스터

- 6*32 간접 주소 포인터 레지스터





레지스터 정리












adc

http://miobot.tistory.com/28



반응형

'MCU' 카테고리의 다른 글

0.96'' OLED Display  (0) 2014.10.23
stm32f4 개발관련 사이트  (0) 2014.10.02
ATMEGA128 (아트메가128) 구동전압  (0) 2014.09.28
ATMEGA128(아트메가128) 개발환경  (0) 2014.09.28
아두이노 듀에 : 시리얼 중계하기  (0) 2014.09.18
stm32 라이브러리 종류  (0) 2014.09.04
STM32f4 개발환경 in Ubuntu  (0) 2014.09.01
Comments