ATMEGA8A-AU

데이터시트 2012. 3. 7. 17:44

 

ATMEGA8A-AU

 

 

DATA SHEET:
 atmega8a_doc8159.pdf

 

 

 

 

 

 

Features

 

• High-performance, Low-power Atmel®AVR® 8-bit Microcontroller

• Advanced RISC Architecture

– 130 Powerful Instructions – Most Single-clock Cycle Execution

– 32 x 8 General Purpose Working Registers

– Fully Static Operation

– Up to 16 MIPS Throughput at 16MHz

– On-chip 2-cycle Multiplier

• High Endurance Non-volatile Memory segments

– 8KBytes of In-System Self-programmable Flash program memory

– 512Bytes EEPROM

– 1KByte Internal SRAM

– Write/Erase Cycles: 10,000 Flash/100,000 EEPROM

– Data retention: 20 years at 85°C/100 years at 25°C

– Optional Boot Code Section with Independent Lock Bits

• In-System Programming by On-chip Boot Program

• True Read-While-Write Operation

– Programming Lock for Software Security

• Peripheral Features

– Two 8-bit Timer/Counters with Separate Prescaler, one Compare Mode

– One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and Capture

Mode

– Real Time Counter with Separate Oscillator

– Three PWM Channels

– 8-channel ADC in TQFP and QFN/MLF package

• Eight Channels 10-bit Accuracy

– 6-channel ADC in PDIP package

• Six Channels 10-bit Accuracy

– Byte-oriented Two-wire Serial Interface

– Programmable Serial USART

– Master/Slave SPI Serial Interface

– Programmable Watchdog Timer with Separate On-chip Oscillator

– On-chip Analog Comparator

• Special Microcontroller Features

– Power-on Reset and Programmable Brown-out Detection

– Internal Calibrated RC Oscillator

– External and Internal Interrupt Sources

– Five Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, and

Standby

• I/O and Packages

– 23 Programmable I/O Lines

– 28-lead PDIP, 32-lead TQFP, and 32-pad QFN/MLF

• Operating Voltages

– 2.7 - 5.5V

• Speed Grades

– 0 - 16MHz

• Power Consumption at 4Mhz, 3V, 25C

– Active: 3.6mA

– Idle Mode: 1.0mA

– Power-down Mode: 0.5μA

 

'데이터시트' 카테고리의 다른 글

USB to RS232 드라이버  (0) 2013.03.17
IRF7389PBF  (0) 2012.11.06
Package information - SO16−28 [WIDE]  (0) 2011.08.28
키 패드 제어, 매트릭스 키, 스위치 제어  (0) 2011.07.15
가변저항(Potentiometer) 3362  (1) 2011.07.07
Posted by WhiteAT
,

 

STM32F103CBT6

 

 

DATA SHEET:



 

 

 

Features

 

■ ARM 32-bit Cortex™-M3 CPU Core

– 72 MHz maximum frequency,

1.25 DMIPS/MHz (Dhrystone 2.1)

performance at 0 wait state memory access

– Single-cycle multiplication and hardware division

■ Memories

– 64 or 128 Kbytes of Flash memory

– 20 Kbytes of SRAM

■ Clock, reset and supply management

– 2.0 to 3.6 V application supply and I/Os

– POR, PDR, and programmable voltage detector (PVD)

– 4-to-16 MHz crystal oscillator

– Internal 8 MHz factory-trimmed RC

– Internal 40 kHz RC

– PLL for CPU clock

– 32 kHz oscillator for RTC with calibration

■ Low power

– Sleep, Stop and Standby modes

– VBAT supply for RTC and backup registers

■ 2 x 12-bit, 1 μs A/D converters (up to 16 channels)

– Conversion range: 0 to 3.6 V

– Dual-sample and hold capability

– Temperature sensor

■ DMA

– 7-channel DMA controller

– Peripherals supported: timers, ADC, SPIs, I2Cs and USARTs

■ Up to 80 fast I/O ports

– 26/37/51/80 I/Os, all mappable on 16

external interrupt vectors and almost all 5 V-tolerant

 

■ Debug mode

– Serial wire debug (SWD) & JTAG interfaces

