Giter Club home page Giter Club logo

stm8l_sdcc_template's Introduction

stm8l_sdcc_template

the template and libraries for stm8l + SDCC

Big Note

This repo contain the source code from https://github.com/lujji.
I modified to make it support with STM8L151F3.

What's working

GPIO PushPull, Open drain. Input pull up and interrupt.
ADC (currently paired with DMA).
DMA (currently working with ADC, other peripheral coming soon).
I2C Slave / Master with iterrupt, 400KHz 100KHz (never try 1MHz).
UART TX RX with interrupt(IrDA is W.I.P.).
SPI Master tested, really easy to use. Slave code might be soon.
EEPROM Read/Write.
FLASH Read/Write, Lock/Unlock (Once locked, require resetting the chip 2 times (press reset button) in order to unlock it again).
TIMER TIM2 TIM4 PWM example is available. Now working on quadrature encoder (with CDM102 project).
Delay Not so accurate but works just fine. Available for 1MHz 2MHz 4MHz 8MHz and 16MHz Clock speed. DelayTIM4 More accurate delay by using timer4.
Device ID Return X Y wafer coordinate (2 bytes) and Wafer number (1 byte).
RTC Time, Date setting, Periodic interrupt waking up. Alarm and tamper detection not tested. Beeper Working perfectly. Thought it shares pin with SWIM. Be careful.

stm8l_sdcc_template's People

Contributors

tinredmc avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.