Search found 7 matches

by A_Smith
Thu Mar 31, 2011 3:19 pm
Forum: Flowcode V4
Topic: HOW TO SEND '0' IN A STRING VIA RS232
Replies: 2
Views: 2550

HOW TO SEND '0' IN A STRING VIA RS232

Hi Hopefully someone can help me. I am sending a string of data via RS232 from a master pic to a slave. Unfortunately I cannot send the number 0. For example, if I define the string data in a calculation function as; STRING[0]=5 STRING[1]=150 STRING[2]=0 STRING[3]=10 STRING[4]=75 Then send via RS232...
by A_Smith
Tue Nov 09, 2010 9:29 pm
Forum: Formula Flowcode
Topic: Interrupt Prorites ???
Replies: 4
Views: 7690

Re: Interrupt Prorites ???

Hi I have managed to get it working by making both interrupts the same frequency. I don't know why but it works. I now have a new problem, initially I was using an integer to count absolute time (24 hours x 60 minutes x 60 seconds) but then came across problems which I realised are due to the maximu...
by A_Smith
Mon Nov 08, 2010 12:02 pm
Forum: Formula Flowcode
Topic: Interrupt Prorites ???
Replies: 4
Views: 7690

Re: Interrupt Prorites ???

Hi Medelec, Thanks for the response, there are no components in TMR2. I have tried using TMR1 to control both the RTC and LEDs but the frequency of TMR1 is not high enough (24000Hz/100=240Hz) to modulate the LED's whilst using a count of 100 to give a duty variable between 0 and 100. I have also tri...
by A_Smith
Sun Nov 07, 2010 4:31 pm
Forum: Formula Flowcode
Topic: Interrupt Prorites ???
Replies: 4
Views: 7690

Interrupt Prorites ???

Hi Does anyone know how to prioritise TMRO over TMR1 or TMR2 in flowcode 4. I am using the TMR0 interrupt for a real time clock and using TMR2 for pulse width modulating LED's. The problem is that when TMR2 is enabled, my program runs really slow and looses time. For obvious reasons the RTC is more ...
by A_Smith
Thu Oct 28, 2010 5:43 pm
Forum: General Programming
Topic: LCD not working, Help needed please
Replies: 5
Views: 5441

Re: LCD not working, Help needed please

IT WORKS. Thanks very much Medelec35, I really appreciate it. I did have to make some other changes too so for anyone else struggling I should also mention that to get it working I had to move the data pins around because if running in 4 bit mode (which flowcode does) you have to use DB4,5,6&7 o...
by A_Smith
Wed Oct 27, 2010 6:46 pm
Forum: General Programming
Topic: LCD not working, Help needed please
Replies: 5
Views: 5441

Re: LCD not working, Help needed please

Hi Medelec35 Thanks for your response. I have moved the LCD back to port B and played around with the configurations. I have simplified the test program even further so that all I have is the LCD and an led output. The program tells the Led (which is actually the LCD backlight) to flash 10 times at ...
by A_Smith
Wed Oct 27, 2010 4:39 pm
Forum: General Programming
Topic: LCD not working, Help needed please
Replies: 5
Views: 5441

LCD not working, Help needed please

Hi All, I am new to not only flowcode and the forum but also programming in general. I have been playing with flowcode V4 for about 4 weeks (demo) and I have learned the basics which all seemed to work on simulation. I have now bought a copy as I am attempting a reasonable sized project which will i...