Site icon volt.tech

Renesas RA2E2-No Write in Timer Order Analog Register Possible

While writing a little Program in Assembly language we are having a strange problem by configuring the Timer or the Analog Measurement.

Two simple examples. We want to set the analog input P103:

LDR r0, =0x0008

LDR r1, =ADANSA1

STRH r0, [r1]

But nothing happens. ADANSA1 still contains zeros. Or I wanted to start the Timer 164

LDR r0, =0x0001

LDR r1, =GTCR164

STRH r0, [r1]

Also, in this case the GTCR164 still contains only zeros. I can’t find a reason why accessing the registers doesn’t work. For the timer register I have also checked that the write protection is disabled.

Can it have something to do with the setting of the peripheral clock?

We have set the clock to HOCO 32 MHz and the clock architecture to type. Regarding the divisor we have set 8 for all clock, so actually we should have the same clock of 4 MHz.

Exit mobile version