Skip to content

This repository will have a look at CIPs and provide an example on how to combine CCL, Event System, RTC and ADC to filter the signal from a button and initiate an ADC conversion core independently.

Notifications You must be signed in to change notification settings

microchip-pic-avr-examples/attiny817-getting-started-with-cip-mplab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCHP

Getting Started with Core Independent Peripherals on AVR® Microcontrollers

Core Independent Peripherals (CIPs) is a category of peripherals available on many AVR® devices. A CIP is designed to handle its tasks among one or multiple peripherals with no code or supervision from the CPU to maintain the operation. This brings up many advantages, such as providing short and predictable response times between peripherals, reducing the complexity and execution time of the software, as well as the possibility of reduced power consumption.


This repository will present an application example on how to combine CCL, Event System, RTC and ADC to filter the signal from a button and initiate an ADC conversion core independently. This may help users start building their own projects using CIPs. This example is based on the Application Note AN2451 - Getting Started with Core Independent Peripherals on AVR® Microcontrollers from Microchip and will be performed on a ATtiny817 Xplained Pro board.

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. Using the signal from a mechanical button directly into an application without any form of filtering will in many cases lead to unpredictable behavior, since the signal often transitions several times between high and low each time the button is pushed or released. This is often referred to as bounce. If an application is required to act once each time a mechanical button is pressed, some form of filtering needs to be implemented either in hardware or software, also referred to as debouncing.
    This is already implemented for you. For a complete description on how this is done refer to the document AN2451 - Getting Started with Core Independent Peripherals on AVR® Microcontrollers.

  5. Build the solution and program the ATtiny817.

Conclusion

In this example several CIPs have been studied, such as CCL, Event System, RTC and ADC so that the users now have an idea of how to start building their own projects using CIPs.

About

This repository will have a look at CIPs and provide an example on how to combine CCL, Event System, RTC and ADC to filter the signal from a button and initiate an ADC conversion core independently.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages