Sample Programs For 16-Bit Ppg Timer - Fujitsu F2MC-8FX Hardware Manual

F2mc-8fx 8-bit microcontroller
Hide thumbs Also See for F2MC-8FX:
Table of Contents

Advertisement

CHAPTER 17 16-BIT PPG TIMER
17.9

Sample Programs for 16-bit PPG Timer

We provide sample programs that can be used to operate the 16-bit PPG timer.
Sample Programs for 16-bit PPG Timer
For information about the sample programs for the 16-bit PPG timer, refer to "
Preface.
Setup Methods without Sample Program
How to set the PPG operation mode
The operation mode select bit (PCNTH0 MDSE) is used.
How to select the operating clock
The operating clock select bits (PCNTH0 CKS2/CKS1/CKS0) are used to select the clock.
How to enable/disable the PPG output pin
The output enable bit (PCNTL0 POEN) is used.
How to enable/stop PPG operation
The timer enable bit (PCNTH0 CNTE) is used.
When stopping PPG operation
When enabling PPG operation
Enable PPG operation before starting the PPG.
298
Operation mode
PWM mode
One-shot mode
What to be controlled
When enabling PPG output
When disabling PPG output
What to be controlled
Operation mode select bit (MDSE)
Set the bit to "0"
Set the bit to "1"
Output enable bit (PCNTL0 POEN)
Set the bit to "1"
Set the bit to "0"
Timer enable bit (CNTE)
Set the bit to "0"
Set the bit to "1"
Sample Programs" in

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95170j series

Table of Contents