Other Parts Discussed in Thread: TMS470MF06607, HALCOGEN
I use the HET of tms470mf06607 as GIO.The INPUT of PIN cann't got the correct Value.In the Halcogen, It doesn't give the select of GIO.Who can geive me example for HET as GIO,Thank you!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Other Parts Discussed in Thread: TMS470MF06607, HALCOGEN
I use the HET of tms470mf06607 as GIO.The INPUT of PIN cann't got the correct Value.In the Halcogen, It doesn't give the select of GIO.Who can geive me example for HET as GIO,Thank you!
Hi Dong,
The HET is different than other peripherals in that there is no 'mode' for GPIO.
Instead, the HET and the GIO registers simultaneously control the HET pin. For example software can change a pin to output low but then the HET can come and change the pin to output high .. and you will see the GPIO data out register of the HET change to '1' as well.
I can't think of a reason why the GPIO register wouldn't be working for you. How do you know it doesn't give the right value?
I use HET as an output to blink a led, should be similar for an input.
This is off the top of my head, but:
- In Halcogen enable the het driver
- Under the HET tab make sure your pin is configured correctly
- Generate your code
Make sure to call initHet()
Then you should be able to read from whatever register you need by using hetREGX->DIN