■ 7 timers

– Three 16-bit timers, each with up to 4 IC/OC/PWM or pulse counter and

quadrature (incremental) encoder input

– 16-bit, motor control PWM timer with deadtime generation and emergency stop

– 2 watchdog timers (Independent and Window)

– SysTick timer 24-bit downcounter

■ Up to 9 communication interfaces

– Up to 2 x I2C interfaces (SMBus/PMBus)

– Up to 3 USARTs (ISO 7816 interface, LIN, IrDA capability, modem control)

– Up to 2 SPIs (18 Mbit/s)

– CAN interface (2.0B Active)

– USB 2.0 full-speed interface

■ CRC calculation unit, 96-bit unique ID

■ Packages are ECOPACK®

 

 

 

 

 

 

 

 

'[STM32] > IC' 카테고리의 다른 글

STM32F103VET6, STM32F103xE  (0) 2012.03.08
STM32F205RET6, STM32F205xx  (0) 2012.03.08
STM32F103RCT6, STM32F103xC  (0) 2012.03.08
STM32F103R6T6A, STM32F103x6  (0) 2012.03.08
STM32F103x4, STM32F103C4T6A  (0) 2012.03.07
Posted by WhiteAT
,

 

STM32F103C4T6A


DATA SHEET: 


 




Features

ARM 32-bit Cortex™-M3 CPU Core

– 72 MHz maximum frequency,

1.25 DMIPS/MHz (Dhrystone 2.1)

performance at 0 wait state memory

access

– Single-cycle multiplication and hardware

division

Memories

– 16 or 32 Kbytes of Flash memory

– 6 or 10 Kbytes of SRAM

Clock, reset and supply management

– 2.0 to 3.6 V application supply and I/Os

– POR, PDR, and programmable voltage

detector (PVD)

– 4-to-16 MHz crystal oscillator

– Internal 8 MHz factory-trimmed RC

– Internal 40 kHz RC

– PLL for CPU clock

– 32 kHz oscillator for RTC with calibration

Low power

– Sleep, Stop and Standby modes

– VBAT supply for RTC and backup registers

2 x 12-bit, 1 μs A/D converters (up to 16

channels)

– Conversion range: 0 to 3.6 V

– Dual-sample and hold capability

– Temperature sensor

DMA

– 7-channel DMA controller

– Peripherals supported: timers, ADC, SPIs,

I2Cs and USARTs

Up to 51 fast I/O ports

– 26/37/51 I/Os, all mappable on 16 external

interrupt vectors and almost all 5 V-tolerant

Debug mode

– Serial wire debug (SWD) & JTAG interfaces

6 timers

– Two 16-bit timers, each with up to 4

IC/OC/PWM or pulse counter and

quadrature (incremental) encoder input

– 16-bit, motor control PWM timer with deadtime

generation and emergency stop

– 2 watchdog timers (Independent and

Window)

– SysTick timer 24-bit downcounter

6 communication interfaces

21 x I2C interface (SMBus/PMBus)

– 2 × USARTs (ISO 7816 interface, LIN, IrDA

capability, modem control)

– 1 × SPI (18 Mbit/s)

– CAN interface (2.0B Active)

– USB 2.0 full-speed interface

CRC calculation unit, 96-bit unique ID

Packages are ECOPACK®

 

 

 

 

'[STM32] > IC' 카테고리의 다른 글

STM32F103VET6, STM32F103xE  (0) 2012.03.08
STM32F205RET6, STM32F205xx  (0) 2012.03.08
STM32F103RCT6, STM32F103xC  (0) 2012.03.08
STM32F103R6T6A, STM32F103x6  (0) 2012.03.08
STM32F103CBT6, STM32F103xB  (0) 2012.03.07
Posted by WhiteAT
,

 

STMicroelectronics STM8L-Discovery Board

 

 

 

 

 

 

■ On-board ST-LINK with selection mode switch to use the kit as stand-alone ST-LINK with SWD connector

■ Designed to be powered by USB or by external power 5V or 3.3V supply

■ Can supply target application with 5V or 3V

■ IDD consumption measurement in Low Power Modes

■ Two User LEDs (Green and Blue)

