TM1637 (I2C) no function with timer

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
DirkB
Posts: 116
Joined: Wed Feb 08, 2012 2:45 pm
Has thanked: 7 times
Been thanked: 11 times

TM1637 (I2C) no function with timer

Post by DirkB »

Hello,

After the last update of the TM1637 display component the program no longer works together with a timer,
no matter which timer . Without timer there is no problem, with timer no function. Tested with several chips,
currently with the PIC16F1825 and the PIC 16F1454. This is only due to the TM1637 display component or
the I2C component. How do I get it to work again?

thanks

Dirk

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: TM1637 (I2C) no function with timer

Post by Benj »

Hi Dirk,

Please can you post a program that demonstrates the problem and I will investigate for you. The last mod to the TM1637 component was to add a new macro that allowed the segments to be individually controlled. Nothing related to timer interrupts.

DirkB
Posts: 116
Joined: Wed Feb 08, 2012 2:45 pm
Has thanked: 7 times
Been thanked: 11 times

Re: TM1637 (I2C) no function with timer

Post by DirkB »

Hi Ben,

I've run some tests. I have 1x 1MHz timer and a port interrupt to trigger the timer and get the value of the timer and output it to an I2C display TM1637. There is probably a problem with the port interrupt of the PIC 16F1454.
The result is always a reset, I think it is a problem with the MCLR. The Int Pin of this chip is on the i2c port and you can't use both together.
With the PIC16F1825 it resulted that the chip together with the timer and the port interrupt became so slow that I had the impression that the chip does not work. The first output took about 25 seconds, a bit too slow I think. I changed the interrupt to the interrupt pin INT A2 and -voilà -, it works well now.
I think you should have a look at the PIC16F1454 again.

thank you

Dirk

DirkB
Posts: 116
Joined: Wed Feb 08, 2012 2:45 pm
Has thanked: 7 times
Been thanked: 11 times

Re: TM1637 (I2C) no function with timer

Post by DirkB »

Hi Ben,

the analog Inputs of the PIC16F1454 doesn`t works too.
I can't connect a pot in the connections.

regards

Dirk

Post Reply