Search found 99 matches

by Xavier
Thu May 29, 2014 12:20 am
Forum: Flowcode V5
Topic: interrupts
Replies: 5
Views: 5525

interrupts

Hi guys I'm having trouble getting my timing to work, here is what I want to do I have a count=count+1 if count is =to1 I need to have one pulse per second on the other hand if I have 90 then I need 90 pulses per second my count actually starts at 90 and ends at 120 but I may have to change that a b...
by Xavier
Thu Jan 09, 2014 6:27 pm
Forum: Flowcode V5
Topic: GDM1602K LCD
Replies: 6
Views: 4675

Re: GDM1602K LCD

Hi benj

checked it all again and that's exactly what I did DB4 - DB7 data R/W= GND, E to the PIC, RS to the PIC, VLCD to the wiper of the pot but no joy, I think that I'm just going to have to get another one or use R/W

Regards
Xavier
by Xavier
Thu Jan 09, 2014 11:56 am
Forum: Flowcode V5
Topic: GDM1602K LCD
Replies: 6
Views: 4675

Re: GDM1602K LCD

Hi Benl From what I understand I need to use an HD44780 if I do not want to use an inter-phase with it and connect directly to the PIC. I believe that R/W needs to be connected but the way that I have it at the moment R/W is to ground along with DB4, DB5, DB6 and DB7, this configuration worked well ...
by Xavier
Tue Jan 07, 2014 2:32 pm
Forum: Flowcode V5
Topic: Serious Warnings
Replies: 18
Views: 8923

Re: Serious Warnings

Hi Guys Well I have been trying to follow your instructions to the letter but that is not an easy thing to do, yet I now have a flow chart with no errors so I must be doing something right, :) however my flow chart looks like a young boy's untidy room, also I find the program slow. So before I get a...
by Xavier
Mon Jan 06, 2014 10:26 pm
Forum: Flowcode V5
Topic: Serious Warnings
Replies: 18
Views: 8923

Re: Serious Warnings

Thanks Kersing All this information is going to take some time to sink in but I'll get it in the end. I'm now trying to get a flow chart to work without any errors still aimed at the same thing. Ho by the way the flow chart is for a PI metal detector, I need to set the on time the delays and so on n...
by Xavier
Mon Jan 06, 2014 9:31 pm
Forum: Flowcode V5
Topic: Serious Warnings
Replies: 18
Views: 8923

Re: Serious Warnings

Hi Guys OK I need to get a printer LOL Thanks Dazz I'm going to use this information to the best of my ability. I think that I'm going to start fresh all over again and apply what you guys have told me, I'm also going to reduce the size of the flow chart after all it really is repetition once the fi...
by Xavier
Mon Jan 06, 2014 7:55 pm
Forum: Flowcode V5
Topic: Serious Warnings
Replies: 18
Views: 8923

Re: Serious Warnings

Hi Kersing Thanks for your help, the way that I understand the If Intr_Occured is that it works like a counter, you have it as <>0 then at the end of the macro you have it as =0, that would reset it but why not just use a count? if count is = 1 then and at the end of the macro count = 0 , am I missi...
by Xavier
Sun Jan 05, 2014 8:16 pm
Forum: Flowcode V5
Topic: Serious Warnings
Replies: 18
Views: 8923

Re: Serious Warnings

Thanks Dazz

I have moved the LCD_Update all over the place and the problem is still there. I will continue to try and solve the problems till I post the updated chart sometime tomorrow morning.

Regards
Xavier
by Xavier
Sun Jan 05, 2014 7:59 pm
Forum: Flowcode V5
Topic: Serious Warnings
Replies: 18
Views: 8923

Re: Serious Warnings

Thanks for the prompt reply Dazz I will see is I can get that to work.

All the best
Xavier
by Xavier
Sun Jan 05, 2014 7:46 pm
Forum: Flowcode V5
Topic: Serious Warnings
Replies: 18
Views: 8923

Re: Serious Warnings

OK well did that but my problem is still there. Serious Warning: Possible sw stack corruption, function 'Wdt_Delay_Ms' called by more than one asynchronous thread (main/Task, interrupt, interrupt low) And this one I have not been able to solve yet. I have LCD start in Main and I have a call macro LC...
by Xavier
Sun Jan 05, 2014 7:27 pm
Forum: Flowcode V5
Topic: Serious Warnings
Replies: 18
Views: 8923

Re: Serious Warnings

Generally speaking, I would recommend to disable the watchdog in project settings and chip settings for all projects as it complicates the software. Only enable it when absolutely required. OK I disable the Wdt in the chip configuration but I can't seem to find the project settings, could you tell ...
by Xavier
Sun Jan 05, 2014 9:42 am
Forum: Flowcode V5
Topic: Serious Warnings
Replies: 18
Views: 8923

Re: Serious Warnings

Thanks guys

I will have a go at getting thing right now that I understand where the problems are :D