■ One User Push Button

■ Extension header for all I/Os for quick connection to prototyping board or easy probing

 

 

 

 

 

 

Quick, Cost-Effective Way to Discover STM8L MCUs

The STMicroelectronics STM8L-Discovery Board is based on the STM8L152C6T6 microcontroller (MCU) and is a quick-start evaluation board for STM8L ultra-low-power MCUs. The STM8L Discovery Board is the quickest way to discover the STM8L, to program and use the device, and to build and debug applications. This STMicroelectronics evaluation board includes the embedded debugger ST-LINK and an IDD consumption measurement feature that helps you to discover the ultra-low-power efficiency. The STMicroelectronics STM8L-Discovery also features an LCD (24 segments, 4 commons), LEDs, and push buttons. Demonstration software is preloaded in the board's Flash memory, and numerous applications are available to learn, reuse, and modify code for a fast time to proof-of-concept or demonstration. The latest versions of this demonstration source code and associated documentation can be downloaded from www.st.com/stm8l-discovery. The STM8L-Discovery is ideal for hobbyists, developers, students, and support teams.

 

 

 

 

DATA BRIEF

 

Description

Version

Size

STM8L ultralow power Discovery

1

100KB

 

 

 

APPLICATION NOTES

 

Description

Version

Size

AN3139: Migration and compatibility guidelines for STM8L microcontroller applications

3

802KB

AN3269: Introduction to STM8L15x power saving modes using the STM8L-DISCOVERY IDD measurement feature

1

212KB

AN2869: Guidelines for designing touch sensing applications

5

952KB

AN3252: Building a wave generator using STM8L-DISCOVERY

1

272KB

 

 

 

LICENSE AGREEMENTS

 

Description

Version

Size

Evaluation products licence agreement

2.0

22KB

 

 

 

USER MANUALS

 

Description

Version

Size

UM0970: STM8L-DISCOVERY

2

1225KB

UM1014: Getting started with STM8L-DISCOVERY

2

106KB

UM0991: Developing and debugging your STM8L-DISCOVERY application code

2

1787KB

 

 

 

 

 

 

 

'[STM32] > KIT' 카테고리의 다른 글

STM8S-discovery 키트  (0) 2012.03.06
Posted by WhiteAT
,

 

STM8S-discovery 키트

 

 

 

■ STM8S105C6T6 microcontroller, 32 KB Flash, 2 KB RAM, 1 KB EEPROM

■ Powered by USB cable between PC and STM8S-DISCOVERY

■ Selectable power of 5 V or 3.3 V

■ Touch sensing button

■ User LED

■ Extension header for all I/Os

■ Wrapping area for users own application

■ Embedded ST-Link

■ USB interface for programming and debugging

■ SWIM debug support

 

 

 

 

 

 

DATA BRIEF

 

Description 

Version 

Size 

STM8S access Discovery 

1 

93KB 

 

APPLICATION NOTES

 

Description 

Version 

Size 

AN3266: Using the STM8S-DISCOVERY GPIOs and interrupt controller to drive LEDs 

1 

109KB 

AN3259: RS232 communications with a terminal using the STM8S-DISCOVERY

1 

304KB 

AN3265: Handling hardware and software failures with the STM8S-DISCOVERY 

1 

192KB 

AN2869: Guidelines for designing touch sensing applications 

5 

952KB 

AN3332: Generating PWM signals using STM8S-DISCOVERY 

1 

86KB 

AN3280: Displaying variable voltage on a bar of LEDs using STM8S-DISCOVERY

1 

154KB 

AN3260: Building a thermometer using the STM8S-DISCOVERY 

1 

293KB 

AN3255: Building an RFID short-range reader using the STM8S-DISCOVERY 

1 

436KB 

AN3279: Adjustable LED blinking speed using STM8S-DISCOVERY touch sensing key

1 

153KB 

AN3277: Adjustable buzzer frequency using STM8S-DISCOVERY touch sensing key 

1 

193KB 

 

LICENSE AGREEMENTS

 

Description 

Version 

Size 

Evaluation products licence agreement 

2.0 

22KB 

 

USER MANUALS

 

