Fujitsu FR81S User Manual

Page of 2342
CHAPTER 48: WAVEFORM GENERATOR 
 
 
4. Registers 
 
FUJITSU SEMICONDUCTOR LIMITED 
CHAPTER : WAVEFORM GENERATOR 
FUJITSU SEMICONDUCTOR CONFIDENTIAL 
11 
[bit4] TMIF0: Interrupt request flag bit 
TMIF0 
Function 
Read 
Write 
No counter underflow has been detected. 
This bit is cleared. 
A counter underflow has been detected. 
This bit remains unaffected. 
 
This bit is used as an interrupt request flag for the 16-bit dead timer.   
 
This bit is set to "1" when an underflow occurs at the 16-bit dead timer.   
 
When this bit is set to "0", this bit is cleared. Writing "1" to this bit does not have any effects on this bit.   
 
This bit will be cleared when the dead timer interrupt clear signal is "H". 
 
Notes: 
If a read-modify-write (RMW) instruction is executed, "1" is always read.   
This bit functions only when the TMD2 to TMD0: bit26 to bit24 are "000
B
" or "001
B
". Otherwise, the bit is 
always "0".   
If a software clear (write of "0") or an interrupt clear signal ("H") and a hardware set (an underflow occurs 
at the 16-bit dead timer 0) occur at the same time, the hardware set has a priority over the software clear or 
the clear by interrupt clear signal. Then, this bit will be set. 
 
[bit3] TMIE0: Interrupt request enable bit, software trigger bit 
TMIE0 
Function 
An interrupt will not be generated even when an underflow occurs at the 16-bit dead 
timer. 
An interrupt will be generated when an underflow occurs at the 16-bit dead timer. 
 
This bit is used as a software trigger bit and an interrupt enable bit for the 16-bit dead timer.   
 
When TMD2 to TMD0: bit26 to bit24 are "000
B
" or "001
B
", this bit will be used as a software trigger for 
the 16-bit dead timer. When this bit is changed from "0" to "1", it will function as a trigger for the 16-bit 
dead timer and reload the value to start the down count.   
 
When this bit is set to "1" and the interrupt request flag bit (TMIF0: bit28) is "1", an interrupt request 
will be transmitted to the CPU. 
 
Note: 
If you have the 16-bit dead timer triggered again, make sure to write "0" to this bit before writing "1" to it. 
 
MB91520 Series
MN705-00010-1v0-E
2056