Hello ,
Can we have a simple OneWire Slave to communicate between 2 or more MCU's
using only OneWire protocol .
Thanks
Alan
OneWire Slave
-
- Posts: 173
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 7:23 pm
- Has thanked: 52 times
- Been thanked: 25 times
-
- Valued Contributor
- Posts: 1280
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 124 times
- Been thanked: 645 times
Re: OneWire Slave
Microchip have some interesting bits...
Try https://ww1.microchip.com/downloads/en/ ... 01199a.pdf for example
I also found something about using the USART on PICs to do a 'hardware' implementation
Martin
Try https://ww1.microchip.com/downloads/en/ ... 01199a.pdf for example
I also found something about using the USART on PICs to do a 'hardware' implementation
Martin
Re: OneWire Slave
Hi Martin
Wish I had the time to play , but as of now just need quick solution
Cos OneWire was not an option , I2c Slave not working , and the main MCU already have 2 UATR's
in use , I don't really wish to add another .
Hope Matrix will make the OneWire slave component available , or at least fix 12c Slave
Alan
Wish I had the time to play , but as of now just need quick solution
Cos OneWire was not an option , I2c Slave not working , and the main MCU already have 2 UATR's
in use , I don't really wish to add another .
Hope Matrix will make the OneWire slave component available , or at least fix 12c Slave
Alan
-
- Valued Contributor
- Posts: 1280
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 124 times
- Been thanked: 645 times
Re: OneWire Slave
I was going to have a little play - but too often the real stuff gets in the way ..
What speed is the target (slave) clocked at? - I don't have a PIC12 to hand, but it might be possible to mark the MCU 'specific' bits (if there are any) - I think it should be okay to do a start timer on pin change down and then check Timer0 on pin up (with a suitable prescaler for Tmr0 - unless you have a very slow clock?)
Martin
What speed is the target (slave) clocked at? - I don't have a PIC12 to hand, but it might be possible to mark the MCU 'specific' bits (if there are any) - I think it should be okay to do a start timer on pin change down and then check Timer0 on pin up (with a suitable prescaler for Tmr0 - unless you have a very slow clock?)
Martin
-
- Valued Contributor
- Posts: 1280
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 124 times
- Been thanked: 645 times
Re: OneWire Slave
Surely - if you have enough pins left?
Strangely - UART is 'almost'' one wire comms (I know the reply is on another wire!) - but the receive is purely timing with no clock...
Martin
Strangely - UART is 'almost'' one wire comms (I know the reply is on another wire!) - but the receive is purely timing with no clock...
Martin