Description 

Version 

Size 

UM0817: STM8S-DISCOVERY 

3 

387KB 

UM0834: Developing and debugging your STM8S-DISCOVERY application code 

3 

2178KB 

 

 

 

'[STM32] > KIT' 카테고리의 다른 글

STM8L-discovery 키트  (0) 2012.03.07
Posted by WhiteAT
,

 

USB-FS-Device development kit User's Manual     

 

 

매뉴얼 다운로드:

 

 




STM32 의 USB 에 관련된 매뉴얼입니다.

아래와 같은 내용이 포함되어 있습니다.

 

STM32 USB-FS-Device firmware library

Joystick mouse demo

Custom HID demo

Device firmware upgrade

Mass storage demo

Virtual COM port demo

USB voice speaker demo

USB audio streaming demo

 

 

 

 

Posted by WhiteAT
,

 

STM32 Virtual COM Port Driver

다른 칩셋과 마찬가지로 STM32 로 작성된 가상 COM 포트 드라이버를 사용하기 위해서는 별도의 드라이버를 설치해야 합니다.

 

드라이버가 설치되지 않았다면 아래와 같이 드라이버 인식을 실패합니다.

 

 

 

 

함께 제공하는 설치정보파일( iarvircomport.inf)로 설치를 시도해도 제대로 인식하지 못할 수 있습니다.

 

 

 

 

 

 

 

 

 

STM32 Virtual COM Port Driver 설치

 

드라이버 설치파일:






또는 http://www.st.com/internet/mcu/product/164491.jsp 에서 다운 받을 수 있습니다.

 

 

 

 

압축 파일을 풀면 4개의 파일이 있습니다.

(비스타 또는 7 에서는 필히 압축을 푼후 관리자모드로 설치를 해야 합니다.)

 

 

 

  

 

 

 

현재 사용중인 OS에 맞는 드라이버를 설치하면 됩니다.

VCP_V1.3.1_Setup.exe: 32비트용 드라이버

VCP_V1.3.1_Setup_x64.exe: 64비트용 드라이버

 

 

 



 

여기서는 64비트용을 설치해보겠습니다.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

그리고, USB 케이블을 다시 연결해도 자동으로 설치되지는 않는다면 수동으로 설치해야 하는데, 아래처럼 직접 경로를 지정하여 처리할 수 있습니다.

 

 

 

 

 

 

 

 

 

 

경로를 C:\Program Files (x86)\STMicroelectronics\Software\Virtual COM Port Driver 로 지정합니다.

 

 

 

 

해당 파일에 게시자 정보가 없어 경고가 나타날 수 있습니다.

해당 제품을 사용하려면 당연히 설치해야 합니다.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

'[STM32] > Tools' 카테고리의 다른 글

ST-LINK V2  (0) 2016.09.08
Posted by WhiteAT
,

 


WAT-CURRENT 매뉴얼: 다운로드



제품 소개

 

 



WAT-CURRENT (V1) 모듈은 0 ~ 700mA 사이의 전류를 제어할 수 있는 모듈입니다. 주로 파워 LED 제어에 사용되며 MCU와 연결하여 밝기를 조절할 수 있습니다.

 

본 제품은 PWM없이 전원만으로 일정하게 전류를 출력하는 독립형과 PWM으로 실시간으로 전류출력량을 변경할 수 있는 PWM 형으로 나눠집니다. 사용하는데 약간의 차이가 있으므로 사용방법을 숙지한 후 사용하시기 바랍니다.

 

 

항목

내용

독립형

출력 전류

100 ~ 700mA

최대 입력전압

12V

PWM형

출력 전류

0 ~ 700mA

최대 입력전압

35V

크기

30 mm x 34 mm

 

 

 

 

구조

 

 

 

 

 

 

 

 

크기

 

 

    

 

 

 

 

인터페이스

 

 

 

  1. 커넥터




 

번호

핀명

설명

1

POWER

LED 전원

2

VCC

VCC (5~12V)

3

PWM

전류 출력 조절

4

GND

그라운드

< INPUT >

 

 

 

번호

핀명

설명

1

OUT+

전류 출력 +

2

OUT-

