跳过主要内容

Atmega128l 8位ATMEL MICROCONTROLLER,带有128kbytes内系统可编程闪光灯

ATMEGA128L is ahigh-performance, 低电量,8位微控制器来自基于AVR RISC架构的Microchip。这个微控制器在业余爱好者和开发人员中并不那么受欢迎,但是如果您正在寻找Microchip AVR系列中的中等力量和合理的价格微控制器,那么这可能是您的绝佳选择。

ATMEGA128L引脚配置

ATMEGA328P is a 64 pins chip as shown in the pin diagram above. Many pins of the chip here have more than one function. We will describe the functions of each pin in the below table.

别针

Pin Name

引脚功能

描述和辅助功能

1

Atmega128L programming enable pin

Atmega128L PEN Pin

programming enable pin for the Serial Programming mode

2

PE0

RXD0/(PDI)

PDI/RXD0(编程数据输入

or UART0 Receive Pin)

3

PE1

TXD0/PDO

PDO/TXD0(编程数据输出)

or UART0 Transmit Pin

4

PE2

XCK0/AIN0

Analog Comparator Positive Input or USART0 external clock input/output

5

PE3

OC3A/AIN1

Analog Comparator Negative Input or Output Compare and PWM Output A for Timer/Counter3

6

PE4

OC3B/INT4

External Interrupt4 Input or Output Compare and PWM Output B for Timer/Counter3

7

PE5

OC3C/INT5

External Interrupt 5 Input or Output Compare and PWM Output C for Timer/Counter3

8

PE6

T3/INT6

External Interrupt 6 Input or Timer/Counter3 Clock Input

9

PE7

ICP3/INT7

外部中断7输入或计时器/计数器3输入捕获引脚

10

PB0

Atmega128L SPI Slave Select input

SPI Slave Select input

11

PB1

SCK

SPI巴士串行时钟

12

PB2

莫西

SPI总线主输出/从输入

13

PB3

MISO

SPI BUS MASTER输入/从输出

14

PB4

OC0

输出比较计时器/counter0的PWM输出

15

PB5

OC1A

Output Compare and PWM Output A for Timer/Counter1

16

PB6

OC1B

输出比较计时器/counter1的PWM输出B

17

PB7

OC2/OC1C

Output Compare and PWM Output for Timer/Counter2 or Output Compare and PWM Output C for Timer/Counter1

18

PG3

TOSC2

RTC Oscillator Timer/Counter0

19

PG4

TOSC1/PG4

RTC Oscillator Timer/Counter0

20

Atmega 128L RESET

atmega重置别针

21

VCC

VCC

数字电源电压

22

GND

GND

地面

23

XTAL2

XTAL2

XTAL2 (Chip Clock Oscillator pin 2)

24

XTAL1

XTAL1

XTAL1(芯片时钟振荡器引脚2)

25

PD0

scl/i nt0

外部中断0输入或TWI串行时钟)

26

PD1

SDA/I NT1

外部中断1输入或TWI序列数据

27

PD2

rxd1/i nt2

外部Intrupt2输入或UART1接收PIN

28

PD3

txd1/i nt3

外部中断3输入或UART1发射引脚

29

PD4

ICP1

Timer/Counter1 Input Capture Pin

30

PD5

XCK1

USART1外部时钟输入/输出

31

PD6

T1

Timer/Counter1 Clock Input

32

PD7

T2

Timer/Counter2 Clock Input

33

PG0

Atmega128L Write strobe to external memory

将频闪写入外部记忆

34

PG1

Atmega128L Read strobe to external memory

读取频率到外部内存

35

PC0

A8

兼容模式可用于外部存储器接口

36

PC1

A9

兼容模式可用于外部存储器接口

37

PC2

A10

兼容模式可用于外部存储器接口

38

PC3

A11

兼容模式可用于外部存储器接口

39

PC4

A12

兼容模式可用于外部存储器接口

40

PC5

A13

兼容模式可用于外部存储器接口

41

PC6

A14

兼容模式可用于外部存储器接口

42

PC7

A15

兼容模式可用于外部存储器接口

43

PG2

ALE

ALE是外部数据存储器地址闩锁启用信号。

44

PA7

AD7

外部内存接口地址和数据位7

45

PA6

AD6

外部内存接口地址和数据位6

46

PA5

AD5

外部内存接口地址和数据位5

47

PA4

AD4

外部内存接口地址和数据位4

48

PA3

AD3

外部内存接口地址和数据位3

49

PA2

AD2

