Unable configure two ports for 128x64 DISPLAY using AT91SAM7

For C and ASSEMBLY users to post questions and code snippets for programming in C and ASSEMBLY. And for any other C or ASM course related questions.

Moderators: Benj, Mods

Post Reply
ymalleswar
Posts: 1
Joined: Wed Aug 25, 2010 11:54 am
Contact:

Unable configure two ports for 128x64 DISPLAY using AT91SAM7

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

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

Post 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".

Post Reply