NEC V850ES/F 3-L Series User Manual page 320

32-bit single-chip microcontroller
Table of Contents

Advertisement

Chapter 10
Rewrite during
timer operation
320
If the edge specification for the capture operation shall be changed, while the
timer remains in operation (TAAnCTL0.TAAnCE = 1), only a single bit of the
edge specification bits TAAnIOC1.TAAnIS[k:i] of a dedicated capture input may
be changed with a single write operation.
Consequently proceed as follows (TIAAn0 is used exemplarily):
• Change from rising edge to falling edge:
– current status is TAAnIOC1.TAAnIS[1:0] = 01
– set TAAnIOC1.TAAnIS[1:0] = 00
– set TAAnIOC1.TAAnIS[1:0] = 10
• Change from falling edge to rising edge:
– current status is TAAnIOC1.TAAnIS[1:0] = 10
– set TAAnIOC1.TAAnIS[1:0] = 00
– set TAAnIOC1.TAAnIS[1:0] = 01
• Change from rising or falling edge to both edges:
– current status is TAAnIOC1.TAAnIS[1:0] = 01
edge"
– set TAAnIOC1.TAAnIS[1:0] = 11
User's Manual U18743EE1V2UM00
16-Bit Timer/Event Counter AA
: "rising edge"
B
: specify "no edge"
B
: specify "falling edge"
B
: "falling edge"
B
: specify "no edge"
B
: specify "rising edge"
B
or 10
: "rising" or "falling
B
B
: specify "both edges"
B

Advertisement

Table of Contents
loading

Table of Contents