Dear all,
I want to use the HTU of the RM42 to copy (static) PWM values from an array to the N2HET, one at a time. To accomplish this, I configured DCP[0] to use only buffer A in circular mode using element count = 1 and frame count = 52 (= array size). Values are copied to a MOV32 instruction at the HET, which acts as a buffer and copies its data to the actual MCMP instruction at the last LR loop.
GCLK = HCLK = VCLK = VCLK2 = 100 MHz, which, according to the data sheet, should be alright. At first I thought it was a timing issue, but if I use the HR prescaler to get the actual HR clock to 2 MHz, nothing changes.
Values get copied, but only 4 (always the same) out of the 52 values in the array get transfered. The strange thing is, when I pause the chip, values not in those standard 4 are outputted. On resuming, however, only those 4 are seen.
With a smaller frame transfer count I get similar results, only some values are outputted and when pausing, different values appear.
I have this working using the CPU, but I want to conserve energy and do other tasks, so HTU usage is kind of mandatory. The HTU use case of CPU -> N2HET transfers seems relatively undocumented; did anyone else encounter and hopefully solve this?
Thanks in advance!
Tim