Configure a line to trigger a relay

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Configure a line to trigger a relay

跳至解决方案
960 次查看
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 解答
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 项奖励
回复
3 回复数
829 次查看
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 项奖励
回复
828 次查看
haroldvogel
Contributor II

Hello Alice,

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

H. John V.

0 项奖励
回复
828 次查看
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