KL25 and DALLAS iButton (1-Wire)

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

KL25 and DALLAS iButton (1-Wire)

ソリューションへジャンプ
2,540件の閲覧回数
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,932件の閲覧回数
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,932件の閲覧回数
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,932件の閲覧回数
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,933件の閲覧回数
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 件の賞賛
返信