Difference between revisions of "TV Output"

From ArmadeusWiki
Jump to: navigation, search
m (Starting the tool)
(Tool installation)
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
How-To use the SVideo output of the APF9328DevFull
+
How-To use the S-Video output of the [[APF9328DevFull]]. This way you can connect this board to a TV screen or a video projector.
  
The DevFull is equipped with a SVideo output which can be used to connect a TV to the board.<br>
+
==Hardware==
 +
For this functionnality, we use a Chrontel's CH7024 RGB to S-Video converter. This chip takes the signals coming from the i.MXL LCD controller and convert it to PAL or NTSC. This requires specific timings on these LCD signals and so you won't be able to see an image on both LCD and S-Video at the same time (i.MXL limitation).
  
 
== Tool installation ==
 
== Tool installation ==
Instead of using a real driver, a simple debug tool (CH7024) has been written to configure the SVideo controller.
+
Instead of using a Linux driver, a simple userspace tool (''ch7024'') has been written to configure the S-Video controller (through I2C bus).<br>
make menuconfig -> package selection target -> Hardware handling / blockdevices and filesystem maintenance -> ch7024ctrl
+
'''It is now by default installed on a standard Armadeus rootfs.''' If not, you can add it in Buildroot configuration:
make
+
<pre class="host">
 +
$ make menuconfig
 +
</pre>
 +
<pre class="config">
 +
Package Selection for the target --->
 +
    Armadeus specific tools/utilities  --->
 +
        [*] ch7024 control
 +
</pre>
 +
<pre class="host">
 +
$ make
 +
</pre>
  
Once compiled, you will see a ch7024 program in the /usr/bin directory of your rootfs.<br>
+
Once compiled you can copy the tool (''buildroot/project_build_arm/armadeus/root/usr/bin/ch7024 + *.conf files'') directly on you target in ''/usr/bin'' or reflash your rootfs.
  
== Configuration ==
+
== Starting the tool ==
In order to program the right parameters in the CH7024, configuration files (.conf) are used.<br>
+
At first, the timings of the LCD controller have to be modified.  
They are simple text files containing the register values of the CH7024 for a given configuration.<br>
+
This can be done by means of the [[Linux_Debug#Changing_processor_registers_from_Linux_user_space_with_imxregs | imxregs tool]]. '''Do not forget to unlock the register access from U-Boot before.'''
Depending on your requirements, you have to use the right configuration file.  
+
  
 
=== 320x240 input format (like MTFT035) ===
 
=== 320x240 input format (like MTFT035) ===
copy the ch424x283.conf file (armadeus/buildroot/build_arm_nofpu/ch7024ctrl-1.0/ )
 
in the /usr/bin directory of the APF9328 rootfs.
 
 
=== 480x272 input format (like LQ043) ===
 
copy the ch500x320.conf file (armadeus/buildroot/build_arm_nofpu/ch7024ctrl-1.0/ )
 
in the /usr/bin directory of the APF9328 rootfs.
 
 
== Starting the tool ==
 
At first, the timings of the LCD controler have to be modified.
 
This can be done by means of the imxregs tool (http://www.armadeus.com/wiki/index.php?title=Linux_Debug). Do not forget to unlock the register access rights
 
 
=== 320x240 input format ===
 
 
  imxregs LPCR 0XF8C80087
 
  imxregs LPCR 0XF8C80087
 
  imxregs HCR 0X78004401
 
  imxregs HCR 0X78004401
Line 35: Line 33:
 
  imxregs SPCTL1 0x00000040
 
  imxregs SPCTL1 0x00000040
  
=== 480x272 input format ===
+
=== 480x272 input format (like LQ043) ===
 
  imxregs LPCR 0XF8C80085
 
  imxregs LPCR 0XF8C80085
 
  imxregs HCR 0x28000500
 
  imxregs HCR 0x28000500
Line 44: Line 42:
  
 
Then
 
Then
  sh
+
  # cd /usr/bin
cd /usr/bin
+
  # ch7024 configurationFileName.conf    (ie: ch7024 ch424x283.conf)
  ch7024 configurationFileName.conf    (ie: ch7024 ch424x283.conf)
+
  
== Changing SVideo parameters ==
+
== Changing S-Video parameters ==
Changing the SVideo parameters is not easy due to several PLL parameters which have to be fine tuned. An external tool (running only under Windows :( )is required. As the documentation for this component is restricted to registered users (no other choice :( ), please contact us if you need informations.
+
Changing the S-Video parameters is not easy due to several PLL parameters which have to be "fine tuned". An external tool (only running under Windows :( ) is required to do that. As the documentation for this component is restricted to registered Chrontel users ( no other choice :( ), please contact us if you need more informations.
  
 
== Links ==
 
== Links ==
 +
* [http://www.chrontel.com/PRODUCTS/7023.htm CH7024 datasheet]
 
* http://www.chrontel.com
 
* http://www.chrontel.com
  
 
[[Category:Displays]]
 
[[Category:Displays]]
 +
[[Category:I2C]]

Latest revision as of 14:38, 2 May 2011

How-To use the S-Video output of the APF9328DevFull. This way you can connect this board to a TV screen or a video projector.

Hardware

For this functionnality, we use a Chrontel's CH7024 RGB to S-Video converter. This chip takes the signals coming from the i.MXL LCD controller and convert it to PAL or NTSC. This requires specific timings on these LCD signals and so you won't be able to see an image on both LCD and S-Video at the same time (i.MXL limitation).

Tool installation

Instead of using a Linux driver, a simple userspace tool (ch7024) has been written to configure the S-Video controller (through I2C bus).
It is now by default installed on a standard Armadeus rootfs. If not, you can add it in Buildroot configuration:

$ make menuconfig
Package Selection for the target  --->
    Armadeus specific tools/utilities  --->
        [*] ch7024 control
$ make

Once compiled you can copy the tool (buildroot/project_build_arm/armadeus/root/usr/bin/ch7024 + *.conf files) directly on you target in /usr/bin or reflash your rootfs.

Starting the tool

At first, the timings of the LCD controller have to be modified. This can be done by means of the imxregs tool. Do not forget to unlock the register access from U-Boot before.

320x240 input format (like MTFT035)

imxregs LPCR 0XF8C80087
imxregs HCR 0X78004401
imxregs VCR 0X0C001414
imxregs CSCR 0x03010003
imxregs SPCTL0 0x04011402
imxregs SPCTL1 0x00000040

480x272 input format (like LQ043)

imxregs LPCR 0XF8C80085
imxregs HCR 0x28000500
imxregs VCR 0x0c001617
imxregs CSCR 0x03010003
imxregs SPCTL0 0x04011402
imxregs SPCTL1 0x00000040

Then

# cd /usr/bin
# ch7024 configurationFileName.conf    (ie: ch7024 ch424x283.conf)

Changing S-Video parameters

Changing the S-Video parameters is not easy due to several PLL parameters which have to be "fine tuned". An external tool (only running under Windows :( ) is required to do that. As the documentation for this component is restricted to registered Chrontel users ( no other choice :( ), please contact us if you need more informations.

Links