![]() |
Forum Index : Microcontroller and PC projects : Read 1Wire Device ID MM+
Author | Message | ||||
atmega8![]() Guru ![]() Joined: 19/11/2013 Location: GermanyPosts: 724 |
Hello, do we have a Function to read out the 1-Wire Device ID's? THX |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10250 |
Not in 5.1 There was a command "OWSEARCH" in some previous releases but it didn't make the "cut" in 5.1 The command is still in the source file but not compiled |
||||
CircuitGizmos![]() Guru ![]() Joined: 08/09/2011 Location: United StatesPosts: 1427 |
This will read the ROM serial number (Family code, serial number, checksum) for a single device attached to pin 25. Onewire.PIN = 25
ONEWIRE RESET Onewire.PIN PRINT MM.ONEWIRE ONEWIRE Write Onewire.PIN, 9, 1, &h0F ONEWIRE READ Onewire.PIN, 10, 8, r1, r2, r3, r4, r5, r6, r7, r8 PRINT Hex$(r1) PRINT Hex$(r2) PRINT Hex$(r3) PRINT Hex$(r4) PRINT Hex$(r5) PRINT Hex$(r6) PRINT Hex$(r7) PRINT Hex$(r8) Matherp is saying that there isn't a search routine built into MMBASIC for reading multiple devices connected to one pin. Micromites and Maximites! - Beginning Maximite |
||||
atmega8![]() Guru ![]() Joined: 19/11/2013 Location: GermanyPosts: 724 |
Hi, i think enumerating multiple devices is is a useful function. Don't know the reason why Geoff decided to not compile it in the new Versions. Place, or simply forgot it???? Answers? THXh |
||||
Justplayin![]() Guru ![]() Joined: 31/01/2014 Location: United StatesPosts: 327 |
Space. When Geoff saw developing the MicroMite 150, he was tight on space and felt the OneWire code was very bloated. So, he chopped it down to fit the limited space available. --Curtis I am not a Mad Scientist... It makes me happy inventing new ways to take over the world!! |
||||
atmega8![]() Guru ![]() Joined: 19/11/2013 Location: GermanyPosts: 724 |
Ok, but with the actual processors there should be some space left... |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10250 |
There is definitely no space in the MX170. There is in the MM+ but I assume Geoff has had so little demand for it it wasn't considered worth including. Other than the DS18B20 one-wire seems like a pretty dead technology. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |