696 Views 16 Replies Last post: Mar 3, 2010 11:19 PM by ssureshtronics RSS
ssureshtronics Newbie 12 posts since
Jul 31, 2009
Currently Being Moderated

Jan 27, 2010 6:24 AM

any one working with Renesas H8sX ?

hi all and FrankL.

 

                  I'm working with H8sx1668 interfacing TFT directly, The project phase was in Coding. The PCB was done with 4layer. The matter is since its very short time for us, i requested renesas to give me a basic working set of code without using RTOS, but they don't.

 

                If anyone working with the Drect TFT driving. Simply i need a suggestion of either its possible to interface the TFT, SDRAM, Parallel flash or not.

Tags: 1668
Michael-K. Newbie 33 posts since
Apr 16, 2009
Currently Being Moderated
Jan 27, 2010 7:33 AM in response to: ssureshtronics
Re: any one working with Renesas H8sX ?

It's possible, why not? But I think SRAM would be a better choice than SDRAM.

I guess you are using 1668R and your TFT-resolution is 320 x 240?

If you've got problems to meet reliable DMA-timing you could lower standard DCLK frequency (~6MHz) to 4-5 MHz without visible flicker.

Michael-K. Newbie 33 posts since
Apr 16, 2009
Currently Being Moderated
Jan 28, 2010 6:29 AM in response to: ssureshtronics
Re: any one working with Renesas H8sX ?

I'm sorry, but I don't know your

software, your hardware or what any pin of

your LCD-connector is doing.

blake carpenter Newbie 6 posts since
Jul 21, 2009
Currently Being Moderated
Jan 28, 2010 8:49 PM in response to: ssureshtronics
Re: any one working with Renesas H8sX ?

I think you can interface to the LCD by using a non-os approach - but you won't have a wealth of information to draw on.  The standard Renesas Demo's are all built around the FreeRTOS code.  I had never worked with an OS before digging into the Direct Drive GAPI demo to polish up some existing labs.  Turns out the OS really doesn't get in the way and was largely invisible to me (I basically just wrote embedded C as normal).  I just had to pay attention to setting up my functions intitially.  There is a 1668 demo board that you might want to see if you can get your hands on (contact your local Renesas FAE).  If you can get a board - and look at the existing Demo - chances are you will have a much better time getting your board doing what you want.

 

As it was explained to me - as long as you have your pixel clock running - and have the Vsync / Hsync doing the correct thing - and have your enable line going the right direction - you will get pixels out on the screen... maybe in the wrong spots and not stable - but yoiu will get something.  That is IF you are shifting out data on your I/O.

 

So look at your rough timing on the dot clock and vsync/hsync & make sure your enable is going the correct direction.  Make sure your backlight is working.  The most painful part is getting a stable hello world on screen.  After that it gets fun.  Make sure and check for opens or bridges in your connector as well. If you can get hold of the 1668 demo board - you can sit with a scope and check all timings of the Demo - then double check them on your board.

 

Note that if you "go it alone" and bypass the GAPI / RTOS that you will be faced with re-writing 6-12 months worth of code.  That is some nasty stuff to tackle if you don't have too.

 

I would start by going to the www.america.renesas.com/h8lcd page then click on the 2378 kit owner button on the upper right corner - and looking at what is up there for the 2378.  (the 1668 version is a work in progress).  Note that the demo code can be customized to run on the 1668 pretty easily...  I have been playing with the 1668 for several months.  The Demo code that comes with the 1668 demo board can be easily set up to run from the SDRAM (I think it is actually configured this way).

 

The 1668 demo board from Renesas is configured to boot up - then copy contents of the Serial Flash that is on the board to SDRAM (this contains all the Graphics images).

 

Note you might want to look below the obolete 2378 annotated schematics at the link thta says Annotated Schematics for the H8SX/1668... they might point you in the right direction.  Be sure and read over all the notes on the .pdf.  You might find a smoking gun in hardware.  I have tried to attach the annotated schematic to this post.

Attachments:
blake carpenter Newbie 6 posts since
Jul 21, 2009
Currently Being Moderated
Jan 28, 2010 8:51 PM in response to: ssureshtronics
Re: any one working with Renesas H8sX ?

By the way - the first pixel lighting took me almost a week on my last project (that is at least 50 hours worth of work).  Debugging the hardware on an LCD project can be VERY frustrating... no matter what the hardware / software environment.

ckgrier Apprentice 853 posts since
Mar 16, 2009
Currently Being Moderated
Jan 29, 2010 11:48 AM in response to: ssureshtronics
Re: any one working with Renesas H8sX ?

VGA panels should use 30 FPS.

blake carpenter Newbie 6 posts since
Jul 21, 2009
Currently Being Moderated
Jan 29, 2010 2:28 PM in response to: ssureshtronics
Re: any one working with Renesas H8sX ?

Calvin is right - you have to do a math model on the speed of the dot clock and the amount of time it takes to shift out 640 x 480 pixels.  I think 60 FPS is unreachable.  Just to get something on the screen to make sure you are on the right path - I would take it to 15 or 20 FPS just to make sure you are getting out data - then crank up the FPS until you run out of bandwidth.

 

The AE lab has reached 640 x 480 on a former project (I'm almost certain) so it is possible with the 1668.

ckgrier Apprentice 853 posts since
Mar 16, 2009
Currently Being Moderated
Mar 1, 2010 11:48 AM in response to: ssureshtronics
Re: any one working with Renesas H8sX ?

Yes, the 1668R will run a VGA TFT display. We usually use the Cluster mode (see the Design Guide) to get the clocking fast enough for the big displays.

ckgrier Apprentice 853 posts since
Mar 16, 2009
Currently Being Moderated
Mar 2, 2010 8:59 AM in response to: ssureshtronics
Re: any one working with Renesas H8sX ?

The approach used for VGA is described in detail here:

 

http://america.renesas.com/media/products/mpumcu/h8/h8_lcd/child_folder/Direct_Drive_LCD_Design_Guide.pdf

 

There's a HEW project and app note that can generate the correct configuration for you. You should not see low values like 8Mhz on the pixel clock.

 

http://america.renesas.com/media/products/mpumcu/h8/h8_lcd/child_folder/Direct_Drive_LCD_Demo_Application_Note.pdf

 

This has been shown to work on a Kyocera panel, but it will work on any of them.

 

Are you using 1668 or 1668R?

ckgrier Apprentice 853 posts since
Mar 16, 2009
Currently Being Moderated
Mar 3, 2010 6:51 AM in response to: ssureshtronics
Re: any one working with Renesas H8sX ?

here's setup files for a WVGA panel from Kyocera (800x480). I've seen pictures from a customer showing it in operation.

 

The CNF files goes in your "\Platform\H8SX1668_RTA_SDRAM_CLUSTER" directory. The CNF(Kyocera_WV) file goes in "\Commonsource\Drivers" directory.

 

Make sure you select the build configuration from the drop-down menu for Cluster mode. It may be hard to see if the build configuration name gets cut off, but the drop-down order should match the order in the "Build Configurations" setup menu.

 

You should note that on some panels the timing we use isn't exactly what the panel data sheet says.

More Like This

  • Retrieving data ...

Bookmarked By (0)