1 Star 0 Fork 0

microchip-pic-avr-examples / pic18f47q10-cnano-tmr2-one-shot-reset-bare

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
readme.md

MCHP

PIC18F47Q10 Use TMR4 in One-Shot mode with external signal as reset

The PIC18F47Q10 features Three 8-bit Timers/Counters with One-Shot Operation. In this demo, uses TMR4 peripheral in One-Shot to stop TMR2 if an external pin is pulled to GND for more than a desired period.

Related Documentation

Software Used

Hardware Used

Setup

  • The PIC18F47Q10 Curiosity Nano Development Board (DM182029) is used as the test platform.
    HardwareSetup

The following pin configurations must be made for this project:

Pin Configuration
RE0 Digital output (LED0)
RC7 Digital input as TMR4 trigger

Operation

  1. Build demo firmware, make and program the generated code onto the PIC18F47Q10 Curiosity Nano.
  2. Run the code, LED0 will blink with a rate of Timer2Period (100ms).
  3. If the external pin RC7 is pulled to GND for more than Timer4Period (500ms), then LED0 will stop blinking.
    Hardware Setup

Summary

This project showcases how easy it is to use the TMR4 of PIC18F47Q10 in One-Shot mode with external signal as reset.

Repository Comments ( 0 )

Sign in to post a comment

About

This repository provides a bare-metal code example for using TMR4 peripheral in One-Shot to stop TMR2 if an external pin is pulled to GND for more than a desired period. expand collapse
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
C
1
https://gitee.com/microchip-pic-avr-examples/pic18f47q10-cnano-tmr2-one-shot-reset-bare.git
git@gitee.com:microchip-pic-avr-examples/pic18f47q10-cnano-tmr2-one-shot-reset-bare.git
microchip-pic-avr-examples
pic18f47q10-cnano-tmr2-one-shot-reset-bare
pic18f47q10-cnano-tmr2-one-shot-reset-bare
master

Search