STM8L 해보기 2
이번에 사용하는 MCU 는 STM8L151 이다. 저전력용이라 예를 들어 리모콘용으로 사용 된다.
스펙을 한번 보면 아래와 같다.
– Operating power supply: 1.65 to 3.6 V
(without BOR), 1.8 to 3.6 V (with BOR)
– Temperature range: -40 to 85 or 125 °C
( 전압범위와
온도범위는
기본적으로
산업용
장비에
사용
가능
하다.)
– 5 low power modes: Wait, Low power run, Low power wait, Active-halt with RTC, Halt
– Ultralow leakage per I/0: 50 nA
– Fast wakeup from Halt: 5 μs
( 저전력으로
사용가능하도록
성계
되어
있다.)
– Harvard architecture and 3-stage pipeline
– Max freq: 16 MHz, 16 CISC MIPS peak
– Up to 40 external interrupt sources
(성능
좋은 CORE 같아. 사용하다
보면 Atmega128보다
좋아보인다.)
- Reset and supply management
– Low power, ultrasafe BOR reset with 5 selectable thresholds
– Ultralow power POR/PDR
– Programmable voltage detector (PVD)
– 32 kHz and 1-16 MHz crystal oscillators
– Internal 16 MHz factory-trimmed RC
– Internal 38 kHz low consumption RC
– Clock security system
(내부
발징을
이용해서
사용중인데
생각보다
좋다.)
– BCD calendar with alarm interrupt
– Digital calibration with +/- 0.5 ppm accuracy
– LSE security system
– Auto-wakeup from Halt w/ periodic interrupt
– Up to 8 Kbytes of Flash program memory plus 256 bytes of data EEPROM with ECC
– Flexible write/read protection modes
– 1 Kbyte of RAM
– 4 channels supporting ADC, SPI, I2C,
USART, timers
– 1 channel for memory-to-memory
- 12-bit ADC up to 1 Msps/28 channels
– Temp. sensor and internal ref. voltage
- 2 ultralow power comparators
– 1 with fixed threshold and 1 rail to rail
– Wakeup capability
– Two 16-bit timers with 2 channels (IC, OC,PWM), quadrature encoder (TIM2, TIM3)
– One 8-bit timer with 7-bit prescaler (TIM4)
– 1 Window and 1 independent watchdog
– Beeper timer with 1, 2 or 4 kHz frequencies
– One synchronous serial interface (SPI)
– Fast I2C 400 kHz
– One USART
- Up to 41 I/Os, all mappable on interrupt vectors
-
Up to 20 capacitive sensing channels
– supporting touchkey, proximity touch, linear touch, and rotary touch sensors
– Fast on-chip programming and nonintrusive debugging with SWIM
– Bootloader using USART
(IC 별로 고유 ID가 있어서 재미있게 사용 가능 하다.)
세그먼트 LCD나 터치 등 다양한 기능이 있는다. 참 저렴한 놈이 별 기능이 다 들어 있다.