All the best
Xavier
by Xavier
Sat Jan 04, 2014 8:07 pm
Forum: Flowcode V5
Topic: Serious Warnings
Replies: 18
Views: 8923

Serious Warnings

Could you tell me why in one flowcode using Osccon and a call macro I have no serious warnings yet in the other using an interrupt (calling the same macro) and osccon I get three serious warnings? i just have not been able to figure it out for myself, believe me I did try but I'm obviously barking u...
by Xavier
Tue Dec 31, 2013 11:54 am
Forum: Flowcode V5
Topic: Timing
Replies: 12
Views: 6799

Re: Timing

Thanks Martin

You have helped me out a lot. I will put all of this into practice then post the result.

All the best
Xavier
by Xavier
Mon Dec 30, 2013 11:02 pm
Forum: Flowcode V5
Topic: Timing
Replies: 12
Views: 6799

Re: Timing

Thanks Martin

I will keep in mind the extra 2us. I'll see if I can get the display to show the required delay range that I need, if i can get it from 5 to 50us then I should be fine. I'm not sure on the formula that I need to use to have the display show the correct value though.

Regards
Xavier
by Xavier
Mon Dec 30, 2013 8:02 pm
Forum: Flowcode V5
Topic: Timing
Replies: 12
Views: 6799

Re: Timing

Hi Martin I changed the clock speed to 8Mhz, I removed all the LCD, switches and LED's from my flow chart so that should make it quite a bit faster, Now I'm going to try out the nop but the problem is that I need to use the ADC to be able to set the required speed, well at least for now. Once the de...
by Xavier
Mon Dec 30, 2013 1:29 pm
Forum: Flowcode V5
Topic: Timing
Replies: 12
Views: 6799

Re: Timing

Thank's Martin This has cleared up quite a few things. Now to put them into practice. I think that if I want to get a very precise timing I should use one PIC just to do timing, I have a delay before the sample of 10 to 15us so if the delay between macros and the sort is 21us, I have a problem. I th...
by Xavier
Mon Dec 30, 2013 1:15 pm
Forum: Flowcode V5
Topic: Serious Warnings
Replies: 6
Views: 4981

Re: Serious Warnings

Thanks Martin I will try doing it your way.

All the best
Xavier
by Xavier
Mon Dec 30, 2013 12:13 am
Forum: Flowcode V5
Topic: Serious Warnings
Replies: 6
Views: 4981

Serious Warnings

Hi Guys Can you please explain to me why am I getting these serious warnings? Serious Warning: Possible sw stack corruption, function 'Wdt_Delay_Ms' called by more than one asynchronous thread (main/Task, interrupt, interrupt low) Serious Warning: Possible sw stack corruption, function 'FCD_LCDDispl...
by Xavier
Sat Dec 28, 2013 10:57 pm
Forum: Flowcode V5
Topic: Timing
Replies: 12
Views: 6799

Re: Timing

Thanks Medelec35 Thanks for the info I had no clue that they had to be the same. The thing is that there is no 8mhz in Build - Project option but I do have 4Mhz so I've set osccon at 0x60, am I looking in the wrong place? I also see that this sets the interrupt frequency at 3906.250Hz is this OK? Co...
by Xavier
Sat Dec 28, 2013 8:08 pm
Forum: Flowcode V5
Topic: Timing
Replies: 12
Views: 6799

Re: Timing

Ho dear I thought that I had LOL I forgot to click on add the file.

Regards
Xavier
by Xavier
Sat Dec 28, 2013 6:33 pm
Forum: Flowcode V5
Topic: Timing
Replies: 12
Views: 6799

Timing

Hi guys I'm trying to get a timing in us, I used osccon=0x20; but I seem to be lost now, how do I get the LCD to display the correct frequency? also I have noticed that the display slows down the PIC a lot, using these frequencies, should I not have a second PIC to control the LCD? can I use the int...
by Xavier
Sat Dec 21, 2013 10:31 pm
Forum: Flowcode V5
Topic: GDM1602K LCD
Replies: 6
Views: 4675

Re: GDM1602K LCD

by Xavier
Sat Dec 21, 2013 8:47 pm
Forum: Flowcode V5
Topic: GDM1602K LCD
Replies: 6
Views: 4675

GDM1602K LCD

Hi Guys

I have not managed to get the LCD GMD1602K to work and I was wondering if I will ever get it to work? is it compatible to FlowCode? sorry can't upload the data sheet PDF is too big.

Regards
Xavier
by Xavier
Sun Dec 08, 2013 8:44 pm
Forum: Flowcode V5
Topic: Compiler errors
Replies: 4
Views: 4368

Re: Compiler errors

Hi martin Thanks for clearing that up for me, things are starting to make a lot more scene. I have changed my flow chart and am getting no more errors but I'm not sure if I went about it in the right way. LED2 flashes when you start the simulation, I added that to check my hardware, found that the P...