I want to use a DS1620 with my PIC16F876. I have been using the DS1620 with my Basic Stamp using PBasic's SHIFTIN and Shiftout command.
These commands are not implemented yet in GCBasic and I read a post about using SPI instead. Can anyone tell me what the source code would look like to accomplish this. I am completly new to GCB and Micro controllers.
Thanks in advance!
Alex
PS: I have also accidentally posted this message in the Compiler forum!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Whoops, posted answer in comiler forum before the move. Please answer back here tho if any more questions.
I had sent Hugh, the administrator, a DS18s20/DS18b20 header file a while ago which would have the parts to keep track of the 9 bit data used by the DS1620. You could also modify the word size subroutine to send and receive the TstatH and TstatL info.
The SPI_TX and SPI_RX funcions may work for you. Just can't remember if the DS1620 follows the SPI protocol, or something else.
Kent
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello!
I want to use a DS1620 with my PIC16F876. I have been using the DS1620 with my Basic Stamp using PBasic's SHIFTIN and Shiftout command.
These commands are not implemented yet in GCBasic and I read a post about using SPI instead. Can anyone tell me what the source code would look like to accomplish this. I am completly new to GCB and Micro controllers.
Thanks in advance!
Alex
PS: I have also accidentally posted this message in the Compiler forum!!
Whoops, posted answer in comiler forum before the move. Please answer back here tho if any more questions.
I had sent Hugh, the administrator, a DS18s20/DS18b20 header file a while ago which would have the parts to keep track of the 9 bit data used by the DS1620. You could also modify the word size subroutine to send and receive the TstatH and TstatL info.
The SPI_TX and SPI_RX funcions may work for you. Just can't remember if the DS1620 follows the SPI protocol, or something else.
Kent