That code gets 16 samples not 10. You just have to limit the samples from 16 to 5. But this is not very useful. Leave it as it is for ironing out the noise or parasites in the signal.
Within PBP you can manually manipulate SFRs, read and write to UART registers, etc. If the PIC you are using has EEPROM, you can set up an array of sequential EEPROM addresses with SFR settings. It...
OWOUT DQD, 1, [$CC, $44] ' Start temperature conversion
LATD.1=1 SET PIN STATE TO HIGH
TRISD.1 = 0 'MAKE PIN AN OUTPUT WITH DEFAULT STATE HIGH
pause 760 'ADD AN EXTRA 10...
CuriousOne, How many times are you letting the program cycle? Here is the output from my terminal after I reset the processor power. Notice the "85" as the first reading from the DS18B20-PAR. This...
Published on - 27th May 2010 02:01
Number of Views: 5074
This is an effort to help users understand how the I2C command works by comparing it with SHIFTIN/SHIFTOUT. A serial EEPROM, 24FC1025 will be used in the example.
Hserout questions
Hi All
andybarrett1 Today, 11:34Attempting to get some serial communication working with a 16f628 (4Meg Xtal) My defines are as below :-
DEFINE OSC 4
DEFINE HSER_TXSTA 24h
DEFINE HSER_RCSTA 90h
DEFINE HSER_BAUD...