Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Matthias

  • Rank
  1. I tried some routines for reading a temperature-sensor DS1820 on the compiler today, and found the following problem. I use a 16F871 at 20 MHz the routines worked properly when all the routines where in the main.c file. I tried to seperate them in an extra c-file. from now on they didn't work any more. I didn't alter the routines themself. I watched the output on the pin and found that the times are not correct. I compared the two codes and found one significant difference: the routines for delay_us are not the same. code when the routines in the main.c, this seems to be ok. _delay_usend code when routines in the extra-c file, : _delay_usend I copied the first code over the second and altered the labels: _delay_usend after a reassemble, the code worked fine. is this a bug? why are the routines different? Thanks Matthias
  • Create New...