Page 1 of 1

Unable configure two ports for 128x64 DISPLAY using AT91SAM7

Posted: Thu Aug 26, 2010 5:02 am
by ymalleswar
We have purchased FLOWCODE 3 FOR ARM and we wanted to use 128X64 graphic display and to use 'user component' mode. Then we have copied 128X64 c code from Matrixmedia support and pasted at components folder as explained and configured the required pins as 13 ( 8pins for data +5 pins for control) and also copied the define statements and selected two ports (Port 'c' for data and port B for control signals.) and assigned pins for CS1 , CS2 etc.,

But when we have selected the User component at flow insertion and want to configure the ports for 13 pins, all the assigned pins are visible but only single port selection is provided the second port option is not available to assign for control lines as we have only one field (Port) to enter for all the pins assigned.

Please guide us how to proceed further to assign 13 pins of 128X64 mono graphic LCD and we need to assign pins for data pins (8) to port C and control pins(5) to port B.

We are also unable to see the output string like the standard glcd icon.

PLease guide us.
regards,
Malleswar Y

Re: Unable configure two ports for 128x64 DISPLAY using AT91

Posted: Tue Aug 31, 2010 10:10 am
by Benj
Hello.

There are two ports defined in the custom code.

One for the data port and the other for the control port.

#define MX_DATA_PORT portd //%a
#define MX_DATA_TRIS trisd //%b
#define MX_CONTROL_PORT portc //%c
#define MX_CONTROL_TRIS trisc //%d
#define MX_CS1 0 //%e
#define MX_CS2 1 //%f
#define MX_DAT_INST 2 //%g
#define MX_ENABLE 3 //%h
#define MX_READ_WRITE 4 //%i

The output string function is called "LCD_Print_String".