Page 1 of 1

TM1637 and pic 18F26K20

Posted: Tue Jan 21, 2025 3:16 pm
by bercioiu
Hello everyone!
I have a problem with a component, namely TM16537! I can't use it with pic 18F26k20 at 64 MHz. If I put another pic, for example 16F1938 at 32 MHz, everything is ok. What am I doing wrong in the configuration? Thanks!

Re: TM1637 and pic 18F26K20

Posted: Tue Jan 21, 2025 4:03 pm
by medelec35
Hello.
Configuration including OSCTUNE looks correct, so I assume pin A0 is toggling every second?
Try reducing the speed to 32MHz, then check to see if the display is working correctly.

Re: TM1637 and pic 18F26K20

Posted: Tue Jan 21, 2025 4:38 pm
by bercioiu
It seems to be a problem with FC10, because I installed FC8 and is ok, everything works.
I also tried at 32 MHz but it still didn't work.
The LED is flashing correctly.

Re: TM1637 and pic 18F26K20

Posted: Wed Jan 22, 2025 1:03 pm
by medelec35
That is really odd as I don't have the same target device as you, hence using 27K42, running internal osc 64MHz and works as expected with FC10.
Its not like the component is using I2C as the data and clock are bit banged
Do you have a logic analyser?
If can you compare the ck and data for both FC10 and FC8

Re: TM1637 and pic 18F26K20

Posted: Fri Jan 24, 2025 7:32 am
by bercioiu
Unfortunately I don't have a logic analyzer. I think the problem is from the setting of the delay between transitions, which is no longer in FC10.

Re: TM1637 and pic 18F26K20

Posted: Fri Jan 24, 2025 8:54 am
by medelec35
Looking at your image for FC8, you have Display Type set to Cathode.
With the FC10 version, you have Display Type set to Anode.
Could that be the issue?

Re: TM1637 and pic 18F26K20

Posted: Fri Jan 24, 2025 5:23 pm
by bercioiu
Yes, I tried several settings and I did a print screen at a random setting. Anyway, in FC8, it works even if I put common anode or common cathode, probably a component leak...

Re: TM1637 and pic 18F26K20

Posted: Fri Jan 24, 2025 6:15 pm
by bercioiu
Same display, with two different hex FC8 :-)