전류 출력-

< OUTPUT >

 

 

 

 

  1. 최대 출력전류 설정

 

 

가변저항으로 최대 출력전류를 설정할 수 있습니다. 가변저항을 반 시계방향으로 돌리면 최대 출력 전류는 100mA가 되고, 시계방향으로 돌리면 최대 출력 전류는 700mA가 됩니다.

 

최대 출력 전류는 100mA

최대 출력 전류는 700mA

< 최대 출력전류는 PWM값이 100% 일 때의 전류 크기입니다. >

 

 

 

 

  1. PWM으로 출력전류 제어(PWM용에만 해당)

 

출력 전류를 실시간으로 미세하게 조정하려면 PWM으로 제어해야 합니다.
출력 전류 값은 아래와 같이 계산 할 수 있습니다.

출력 전류 = 최대 출력전류 X PWM 듀티비


최대 출력전류를 400mA로 설정했을 때를 예로 든다면
0% PWM 입력시, 0A가 출력되고, (0mA = 400mA x 0)
30% PWM 입력시, 출력 전류는 120mA가 되고, (120mA = 400mA x 0.3)
90% PWM 입력시, 출력 전류는 360mA가 되고. (360mA = 400mA x 0.9)

100% PWM 입력시 출력 전류는 360mA가 됩니다. (400mA = 400mA x 1.0)

 

 

 

 

파워 LED 제어

 

  1. 독립형

 

PWM을 사용하지 않고 전원(5~12V)만으로 파워 LED를 켤 수 있습니다. 단 PWM을 사용하지 않는 경우라면 실시간으로 밝기 조절을 할 수 없습니다.

 

 

전원(5~12V)로 파워LED을 켜려면 입력 4개의 핀을 아래와 같이 연결합니다.

절대로 입력 전압이 12V를 넘어서는 안됩니다.

 

번호

핀명

설명

1

POWER

LED 전원 (전원의 +극)

2

VCC

VCC (전원의 +극)

3

PWM

사용안함

4

GND

그라운드 (전원의 –극)

  1. PWM형

 

ATEMGA128의 PWM 듀티비를 변경하여 파워 LED를 정밀하게 제어할 수 있습니다. ATMEGA128와 정 전류 모듈 입력을 아래와 같이 연결합니다. 이때 ATMEGA128 에서 사용하는 전압 5V를 LED 전압으로 사용하게 됩니다.

 

번호

핀명

설명

1

POWER

ATMEGA128 의 5V에 연결

2

VCC

사용 안함

3

PWM

PIN15 – PB5/OC1A 에 연결

4

GND

ATMEGA128 그라운드에 연결

 

 

최대 출력전압을 100mA로 하고 듀티(duty)를 변경하면 LED 밝기의 변화를 확인 할 수 있습니다. 가변저항을 반 시계방향으로 끝까지 돌리면 최대출력전압이 100mA로 됩니다.

< 듀티비 10% (약 10mA)일 때의 밝기 >

 

< 듀티비 40% (약 40mA)일 때의 밝기 >

 

< 듀티비 100% (약 100mA)일 때의 밝기 >

 

 








 

아래는 ATMEGA128에 연결하여 파워LED 밝기를 조절하는 예제입니다.

 

/*

    PB5 핀(ATMEGA128의15번핀)으로 PWM을 출력하여

    WAT-CURRENT 모듈에연결된파워LED 밝기를 조절하는예제입니다.

 

    듀티비가0~100%, 100~0%로계속변경되어

    LED 가밝아졌다가흐려졌다를반복하는예입니다.

    

    AVRStudio 4.18

 

*/

 

#include <avr/io.h>

#include "WAT128.h"

 

 

unsigned int iDuty = 0;

BOOL bIncrease = TRUE;

 

int main()

{

 

    DDRB = 0xFF;

 

    TCCR1A = 0x82;

    TCCR1B = 0x13;

    TCCR1C = 0x00;

    ICR1 = 1000;

 

 

    while(1)

    {

         OCR1A = iDuty;

 

        if(bIncrease)

            iDuty++;

        else

            iDuty--;

 

        if(iDuty>= ICR1)

        {

            bIncrease = 0;

        }

        if(iDuty== 0)

        {

            bIncrease = 1;

        }        

        

        DelayMS(1);

 

    }

}

    

 

 

