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

32-bit single-chip microcontroller
Table of Contents

Advertisement

Chapter 10
Rewrite during
timer operation
322
If the edge specification for the external event count input and external trigger
input shall be changed, while the timer remains in operation
(TAAnCTL0.TAAnCE = 1), only a single bit of the edge specification bits
TAAnIOC2.TAAnEES[k:i] / TAAnIOC2.TAAnETS[k:i] of a dedicated capture
input may be changed with a single write operation.
Consequently proceed as follows (TIAAn0 is used exemplarily):
In external event counter mode:
• Change from rising edge to falling edge:
– current status is TAAnIOC2.TAAnEES[1:0] = 01
– set TAAnIOC2.TAAnEES[1:0] = 00
– set TAAnIOC2.TAAnEES[1:0] = 10
• Change from falling edge to rising edge:
– current status is TAAnIOC2.TAAnEES[1:0] = 10
– set TAAnIOC2.TAAnEES[1:0] = 00
– set TAAnIOC2.TAAnEES[1:0] = 01
• Change from rising or falling edge to both edges:
– current status is TAAnIOC2.TAAnEES[1:0] = 01
"falling edge"
– set TAAnIOC2.TAAnEES[1:0] = 11
In external trigger mode:
• Change from rising edge to falling edge:
– current status is TAAnIOC2.TAAnETS[1:0] = 01
– set TAAnIOC2.TAAnETS[1:0] = 00
– set TAAnIOC2.TAAnETS[1:0] = 10
• Change from falling edge to rising edge:
– current status is TAAnIOC2.TAAnETSS[1:0] = 10
– set TAAnIOC2.TAAnETS[1:0] = 00
– set TAAnIOC2.TAAnEtS[1:0] = 01
• Change from rising or falling edge to both edges:
– current status is TAAnIOC2.TAAnETS[1:0] = 01
"falling edge"
– set TAAnIOC2.TAAnETS[1:0] = 11
Ensure the input level is not changing while the TAAnIOC2 register is modified.
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
B
B
: specify "both edges"
B
: "rising edge"
B
: specify "no edge"
B
: specify "falling edge"
B
: "falling edge"
B
: specify "no edge"
B
: specify "rising edge"
B
or 10
B
B
: specify "both edges"
B
: "rising" or
: "rising" or

Advertisement

Table of Contents
loading

Table of Contents