Other Parts Discussed in Thread: HALCOGEN
Hi,
I'm working with a TMS570LS32HDK using HET1 pins as direct output. My code simply set and clear all outputs in an infinite loop generating a squeare wave. In Halcogen I've simply enabled the HET1 driver than my main is:
hetREG1->DIR=0xffffffff;
int flik=0;
while (1){
if (flik==1) hetREG1->DOUT=0x00000000;
else hetREG1->DOUT=0xffffffff;
flik=1-flik;
}
This generate a square wave of approx 2.5MHz and should do it on every HET1 pin but the pins from 8 to 14 and the pins from 24 to 30 are muted, no signal output from them. Why? Perhaps my board has some connection fault?
I've tried to reset all the pins properties but the result is the same.
hetREG1->PDR=0x00000000; // disable open drain
hetREG1->PULDIS=0x00000000; // enable pull
hetREG1->PSL=0x00000000; // set pulldown
hetREG1->AND=0x00000000; // disable AND
hetREG1->XOR=0x00000000; // disable XOR
Thank you,
Matteo