GithubHelp home page GithubHelp logo

chuangzhu / avr Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 34 KB

Atmel 8bit MCU chips (AVR) libraries, based on ATmega48/88/168/328(P).

License: MIT License

C 100.00%
avr twi usart adxl345 atmega328p hardware atmel-studio i2c timer chip

avr's Introduction

Atmel 8bit MCUs (AVR) Libraries

Based on ATmega48/88/168/328(P), may not perform properly on other chips.

Usage

Every folder contains files named like: main.c HAL_ADC.c DEV_ADXL345.c APP_Clock.h, copy these .h & .c files except main.c to your project.

USART

The USART serial hardware abstract library, normally used to transfer data with Computers.
You should define the frequency of crystal F_CPU and BAUD at Project> Properties> Toolchain> AVR/GNU C Complier> Symbols (Don't include whitespaces) like this:

F_CPU=8000000

ADC

The Analog-Digital-Converter hardware abstract library.

Clock

The Clock application library, employs TIMER1 to count time 1 second per tick.
You should define the frequency of crystal at Project> Properties> Toolchain> AVR/GNU C Complier> Symbols.

TIMER

The TIMER0&2 hardware abstract library, uses macro to calculate TCCRxB and TCNTx for TIMER0 and TIMER2 with the period you set.
This library contains only a .h file.
You should define the frequency of crystal F_CPU, TIMER0_Period and TIMER2_Period (unit: microsecond μs) at Project> Properties> Toolchain> AVR/GNU C Complier> Symbols.

TWI

The TWI (IIC, I2C) hardware abstract library.

ADXL345

The ADXL345 acceleration sensor device library. Based on TWI library.

License

This library is licensed under MIT, a really permissive license. Feel free to clone, contribute, or use it to your project for either non-commercial or commercial purpose.

avr's People

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.