Page 1 of 1

flowcode- LCD problem with bluetooth solution

Posted: Thu Apr 04, 2013 1:21 pm
by sami_asd
Dear all
I worked with flowcode V4 many times on PIC18F4550 and it's worked fine, I bought a bluetooth solution with PIC16F1937; the kits pre-programmed with a testing program and it's worked
I tried to developed my own application but nothing worked, I tried to download the test files and project included on the CD and nothing worked; I can found the bluetooth device but the LCD not display any things;
after that I tried to make a simple program that worked with LCD only - as a test- but the LCD display a random number and I tried all the possible configuration, the LCD worked on the internal OSC=500Khz but the problem that I need to operate the solution using the 19.6608M crystal to work with the CD examples
when I use the HS configuration I got the following caution

Caution: argument of 'delay_us' calls must have a value of 1 or more
Caution: Delay inaccurrate: 'delay_us', Delay overhead:0ms, Unit delay:0.00101725ms, Delay resolution:1 units
Caution: Delay inaccurrate: 'delay_10us', Delay overhead:0ms, Unit delay:0.0101725ms, Delay resolution:1 units
Caution: Delay inaccurrate: 'delay_ms', Delay overhead:0ms, Unit delay:1.00016ms, Delay resolution:1 units

the delay values =0 !!!!!!!
can anyone have an idea or suggestions ??
Regards

Re: flowcode- LCD problem with bluetooth solution

Posted: Thu Apr 04, 2013 1:35 pm
by dazz
Hi
Please can you attach your flowcode progam as it will help people to help you, also please only post once as theres no need to post the same post twice,ive deleted your other post

Regards
Dazz

Re: flowcode- LCD problem with bluetooth solution

Posted: Thu Apr 04, 2013 1:49 pm
by sami_asd
thank dazz
I attached the test file and my own program

Re: flowcode- LCD problem with bluetooth solution

Posted: Thu Apr 04, 2013 2:06 pm
by Benj
Hello,

The RC / XTAL switch on the EB006 can sometimes be slightly temperamental. Try sliding it into the RC position and then back again to see if this allows your programs to function correctly.

Re: flowcode- LCD problem with bluetooth solution

Posted: Thu Apr 04, 2013 2:18 pm
by sami_asd
for my test file
the flashing led work fine with 19.6608 HS but the LCD not
when I config to work on RC or internal osc the LCD work fine

Re: flowcode- LCD problem with bluetooth solution

Posted: Thu Apr 04, 2013 11:24 pm
by sami_asd
I have the solution for the LCD module "thanks for Mr. David A"
he send me the correct way to change the LCD code and it's worked now --> change MX_CLK_SPEED >= 32000000 to MX_CLK_SPEED >= 16000000 in the definition macro
but the bluetooth not worked till now and i think the same problem appear--> the problem in the OSC (19.6608M)
any suggestions ???