M-V850E-IA4 Renesas Electronics America, M-V850E-IA4 Datasheet - Page 9

no-image

M-V850E-IA4

Manufacturer Part Number
M-V850E-IA4
Description
KIT EVAL V850E IA4 UPD70F3186
Manufacturer
Renesas Electronics America
Datasheets

Specifications of M-V850E-IA4

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
16-bit interval timer (TMM0)
The setting time is determined by the following formula (during clock-through mode (8 MHz)).
[Function]
[Function name]
[Arguments]
[Processing content]
[Starting method]
[SFRs used]
[call function]
[Variable]
[Interrupt]
[Interrupt source]
[File name]
[Cautions]
Synchronizing clock: 8 MHz = 1/8 ⇒ 0.125
Count clock frequency (for f
Value of compare register when generating an interrupt every millisecond: 1000
Startup
Clears 16-bit counter if values of 16-bit counter and TM0CMP0 register match, and an
interrupt request signal is generated.
timer_interval
unsigned char set_TM0CTL0
unsigned short set_TM0CMP0
Calls an interrupt function every millisecond.
Starts by calling timerm_interval_st function.
TM0CTL0
TM0CMP0
main
None
timerm_interval_int
INTTM0EQ0
timerm_interval\timerm_1.c,
timerm_interval\MAIN.C
• Call when operation of 16-bit counter is stopped.
• Operate in clock-through mode (8 MHz).
• Set port 1 before calling.
• Set TM0CTL0 (count clock setting) when TMM0 is stopped.
• Bits 3 to 6 of TM0CTL0 must be set to 0.
• Rewriting of TM0CMP0 (compare register) during operation of TMM0 is prohibited.
XX
/32): 0.125
main function
μ
s × 32 ⇒ 4
Application Note U18236EJ1V0AN
Controls mode of 16-bit counter.
Compare register of 16-bit counter
μ
s
μ
s
7
Sets count clock.
Sets compare register.
μ
s/4
μ
s ⇒ 250 − 1 = 249

Related parts for M-V850E-IA4