Search found 8 matches

by juanlu
Mon Oct 15, 2012 8:11 pm
Forum: E-blocks
Topic: i2c problem with TC74
Replies: 13
Views: 12192

Re: i2c problem with TC74

Dear Poilvert, I have already checked the right address. TC74 I use is 5V A0, according to this the right id is 0b1001000. It is not the problem. What I agree with you it that seems there are no reply from TC74. The only idea I have right now is to replace component for a new one. Thanks for your su...
by juanlu
Tue Oct 09, 2012 9:06 pm
Forum: E-blocks
Topic: i2c problem with TC74
Replies: 13
Views: 12192

Re: i2c problem with TC74

Hi Enamul, I have just tried your flowchart and does not work. Strange symbols on my lcd appears... Also in ICD mode I always have temperature 255 retval 0 I have also tried with ID 0x48 and does not work. I am worried about if there can be any problem with component because I write original code of...
by juanlu
Tue Oct 09, 2012 8:45 pm
Forum: E-blocks
Topic: i2c problem with TC74
Replies: 13
Views: 12192

Re: i2c problem with TC74

Kersin, AS per my course documents in flowcode acknowledge and noacknowledge are included in the mi2c_send routine. Zero means datas was acknowledge and one means no reply. Return value will of course also be one if there is not supposed to be a reply. i2c data pin b0 and i2c clock pin b1 according ...
by juanlu
Mon Oct 08, 2012 10:12 pm
Forum: E-blocks
Topic: i2c problem with TC74
Replies: 13
Views: 12192

Re: i2c problem with TC74

Thanks for your help.

Here I attach flowchart.

LCD always shows 255. Address of tc74 0b1001000. ANy idea about if there is something wrong in software?
by juanlu
Thu Oct 04, 2012 6:33 pm
Forum: E-blocks
Topic: i2c problem with TC74
Replies: 13
Views: 12192

i2c problem with TC74

Hi, I am doing course of Programming embeded PIC in chapter i2c. It is needed to read temperature value of TC74 and then show the results in lcd wiht pic 18f4455. I have tried the code of the course but not good results. lcd is showing always 255ºC. There is a error communication. Pull resistors are...
by juanlu
Sun Sep 16, 2012 10:59 am
Forum: Matrix Online Courses
Topic: eeprom
Replies: 4
Views: 11305

Re: eeprom

Thanks Jonny, I have just located the problem and now program runs properly. It was in chip configuration PIC MICRO CONFIGURATION (expert). Options were ENABLE and it must be DISABLED according to learningn course. Then I change and everything ok. Low voltage program must be DISABLED Dedicated in ci...
by juanlu
Fri Sep 14, 2012 6:21 pm
Forum: Matrix Online Courses
Topic: eeprom
Replies: 4
Views: 11305

Re: eeprom

thanks Enamul

my program translated to C is OK but not in assembler.
I am learning now and theoretically the assembler code works.

it seems that C variable counter is not known for assembler code.
by juanlu
Fri Sep 14, 2012 5:13 pm
Forum: Matrix Online Courses
Topic: eeprom
Replies: 4
Views: 11305

eeprom

hi, i am doing course of programming embeded pic, I have problem to write eeprom with assembler. I have passed course programm to pic and does not work. unsigned char counter; asm{ movlw 0 // the first memory location movwf _counter next: movff _counter, _eeadr // counter as address and data movff _...