Hi TI,
I am using TMS570LC4357. In my project I want to use N2HET Peripheral to generate PWM waveform.
In TMS570LC4357 Controller, there are totally two N2HET Peripherals namely N2HET1, N2HET2 and two HTU Peripherals namely HTU1, HTU2.
Each N2HET has 32 HET Pins and each HTU has 8 HTU Channels.
So now I want to use only 17 Pins to generate PWM waveform.
My HET Code is given below.
; PWM, 1 channel, using MCMP L00 CNT { reg=A, irq=OFF, max= 15, req=genreq, reqnum=0} L01 MCMP { en_pin_action=ON, pin=0, order=REG_GE_DATA, action=PULSELO, reg=A,data=2};
I am having the same code 8 times in N2HET1 RAM to control 8 pins of N2HET1 and having the same code 9 times in N2HET2 RAM to control 9 pins of N2HET2. And the max field and data field of CNT and MCMP instructions are updated by HTU.
So for first 8 Pins, Updates to datafield in N2HET1 RAM is happening by 8 channels of HTU1 and for remaining 8 pins, Updates to N2HET2 RAM is happening by 8 channels of HTU2,.
So totally I can produce waveform (as I expected) in only 16 pins. But for the last 17th pin I can not update the data fields since because HTU has no more HTU channel to support update for the 17 th pin HET code data field.
So this is my problem. It seems like, my hardware resources is sufficient to handle up to 16 N2HET pins alone.
But TI gives totally 64 pins in N2HET peripheral and only 16 HTU Channels in TMS570LC4357. So there should be any way or trick to handle more than 16 pins by N2HET peripheral.
So please anybody help me to update/handle that 17th N2HET2 pin code data field in N2HET2 RAM.
Thanks in advance.
Karthikeyan.K