Giter Site home page Giter Site logo

fixitdaz / attiny817-getting-started-with-the-tinyavr-1-series-mplab Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microchip-pic-avr-examples/attiny817-getting-started-with-the-tinyavr-1-series-mplab

0.0 0.0 0.0 445 KB

This repository is a training module covering basics of GPIO, TCA, TCB, events, USART, CCL and PIT to create simple applications for the ATtinyAVR 1-series.

Makefile 0.04% C 99.60% C++ 0.31% Assembly 0.04%

attiny817-getting-started-with-the-tinyavr-1-series-mplab's Introduction

MCHP

Getting Started with the tinyAVR® 1-series

This repository contains training examples on the Microchip tinyAVR® 1-series. Follow the Training Manual - Getting Started with the tinyAVR® 1-series from Microchip for full step-by-step description. The training is carried out on a ATtiny817 Xplained Pro board.

This training includes three assignments covering topics such as:

  • Driver Configuration in Atmel START
  • PINMUX driver configuration and check LED toggle on button press
  • Generate a PWM by using timer counter A (TCA) and implement Variable-Pulse-Width by using the RTC interrupt
  • Duty cycle and frequency measurement using input capture mode of TCB
  • USART configuration
  • CCL (Configurable Custom Logic): A programmable logic peripheral, which can be connected to the device pins, events, or peripherals, which allows the user to eliminate external logic gates for simple glue logic functions.

The code in this repository is configured for the last assignment. Refer to the Training Manual - Getting Started with the tinyAVR® 1-series for additional information on how to configure from scratch.

This training manual is based on using Atmel Start with Atmel Studio. It can, with some adjustments, be used with MPLAB X IDE. When the traning manual re-configures the project using Atmel Studio: go back to the Atmel Start website where the project was created and exported to MPLAB X IDE. Re-configure the original project before exporting it to MPLAB X IDE again. You can now copy and move all the new files, except main.c, over in your old project folder. In this way changes you have made in main.c are kept, but the system is re-configured.

Related Documentation

Software Used

Hardware Used

Operation

  1. Connect the ATtiny817 Xplained Pro board to the PC using the USB cable.

  2. Download the zip file or clone the example to get the source code.

  3. Open the project in MPLAB X IDE.

  4. Refer to the Training Manual - Getting Started with the tinyAVR® 1-series for step-by-step description on how to program each of the assignments.

  5. Build the solution and program the ATtiny817.

Conclusion

This training exercise demonstrated the different peripherals of tinyAVR 1-series, how to use the Event System to generate Event and how to use CCL to generate output.

attiny817-getting-started-with-the-tinyavr-1-series-mplab's People

Contributors

aku-work avatar carlehe 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.