KL25 and DALLAS iButton (1-Wire)

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

KL25 and DALLAS iButton (1-Wire)

跳至解决方案
2,535 次查看
SergeMaslenniko
Contributor II

Hello Everyone,

Is it possible to handle 1-Wire signal from iButton using UART0 in 1-Wire mode (something like ISO7816) or not?

Thank you in advance.

0 项奖励
回复
1 解答
1,927 次查看
Stano
NXP Employee
NXP Employee

Hello Serge,

The Dallas Button requires different communication protocol as can be managed by UART0. Please see the communication details on web:

1-Wire - Wikipedia, the free encyclopedia  . It is possible to use standard GPIO method with timer to communicate with 1-Wire Slave.

I hope it could help, but you are welcome for next support.

Best Regards,

Stano.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,927 次查看
egoodii
Senior Contributor III

I have had very clean results with the DS2483 I2C-to-onewire 'master' device to supply 'perfect' one-wire control, using one I2C interface and an internal-timer to wait-out each resultant one-wire process.  To cut my overhead I also built an interrupt-driven I2C process and next-level state machine to complete entire one-wire transactions with minimal processor use.  This all runs 'in the background' because I have 'realtime work' to get done, and that does add a certain amount of complexity...

Message me for details.

0 项奖励
回复
1,927 次查看
zeljko_stefanovic
NXP Employee
NXP Employee

Hello Serge,

If you have a TPM timer (with 3 or 4 channels) and two DMA channels available, the Dallas/Maxim 1-wire bus master can also be implemented as discussed here:

Dallas iButton High Resolution Delays with No Preemption

Although this link is to a question in the MQX software section, the timer based solution described there was developed and tested using a KL26 micro.

Regards,

Zeljko

0 项奖励
回复
1,928 次查看
Stano
NXP Employee
NXP Employee

Hello Serge,

The Dallas Button requires different communication protocol as can be managed by UART0. Please see the communication details on web:

1-Wire - Wikipedia, the free encyclopedia  . It is possible to use standard GPIO method with timer to communicate with 1-Wire Slave.

I hope it could help, but you are welcome for next support.

Best Regards,

Stano.

0 项奖励
回复