??? 01/14/08 07:49 Read: times |
#149414 - Start from square 1 Responding to: ???'s previous message |
Hendryawan said:
Many source code in C language or other microcontroller, sorry I'm not familiar in C. Just read the Application Notes already cited, and work from there. It's really quite simple: you just need to start with 4 basic routines: (in fact, if you're smart, you'll spot that you don't actually need a separate Write-1 function...) These routines are simply a matter of setting the port pin high or low, and reading the line state, with appropriate delays in between. That is all they do - nothing complicated. You can just take the 'C' code shown in the Application Notes as your specification, and implement it in assembler. Once you have those basic bit-handling functions, you then just need to read the Datasheet to find the necessary command sequences - and implement then using your bit-handling functions. You might want to create intermediate routines to do things like read/write a byte, read the device ID, etc... |
Topic | Author | Date |
DS18B20 help needed | 01/01/70 00:00 | |
Where have you looked ? | 01/01/70 00:00 | |
A DS18B20 is ???? | 01/01/70 00:00 | |
Start here | 01/01/70 00:00 | |
Re | 01/01/70 00:00 | |
Whilst we are on the topic | 01/01/70 00:00 | |
No, but | 01/01/70 00:00 | |
maxim usually | 01/01/70 00:00 | |
previous discussion | 01/01/70 00:00 | |
Re DS28EA00 | 01/01/70 00:00 | |
The problem | 01/01/70 00:00 | |
1 wire routines example | 01/01/70 00:00 | |
Not a good idea![]() | 01/01/70 00:00 | |
assembler source code | 01/01/70 00:00 | |
1wire.lst | 01/01/70 00:00 | |
Start from square 1 | 01/01/70 00:00 |