nomnom New Member Aug 15, 2011 #1 Hi , i have problem with my LM35 for not sure for the output and nothing display either wht wrong my code anyways Attachments Roling.txt 12.6 KB · Views: 149
Hi , i have problem with my LM35 for not sure for the output and nothing display either wht wrong my code anyways
ericgibbs Well-Known Member Most Helpful Member Aug 16, 2011 #2 hi, One of the problems is that the code was written for a 16F84 and you are using a 16F877A. The CBLOCK is starting at 0x0C, which is OK for a 16F84 but not a 16F877A, it should be 0x020 as GP reg start address. You must change the code to suit a 16F877A. EDIT: With a 16F84A and a 32kHz xtal the program runs OK in Oshonsoft Sim Attachments AAesp03.gif 6.4 KB · Views: 141 Last edited: Aug 16, 2011
hi, One of the problems is that the code was written for a 16F84 and you are using a 16F877A. The CBLOCK is starting at 0x0C, which is OK for a 16F84 but not a 16F877A, it should be 0x020 as GP reg start address. You must change the code to suit a 16F877A. EDIT: With a 16F84A and a 32kHz xtal the program runs OK in Oshonsoft Sim