Hi,
I'm trying to construct a 2 part project that involves a transmitter and a reciever, the transmitter reads 6 analogue inputs and sends the result to the reciever, which then translates this to 6 digipots (using I2C i think).....but at the moment i'm stuck on getting the transmitter to wait for each AD conversion to complete before saving the result for later comparison with the old result...
basically, i need to know how to get my program to wait 20uS.....
i've looked at Wingmax's posts on the subject, but i just cant compile if i #include "delay.h" OR "delay.c"
once i've cracked that i'll be trying to figure out how to send the data (i have the hardware sorted, its just the channel decoding and checksum that worry me)...so any ideas on that would really be appreciated too...
I'm using a PIC16f684, and programming with MPLAB and PICC Lite with a PICKIT2 programmer.
many thanks,
L
I'm trying to construct a 2 part project that involves a transmitter and a reciever, the transmitter reads 6 analogue inputs and sends the result to the reciever, which then translates this to 6 digipots (using I2C i think).....but at the moment i'm stuck on getting the transmitter to wait for each AD conversion to complete before saving the result for later comparison with the old result...
basically, i need to know how to get my program to wait 20uS.....
i've looked at Wingmax's posts on the subject, but i just cant compile if i #include "delay.h" OR "delay.c"
once i've cracked that i'll be trying to figure out how to send the data (i have the hardware sorted, its just the channel decoding and checksum that worry me)...so any ideas on that would really be appreciated too...
I'm using a PIC16f684, and programming with MPLAB and PICC Lite with a PICKIT2 programmer.
many thanks,
L