Skip to main content
Knowledgebase
Home
Renesas Electronics Europe - Knowledgebase

Cannot write to compare 1 register TRFM1 when using timer RF

Latest Updated:10/05/2016

Question:

When using timer RF, I cannot write a value to compare 1 register (TRFM1). Why?

Answer:

Values cannot be written to compare 1 register (TRFM1) while the TMOD bit of the TRFCR1 register is 0 (input capture mode). Set the TMOD bit of the TRFCR1 register to 1 (output compare mode) before writing a value to TRFM1. Please note that when the TMOD bit is set to 1, the value of the TRFM1 register will automatically be set to FFFFh.
Suitable Products
R8C/36C
R8C/38C
R8C/36M
R8C/38M
R8C/34K
R8C/34U