RC5

Any bugs you encounter with Flowcode should be discussed here.
ELECTRONICA67
Posts: 200
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 32 times
Been thanked: 9 times

Flowcode v11 RC5

Post by ELECTRONICA67 »

Hello,

I wrote a simple little program using a TSOP31236 (36 kHz) and a 4-digit TM1637 display to show the reading sent via RC5_TX and RC5_RX, but I can't get the program to compile; it throws an error related to a timer.

I think it's a bug in Flowcode.

Enrique
Attachments
RC5_DISPLAY.fcfx
(14.32 KiB) Downloaded 12 times
Flowchart1.png
Flowchart1.png (197.73 KiB) Viewed 55 times

ELECTRONICA67
Posts: 200
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 32 times
Been thanked: 9 times

Flowcode v11 Re: RC5

Post by ELECTRONICA67 »

TSOP31236
Attachments
TSOP31236.jpeg
TSOP31236.jpeg (48.64 KiB) Viewed 52 times

chipfryer27
Valued Contributor
Posts: 2061
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 451 times
Been thanked: 677 times

Re: RC5

Post by chipfryer27 »

Hi

I have just downloaded your chart and it successfully compiles to Hex for me.

I'm using latest FC11.

Regards

ELECTRONICA67
Posts: 200
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 32 times
Been thanked: 9 times

Flowcode v11 Re: RC5

Post by ELECTRONICA67 »

HI

Man, I was really struggling with this—I even swapped out every single TMR, but it kept throwing errors over and over. I just compiled it, correct; for a moment, I thought you might have an update I didn't have. I'm going to test it on the hardware right away.

As they say in Mexico, "¡Ay, Chihuahua!"... I'm going to test it out before the program decides to act up.

Enrique

chipfryer27
Valued Contributor
Posts: 2061
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 451 times
Been thanked: 677 times

Re: RC5

Post by chipfryer27 »

Hi

You may have had something else causing the issue that you resolved without knowing?

Hopefully it compiles to target for you.

Regards

ELECTRONICA67
Posts: 200
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 32 times
Been thanked: 9 times

Flowcode v11 Re: RC5

Post by ELECTRONICA67 »

Hi,

I just fixed the flowchart. It starts by testing that the display is working correctly, then enters a loop waiting to detect an RC5 TX signal; I connected an LED to pin A2 as a detection indicator, and the display itself shows the reading. However, the display doesn't respond at startup, and once it enters the loop to wait for the RC5 signal, neither the LED lights up nor does the display turn on—it remains off.

Saludos
Attachments
RC5_DISPLAY (1).fcfx
(18.11 KiB) Downloaded 2 times

chipfryer27
Valued Contributor
Posts: 2061
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 451 times
Been thanked: 677 times

Re: RC5

Post by chipfryer27 »

Hi

Have you tried setting your display brightness to 7 as a test instead of 1? Perhaps it is just too dark to be visible? I once spent an embarrassing amount of time with a LCD that had it's brightness turned down way too far.......

Regards

ELECTRONICA67
Posts: 200
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 32 times
Been thanked: 9 times

Re: RC5

Post by ELECTRONICA67 »

Hi

One observation: the display turns on in the simulation, but not in the hardware.

ELECTRONICA67
Posts: 200
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 32 times
Been thanked: 9 times

Re: RC5

Post by ELECTRONICA67 »

Hi

I tested it with a brightness of 1; let me switch to 7 and test it.

ELECTRONICA67
Posts: 200
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 32 times
Been thanked: 9 times

Re: RC5

Post by ELECTRONICA67 »

not working

Post Reply