Part Number: RM46L852
I have a simple N2HET program with 2 PCNT lines running with HTU channel 0 working OK in 64-bit mode (with pins HR shared).
L00 PCNT { next=L01, type=rise2fall, pin=30, hr_lr=HIGH }
L01 PCNT { next=L00, type=fall2rise, pin=31, hr_lr=HIGH, reqnum=0, request=GENREQ }
But want to use 2 or more HTU requests to monitor more pins and/or make calculations simpler in the above program.
One issue is, that the HET assembler HETP.exe doesn't seem to support reqnum=1 and higher.
It generates the same code as if the request channel number is always zero. I tried both with and without the -v2 command line option:
hetp -v2 -c32 mhm_meas.het nhet1.h
=>
.sect ".HETCODE"
.word 0x00002E5E
.word 0x00000000
.word 0x00000000
.word 0x00000000
.word 0x00000E1F
.word 0x08000000
.word 0x00000000
.word 0x00000000
AND - even if I modify the hetp generated program by adding the HTU channel number in bits [25:23] of the binary program field, the HTU requests don't come.
AND - the Lauterbach TRACE32 debugger only supports HTU channel 0 in the PER window
So many things seem to indicate only HTU request channel 0 is supported - despite the documentation claims all 8 channels can be used.
Is there a secret way to enable HTU request numbers other than zero in both HETP and the uC?