Other Parts Discussed in Thread: HALCOGEN Hi,
I am using the HALCOgen 2.07 vesrion for NHET drivers. When we select the options in the GUI, the tool is creating the het.c and het.h driver files.
When i try to use these files for the measurement of input…
Hello
I didn't changed NHET assembly code except the PIN number.
The PWM frequency is 78.125kHZ (80MHz of VCLK2 divided SINE_FREQ_DIVIDER-16, and lr = 64/hr = 1).
Thank you.
Hello,
N2HET is a software controlled timer with a dedicated specialized timer micro-machine and a set of 30 instructions (Section 23.6 of device TRM). HET IDE is where you can write N2HET programs using NHET Assembler language. HET IDE can be downloaded…
Hello Mark,
Several counters can be used for angle generator: APCNT, SCNT, ACNT:
APCNT measures the periods P(n) of the external signal. SCNT counts by step K up to the previous period value P(n-1), measured by APCNT, and then recycles. The resulting…
Hello,
You can use HALCoGen to generate code for capturing input PWM signals and input pulse signals.
1. HALCOGen->CAP: to configure the NHET pins to capture the dutycycle and period of input PWM signals
2. HALCOGen->Edge to configure the pins to capture…
Hello Bhushan,
The NHET IDE is intended to simplify the usage of the High End Timer simulator, and it provides an easy way to develop and debug the code for NHET. It is good enough for users to develop NHET code.
The free version waveformer has the…
the MibSPI transfer group will occur if the nHET1[8] signal is generated via the NHET PWM. Since the MibSPI cannot be triggered externally I am looking to using the NHET assembly code to check N2HET[18] and set/clear the N2HET[8].
Thanks for your response.
Yes, I paid attention pinmux settings. When I selected the sci_rx and sci_tx, there was no conflict in N2het1[6] and n2het[13] pins.
The card that I used is not hdk, it is TMS570LS31USB and I must use the n2het pin as sci. I…
Posting QJ's response from the direct emails for the code shared offline
---
I got two Davinci generated files from you: Icu_PBcfg.c and Port_PBCfg.c. As I mentioned before, the ICU code (NHET assembly code) for input capture looks correct.
I double…
Yes I am reading the NHET Offset register in the c routine that I call from the IRQ assembly function. But this still does not solve the problem. Also, the code runs only in debug mode. If I try to simply load the program and run it, the IRQ is not generated…