Search found 175 matches

by cobra1
Wed Jan 30, 2013 1:14 pm
Forum: General Programming
Topic: I2C between 2 PIC-Micros
Replies: 21
Views: 16362

Re: I2C between 2 PIC-Micros

I have just looked at these 2 files, am more interested in the slave file. Can someone help me understand a few things please. I am not sure how the data is help in the slave, If the master sends : S,16,37,77,P. Does all of this data get received by the slave and then it prcesses it all at the same ...
by cobra1
Mon Dec 03, 2012 1:08 am
Forum: Flowcode V2 & V3
Topic: RS232 Baud Rate? Interrupts
Replies: 1
Views: 4717

RS232 Baud Rate? Interrupts

Hi, Im trying to communicate with a PIC via PC Terminal. I have the terminal set at a Baud rate of 9600. My Pic is set at 8Mhz The PIC baud rate on my pic is also set at 9600, and im using the software Uart as the PIC does not have Hardware Uart. Running on the PIC are 2 interrupts. Interrupt 1 is i...
by cobra1
Sat Jul 07, 2012 6:35 pm
Forum: Flowcode V2 & V3
Topic: Control of components from inside flowcode?
Replies: 3
Views: 3211

Re: Control of components from inside flowcode?

Hi Ben, I am able to change the contrast when editing the init function, but that means i have to change the init function, then update the software to the chip for the settings to take effect. What i would like to do is change the init function from a menu in the software. Is this possible? Oh the ...
by cobra1
Sun Jun 24, 2012 8:54 pm
Forum: Flowcode V2 & V3
Topic: Control of components from inside flowcode?
Replies: 3
Views: 3211

Control of components from inside flowcode?

In the GLCD component file i have added in 2 lines of code to allow for contrast adjustment. gLCD_SendByte(MX_GFXLCD_CMD, 0x25); //Contrast Command gLCD_SendByte(MX_GFXLCD_PARAM, 0x51); //Contrast Level I am trying to access these commands from inside flowcode so as to adjust the contrast from insid...
by cobra1
Tue Mar 27, 2012 8:54 pm
Forum: Flowcode V2 & V3
Topic: Servo 180 deg. Rotation
Replies: 5
Views: 4776

Re: Servo 180 deg. Rotation

Looking at the C file, there are 2 functions. 1 incriments and the other decrements. So purely as an example, if a stepper had 360 steps, then calling the incriment function 180 times will make it move 180 degrees. So calling it 120 times will move it 120 degrees. To move it back to 0 or "home" just...
by cobra1
Tue Mar 27, 2012 4:41 pm
Forum: Flowcode V2 & V3
Topic: Servo 180 deg. Rotation
Replies: 5
Views: 4776

Re: Servo 180 deg. Rotation

Can you post the C code please
by cobra1
Thu Mar 22, 2012 7:46 pm
Forum: Flowcode V2 & V3
Topic: Glcd Fonts
Replies: 8
Views: 6479

Re: Glcd Fonts

Hi, i could do with a bit of a nudge guys. I am struggling to change the font size from 8x5 pixel to 8x6 pixel on the GLCD. In the properties box the font that is defined there i can change as long as i only use 8x5 pixel, if i try to add the last byte it automatically removes it, So i cant get an 8...
by cobra1
Fri Mar 09, 2012 5:58 pm
Forum: Flowcode V2 & V3
Topic: ENC28J60 Any plans ??
Replies: 3
Views: 7339

ENC28J60 Any plans ??

Hi

Are there any plans to use the ENC28J60 in a flowcode component for webserver?
It was something i was hoping to use but it appears that the component you use in webserver component is now obsolete.
by cobra1
Mon Mar 05, 2012 11:38 pm
Forum: Flowcode V2 & V3
Topic: switching a light on and off
Replies: 4
Views: 3252

Re: switching a light on and off

Ok, using the events method i seem to have cracked it.
I didnt do it as you described but i have come up with a pretty effective way of doing it.

Thanks for steering me in the right direction guys
by cobra1
Mon Mar 05, 2012 2:05 pm
Forum: Flowcode V2 & V3
Topic: switching a light on and off
Replies: 4
Views: 3252

Re: switching a light on and off

Thanks for the reply ben . using that method i can only get it to work from morning till night i.e 08:00 to 19:00.

I cant figure out how to get it to work for 10:00 to 08:00 aswell


The clock is a rtc.
by cobra1
Mon Mar 05, 2012 11:27 am
Forum: Flowcode V2 & V3
Topic: switching a light on and off
Replies: 4
Views: 3252

switching a light on and off

