Configure a line to trigger a relay

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Configure a line to trigger a relay

ソリューションへジャンプ
959件の閲覧回数
haroldvogel
Contributor II

I hope that someone can walk me through on using Processor Expert to configure a line (PTC17 on the MKL36Z256VLL4).  This line would be set for a period of time (120ms to 59 seconds) and then turned off after the time period has expired.

ラベル(1)
1 解決策
827件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Harold,

You can use component "BitIO" and "TimerInt_LDD" of PE.

- After add BitIO , configure it , select the port of PTC17, and Direction is Output:

pastedImage_0.png

- Refer to your demand configure the timer , in the timer interrupt toggle the PTC17:

pastedImage_1.png

About the detail usage of these component , please refer to  help on component -> Typical Usage, there is demo code :

pastedImage_2.png

pastedImage_3.png

When you create , if encounter some question , you can contact me without any hesitate.

Hope it helps


Have a great day,
Alice

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
828件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Harold,

You can use component "BitIO" and "TimerInt_LDD" of PE.

- After add BitIO , configure it , select the port of PTC17, and Direction is Output:

pastedImage_0.png

- Refer to your demand configure the timer , in the timer interrupt toggle the PTC17:

pastedImage_1.png

About the detail usage of these component , please refer to  help on component -> Typical Usage, there is demo code :

pastedImage_2.png

pastedImage_3.png

When you create , if encounter some question , you can contact me without any hesitate.

Hope it helps


Have a great day,
Alice

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
827件の閲覧回数
haroldvogel
Contributor II

Hello Alice,

What is the difference between using the BitIO and the GPIO_LDD?

H. John V.

0 件の賞賛
返信
827件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Harold,

The BitIo component implements an one-bit input/output. It uses one bit/pin of an I/O port.

The  GPIO_LDD component is a gpio driver, it can configure gpio interrupt .

IF you only want output high or low , both them are  ok.

For the detail you can refer to the "help on component " to check .

Hope it helps

Alice