'정전류 모듈' 카테고리의 다른 글

정전류 모듈, WAT-LED Driver 2 (0 ~ 2A, 최대 35V)  (2) 2013.02.14
Posted by WhiteAT
,

 

영문, 한글 출력 예제: http://avr128.com/43  

WAT-GLCD 매뉴얼: WAT-GLCD.pdf 

 

 

제품 소개

 

WAT-GLCD 모듈은 128 x 64 픽셀의 모노 그래픽 LCD 를 장착한 모듈로 AVR, ARM7, PIC, 8051 등의 MCU 와 10P Flat 케이블을 연결하여 영문, 한글, 도형, 그림 등을 출력할 수 있는 제품입니다.

 

 

그래픽 LCD 모듈WAT-GLCD 모듈 한글,영문,숫자,도형,선, 그리는 예제 AVR 코드 제공

 

 

 

 

항목

내용

해상도

128 x 64

크기

85 mm x 85 mm

백라이트 밝기

가변저항으로 조절 가능

인터페이스

Digital Input/Output

 

 

WAT-GLCD 제어AVR,ATMEGA128 등의 MCU에 연결하여 제어할 수 있습니다.


    


 

외부 인터페이스

 



 

 

 

번호

핀명

설명

1

D0

DATA (bit 0)

2

D1

DATA (bit 1)

3

D2

DATA (bit 2)

4

D3

DATA (bit 3)

5

D4

DATA (bit 4)

6

D5

DATA (bit 5)

7

D6

DATA (bit 6)

8

D7

DATA (bit 7)

9

VCC

전원 ( DC 5V)

10

GND

그라운드

< DATA PORT >

 

 

 

번호

핀명

설명

1

/CS1

GLCD 의 좌측 판넬 선택

2

/CS2

GLCD 의 우측 판넬 선택

3

/RST

GLCD 리셋

4

RW

GLCD Read/Write

5

RS

Data/Instruction

6

E

Enable

7

SW2

스위치2

8

SW1

스위치1

9

VCC

전원 ( DC 5V)

10

GND

그라운드

< CONTROL PORT >

 

 

 

 

< WAT-AVR128 모듈과 연결하여 사용하는 예 >

 

 

 

Posted by WhiteAT
,

 

 

16x2 라인의 캐릭터 LCD 를 제어해 보겠습니다.

 

 

< ATMEGA128 과 캐릭터 LCD 연결 회로도 일부 >

 

 

 

 

 

 

 

LCD 의 데이터 선은 ATMEGA128의 PORTB 에 연결하고, 컨트롤 선은 PORTC를 사용합니다.

VR1의 5K 가변 저항은 캐릭터 LCD의 백라이트 밝기를 조절할 수 있습니다.

 

 

캐릭터 LCD 우측 그림처럼 출력하는 예제입니다.

abcdefghijklmnop

0123456789ABCDEF

 

 

 

 

 

 

 

 

원문은 http://whiteat.com 에 있습니다.

 

 

 

 

주요 코드

 

main.c 일부

/*

    EX_02_01.c

 

    필요한보드

    1. WAT-AVR128 (모듈)

    2. WAT-AVR128 EXT (확장보드)

    3. WAT-CLCD (캐릭터그래픽LCD)

 

    Character LCD에영문/숫자출력

    AVRStudio 4.18

    2011-10-04

 

    홈페이지: http://whiteat.com

    MCU자료실: http://avr128.com

    쇼핑몰: http://kit128.com

 

*/

 

#include <avr/io.h>

#include "WAT128.h"

 

int main()

{

 

    CLCD_Init();        // LCD 초기화

 

    CLCD_PutChar('a');

    CLCD_PutString(1,0,"bcdefghijklmnop");

    CLCD_PutString(0,1,"0123456789ABCDEF");

 

    while(1)

    {

    }

}

 

 

 

 

 

 

 

전체 소스 ( AVRStudio용)

EX_02_01.ZIP

 

 

Posted by WhiteAT
,