Hi im looking for some inspiration i am trying to turn a light on and off at set times of the day. I am currently doing this be having variables set up for my on and off times. there is then a few if statements to compare the clock time with the on and off time. The if statements are done in such a ...
by cobra1
Tue Feb 28, 2012 12:43 am
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22498

Re: .Bmp to LCD ??

If i were to use 8bit images would that make things easier??
If so how would i adjust the code to suit, i tried to do it but the image was just all over the place on the LCD.
by cobra1
Tue Feb 28, 2012 12:14 am
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22498

Re: .Bmp to LCD ??

Hi, I just wrote that piece of code and it counts ok, the first few numbers were in colour then 6 and 7 were white, then 8 onwards is just black characters. Does this help? /*Macro_SetForeColor_Start*/ #if MX_GCXLCD_TYPE == 1 if (Red > 0x3F) Red = 0x3F; if (Green > 0x1F) Green = 0x1F; if (Blue > 0x1...
by cobra1
Mon Feb 27, 2012 10:10 pm
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22498

Re: .Bmp to LCD ??

Hi Ok, so i ran the 16bit code on this LCD and it does render the display OK, Only problem is that the colours are wrong, looking at the glcd component file it seems that the software converts the data its given into 16bit data, so im not sure that giving it 16bit data is the best thing to do. In th...
by cobra1
Mon Feb 27, 2012 3:08 pm
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22498

Re: .Bmp to LCD ??

Jonny i was wondering if this code could be modified to work on the nokia 6610 lcd . the datasheet says its a 9 bit screen so im not sure what i need to do
by cobra1
Fri Jan 06, 2012 4:58 pm
Forum: Flowcode V2 & V3
Topic: String Query
Replies: 6
Views: 3204

Re: String Query

Hi

Filling the rest of the array with zeros works a treat, i can carry on now lol
by cobra1
Fri Jan 06, 2012 10:41 am
Forum: Flowcode V2 & V3
Topic: String Query
Replies: 6
Views: 3204

Re: String Query

Ahh I get what you mean now. I will try it when I get home from work and let you know if it works
by cobra1
Fri Jan 06, 2012 10:01 am
Forum: Flowcode V2 & V3
Topic: String Query
Replies: 6
Views: 3204

Re: String Query

How do I send 0 through hyperterminal?
by cobra1
Thu Jan 05, 2012 11:39 pm
Forum: Flowcode V2 & V3
Topic: String Query
Replies: 6
Views: 3204

String Query

Hi Im having a problem with something im working on using strings. Basically what im doing is receiving data using the RXINT, each character received is being put into an array. The upon receiving <CR> the string is processed. So i have a string variable set like this STRING[20] After processing the...
by cobra1
Wed Jan 04, 2012 11:08 am
Forum: Flowcode V2 & V3
Topic: changing internal clock speed
Replies: 12
Views: 7526

Re: changing internal clock speed

I had mega problems with the extended CPU. Took me over a week to find it was actually that causing the problem. I don't know what it does exactly. But I just disable it. I disable everything that I don't fully understand.
by cobra1
Mon Jan 02, 2012 3:41 pm
Forum: Flowcode V2 & V3
Topic: changing internal clock speed
Replies: 12
Views: 7526

Re: changing internal clock speed

No problem, i myself have learnt something new :)
by cobra1
Mon Jan 02, 2012 2:40 pm
Forum: Flowcode V2 & V3
Topic: changing internal clock speed
Replies: 12
Views: 7526

Re: changing internal clock speed

Hi, the HS-PLL wont work with the internal clock, well at least i couldnt get it to work.

It needs to have an external clock to work with the HS-PLL,
Put an 8mhz crystal in the hardware and set HS-PLL and you will get 32mhz clock speed
by cobra1
Sat Dec 31, 2011 3:54 pm
Forum: Flowcode V2 & V3
Topic: enc28j60 ethernet controller
Replies: 0
Views: 1752

enc28j60 ethernet controller

Has anyone written a driver for this controller yet?
by cobra1
Wed Dec 28, 2011 12:50 pm
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22498

Re: .Bmp to LCD ??

i was wondering, if i were to use a 16bit chip instead of an 8 bit one, will there be any required changes to the code above?

the part where you get to bytes to create a word, is a 16 bit chip just able to get a word in one go?
by cobra1
Fri Dec 09, 2011 1:39 pm
Forum: Flowcode V2 & V3
Topic: .Bmp to LCD ??
Replies: 52
Views: 22498

Re: .Bmp to LCD ??

Cheers for that ben. Made it a lot clearer. Now is it worth waiting for flowcode 5 for dsPIC. If so when is it likely to be released?