外部内存接口地址和数据位2

50

PA1

AD1

外部内存接口地址和数据位1

51

PA0

AD0

外部内存接口地址和数据位0

52

VCC

VCC

数字电源电压

53

GND

GND

地面

54

PF7

ADC7/TDI

ADC input channel 7 or JTAG Test Data Input

55

PF6

ADC6/TDO

ADC输入通道6或JTAG测试数据输出

56

PF5

ADC5/TMS

ADC输入通道5或JTAG测试模式选择

57

PF4

ADC4/TCK

ADC input channel 4 or JTAG Test ClocK

58

PF3

ADC3

ADC input channel 3

59

PF2

ADC2

ADC input channel 2

60

PF1

ADC1

ADC input channel 1

61

PF0

ADC0

ADC input channel 0

62

AREF

AREF

AREF是A/D转换器的模拟参考引脚

63

GND

GND

地面

64

AVCC

AVCC

AVCCis the supply voltage pin for Port F and the A/D Converter. it should be connected to VCC through a low-pass filter.

笔记:检查Atmega128L数据表attached at the bottom of the page for more information on compatibility mode.

ATMEGA128L的功能和规格

  • Operating Voltage: 2.7 - 5.5V ATmega128L
  • Frequency Grade: 0 - 8MHz ATmega128L
  • High Endurance Non-volatile Memory segments
  • 128Kbytes of In-System Self-programmable Flash program memory
  • 4Kbytes EEPROM
  • 4Kbytes内部SRAM
  • Write/Erase cycles: 10,000 Flash/100,000 EEPROM
  • 两个8位PWM通道
  • 6个PWM频道,可编程分辨率从2到16位
  • 8-channel, 10-bit ADC
  • 主/从SPI串行界面
  • Two Expanded 16-bit Timer/Counters with Separate Prescaler, Compare Mode, and Capture Mode
  • 带有芯片振荡器的可编程观察员计时器
  • On-chip Analog Comparator
  • Two 8-bit Timer/Counters with Separate Prescaler
  • 双重可编程串行USARTS
  • 内部校准的RC振荡器
  • Software Selectable Clock Frequency
  • JTAG(IEEESTD。1149.1)符合边界扫描的接口,芯片调试
  • 带独立锁定位的可选引导代码部分
  • In-System Programming by On-chip Boot Program
  • Data retention: 20 years at 85°C/100 years at 25°C

类似的微控制器类似Atmega128L

atmega8,atmega88,atmega8l,ATMEGA328L

如何使用atmega128l

ATMEGA128L是一个微控制器,需要进行编程,否则它不会像其他所有微控制器一样执行任何操作。没有程序,此IC除了消耗电流以运行内部功能外,无能为力。有多种编程Atmega128L微控制器的方法,最受欢迎的方法是使用USBasp Programmerwith AVRDude as a programming interface, you can build and compile your program in order to get a HEX file. When you get your HEX file you can dump the HEX on this IC with the help of the AVRDUDE Program. Another way to program this device is to use theArduino作为ISP程序员,如果您手头上有一个Arduino,则可以搜索网络的许多示例。下一个选项是给那些没有Arduino或Usbasp程序员的人,此过程称为Parallel Programming,您必须使用并口which is only available in older Desktop PCs, if you do not have the port, you can always purchase a PCI Parallel port converter for cheap.

在哪里使用atmega128l

As we have said earlier the Atmega128L is not that popular in comparison to Arduino, although there is an old version of Arduino that uses the ATmega128L as its main Controller. As the price of this controller is less than the ATmega328P along with a program memory of 32 Kbytes. This microcontroller can be used in many battery-powered applications with a watchdog timer to reset under error. It can be used on systems with minimal human interference and also has an advanced multi-mode PWM output that can be used for many different applications. The block diagram of the ATmega128L is shown below-

ATmega128框图

Applications

Atmega328p有数百个申请:

  • 工业控制系统。
  • SMP和电源调节系统。
  • 数字数据处理。
  • 模拟信号测量和操作。
  • 嵌入式系统,例如咖啡机,自动售货机。
  • Motor control systems.
  • 显示单元。
  • 外围接口系统。

2D Model and Dimensions

Below is the 2D model of the IC along with its dimensions in inches(millimeters). The following information can be used to design the custom footprints and be used for PCB designing and CAD modeling.

ATmega128 Dimensions

组件数据表

Related Post



Join 20K+subscribers

我们绝不会垃圾邮件。

*表示需要

Be a part of our ever growing community.


Baidu