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.

Het question

Other Parts Discussed in Thread: HALCOGEN

Hi 

I have a project where I have to use timer to generate for two purposes

1.generate timer output frequancy of 500Hz for half sec and than nothing 

2.generate timer output frequancy of 600Hz for half time and than 900Hz 

3.count input pulses when sig en is '1' and if en='0' not count the input pulses

there is way to implimment the alghorithem without using HET IDE only with halcogen (I have to make as fast as I can its urgent) only with halcogen 

Thanks a lot Yehonatan

  • Yehonatn,

    Since you are only interested in Halcogen solution, I have forwarded your request to Halcogen developers.

    Thanks and regards,

    Zhaohong

  • Thanks a Lot Zhang 

    I could use HET IDE but Because I need the soulotion urgently I can not afford to my self 

    new stuff

    but if there is existing alghorithem for Het IDE 

    It would be help 

    Yehonatan  

  • Yehonatn,

    We do not have a solution ready for you. If you can some details about what you need, we will be more than happy to explore how to help you.

    First of all, what are your system clock and peripheral clock frequency?

    1.generate timer output frequancy of 500Hz for half sec and than nothing 

    Is it a one-shot pulse?

    2.generate timer output frequancy of 600Hz for half time and than 900Hz 

    Is it a pepeating process (600->900->600->...)? What is the definition of "half time"?

    3.count input pulses when sig en is '1' and if en='0' not count the input pulses

    Is this "sig en" a signle sent to the timer as a gate signal?

    Do you have have reuirement on the frequency accuracy and switching behavior?

    Thanks and regards,

    Zhaohong

  • Hi

    my system clock freq is 100MHz 

    the pheripherial frequancy is maximum 2MHz but I do not have clock signal from my pheripherial to the Hercules

    the system generate the folowing signal 500->0->500 when I need it for period of time not one shot 

    the half time is 1/20 sec what means that cycle tome is 1/10 sec 

    yes en  it is gate signal  its external signal from my system 

    my requiermment is that the resolution of the pulse counter will be maximum of 6000 pulses and the counter again depends on en signal if its work or not 

    Thanks a lot for Your's Help 

    Yehonatan 

  • Yehonatn,

    I created a NHET test with the information you provided. It passed NHET assembler. I could not get it running on HET IDE simulator because the LRP counts used in the test is too long. I have put comments in the code so that you can see what is intended. I hope that this code can provide some hint to get you started.

    http://e2e.ti.com/cfs-file.ashx/__key/communityserver-discussions-components-files/766/6457.test1.het

    Thanks and regards,

    Zhaohong