Flowcode Custom File, can anyone help??

Status
Not open for further replies.

cobra1

New Member
Hi

I am trying to make my own custom file for flowcode in order to use a bigger LCD display.

I am currently using the custom_Code.c file found here

**broken link removed**

This file allows me to use a 128x64 pixel lcd within flowcode.


I would like to use a bigger LCD display, a 320x240 pixel display. Found HERE

**broken link removed**

I have contacted flowcode to ask how i would impliment this into flowcode and they said i should write my own Custom_Code.c file.
They sent me a link with instructions but i dont really understand them.
They are available here:

https://www.electro-tech-online.com/custompdfs/2010/11/Custom20Components20For20Flowcode.pdf

The driver files for the LCD are here:

**broken link removed**

Can anyone help me to make this required file for flowcode using the info above??

Any help would be great, i have asked this same thing in the flowcode forum but it is a forum that gets very little traffic so it remains unanswered.
 
Ok i got a reply from the guys at flowcode.

They say to use the Custom_Code.c file in here.... **broken link removed**

and modify the following functions,

SendByte
Initialise
Pixel Set

They say that once this is done all the functions like, print string, draw line etc will work correctly.

He also said this,

"The send byte function can be based on the diagram given in the LCD controller datasheet. There is also a list of commands required at startup that you can follow to perform the initialise and set pixel."

I am assuming that the defines for the pinout for the lcd will also require modification.


Heres the problem, i dont know where this "send byte" is in the code. I did a search and it returns nothing..does anyone know what they are refering to???
 
To modify that file would be a big job. When they refer to the SendByte routine they mean the ReadData, WriteData and WriteCommand routines. To get this working you will need a good understanding of C and the two controllers involved.

Mike.
 
Thanks Pommie, looks like im snookered then.

Will have to wait and see if the guys at flowcode are going to use this LCD in the future
 
Ok got another reply from flowcode, they have given me a list of functions that need changing.

the first one is this,

Code:
void MX_LCD_Enable (void)
{
	set_bit(MX_CONTROL_PORT, MX_ENABLE);
	//delay_10us(1);								//Min delay 450ns
	nop();
	nop();
	nop();
	nop();
	nop();

	clear_bit(MX_CONTROL_PORT, MX_ENABLE);
	//delay_10us(1);								//Min delay 1.5us
	nop();
	nop();
	nop();
	nop();
	nop();
}

Can someone explain what it is doing??

All i can see is that it is setting and clearing a bit with 2 delays, followed by no operation commands.

How does this go towards enabling an lcd display??

Which part would require modification when using a different type of screen??
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…