Configure serial loops?

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

Configure serial loops?

跳至解决方案
781 次查看
marknordstrand
Contributor III

A bit new to CodeWarriror, so maybe I'm missing something obvious...  Working with a K20 and will have a single-wire UART connection.  The datasheet outlines how to do this with the C1 register, but I'm not seeing how to do this w/ CW.  There is a "Loop Mode", but that looks more like a traditional loopback and the only options are Normal or Local loop-back.  So, my questions are 1) how do I (or can I) get at LOOPS and RSRC from CW? and 2) Is this something I have to code up myself?

标签 (1)
0 项奖励
回复
1 解答
625 次查看
adriancano
NXP Employee
NXP Employee

Hi,

I think you mean you are using Processor Expert for the developing of your project. Unfortunately the AsynchroSerial component which uses the UART module does not support to implement the Single-wire feature in the component settings, this is something you need to code up by yourself.

There is another good option to set this register via Processor Expert's component. Add a Init_UART component and in the Component Inspector Window of this component you are able to write to this registers, like the image below shows.

Single Wire.png

I hope this information can help you.

Regards,

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. It would be nice!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
2 回复数
626 次查看
adriancano
NXP Employee
NXP Employee

Hi,

I think you mean you are using Processor Expert for the developing of your project. Unfortunately the AsynchroSerial component which uses the UART module does not support to implement the Single-wire feature in the component settings, this is something you need to code up by yourself.

There is another good option to set this register via Processor Expert's component. Add a Init_UART component and in the Component Inspector Window of this component you are able to write to this registers, like the image below shows.

Single Wire.png

I hope this information can help you.

Regards,

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. It would be nice!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
625 次查看
marknordstrand
Contributor III

Yes, I did mean Processor Expert, my "newness" to this shows.  Was expecting to write code, but the init_UART looks like it will help.  Thanks.

0 项奖励
回复