G120HDR LCD Interface

As I mentioned in another thread I designed and built an adapter to interface a Newhaven 4.2" TFT LCD to my G120HDR module (schematic attached).
I ran the following simple code:

using System;
using System.Collections;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Media;
using Microsoft.SPOT.Touch;
using GHI.Premium.Hardware;

namespace LcdTest
    public class Program
        public static void Main()

            // Turn on the backlight
            OutputPort blPin = new OutputPort((Cpu.Pin)85, true);

            Bitmap Canvas = new Bitmap(SystemMetrics.ScreenWidth,
            //draw on memory
            Canvas.DrawLine(Colors.Red, 2, 10, 10, 40, 40);
            Canvas.DrawEllipse(Colors.White, 100, 100, 30, 30);
            //transfer the bitmap memory to the actual display
        /// <summary>
        /// This method initializes the LCD
        /// </summary>
        private static void LcdInit()
            // This configuration is for the old Newhaven 4.3" LCD
            // The new model (NHD-4.3-480272EF-ATXL#-CTP) has different timing

            Configuration.LCD.Configurations lcdConfig = new Configuration.LCD.Configurations();

            lcdConfig.Width = 480;
            lcdConfig.Height = 272;

            lcdConfig.OutputEnableIsFixed = false;
            lcdConfig.OutputEnablePolarity = true;

            lcdConfig.HorizontalSyncPolarity = false;
            lcdConfig.VerticalSyncPolarity = false;
            lcdConfig.PixelPolarity = true;

            lcdConfig.HorizontalSyncPulseWidth = 41;
            lcdConfig.HorizontalBackPorch = 47;
            lcdConfig.HorizontalFrontPorch = 8;

            lcdConfig.VerticalSyncPulseWidth = 10;
            lcdConfig.VerticalBackPorch = 2;
            lcdConfig.VerticalFrontPorch = 3;

            lcdConfig.PixelClockRateKHz = 9000;

            // Set config



The backlight turns on okay but the display remains all white. No display activity of any kind. This display works quite good with the STM32F4 development board I built that uses an SSD1963 LCD controller chip.

Can anyone suggest what else I must do in the firmware that I haven’t done?

BTW: I am running the latest firmware.


@ Synapsys - Hi Synapsys. I was wondering whether you managed to resolve your issues and get the 4.3" TFT working with the G120HDR ? If so what sort of results have you seen ? I hope you don’t mind me asking, I am currently looking at a couple of projects which have ruled out the CP7, I am currently evaluating a couple of alternatives but the 4.3" Capacitive TFT from Newhaven would be a very nice solution if it works well.

I would be interested in hearing your thoughts on it.

Many thanks, Swifty.

@ EngageTech,

No, my wife and I bought a new house and moving after spending 17 years in our old house has been a challenge to say the least.So, unfortunately I had to stop working on that project (and all others for that matter) for awhile. I expect things to settle down in a couple of weeks so I will eventually get back to it.


Hi Synapsys,

Many thanks for the reply, I don’t envy your house move but I wish you all the best with it ! I hope to hear your thoughts on the LCD when time permits you on your projects.

Cheers, Swifty.