Lcd companion boards support (VKLCD50RTA & VKLCD70RT)

What is this ?

This is a demo program using Renesas RGA library & USB Camera to demonstrate VK-RZ/A1H's companion boards workability.


Supported companion Boards:

VKLCD50RTA

/media/uploads/tvendov/front_view_hmi_50.png /media/uploads/tvendov/side_view_hmi_50.png

VKLCD70RT

/media/uploads/tvendov/front_view_hmi_70.png/media/uploads/tvendov/side_view_hmi_70.png /media/uploads/tvendov/front_view_lvds.png/media/uploads/tvendov/back_view_lvds.png


How to Configure ?

You can choose which display is installed by altering the lcd_panel.h file

Leave the active one & comment out the others:

#define     LCD_VDC5_CH0_PANEL                  LCD_CH0_PANEL_VKLCD50RTA
//#define     LCD_VDC5_CH0_PANEL                  LCD_CH0_PANEL_VKLCD70RT

You can alter the whole demo with your pictures if you like:


How to compile ?

  • The Demo can be compiled in 3 modes:
    • I. Execution from the internal 10-MB on-chip SRAM.
      • After import in the online compiler just leave only the VKRZA1H_RAM.sct & delete all others linker files in the TOOLCHAIN_ARM_STD folder.
      • Save the result binary in the SD Card (<SD>:\vkrza1\lcd_sample ), altering vkrza1h.ini by this way
    • II. Execution from the on-board serial FALSH in dual (32-MB) mode.
      • After import in the online compiler just leave only the VKRZA1H_DOUBLE.sct & delete all others linker files in the TOOLCHAIN_ARM_STD folder.
      • Drag & drop the result binary in MBED disk, (previously inited in double flash mode)
    • III. Execution from the on-board serial FALSH in single (16-MB) mode.
      • After import in the online compiler just leave only the VKRZA1H_SINGLE.sct & delete all others linker files in the TOOLCHAIN_ARM_STD folder.
      • Drag & drop the result binary in MBED disk, (previously inited in single flash mode )

Quick presentation:


Other demos ?

More demos you can find on our FTP

Committer:
tvendov
Date:
Thu Feb 16 10:23:48 2017 +0000
Revision:
0:6435b67ad23c
Initial lcd support (VKLCD50RTA & VKLCD70RT companion boards)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tvendov 0:6435b67ad23c 1 // BaseUvc.h
tvendov 0:6435b67ad23c 2 #include "USBIsochronous.h"
tvendov 0:6435b67ad23c 3 #pragma once
tvendov 0:6435b67ad23c 4
tvendov 0:6435b67ad23c 5 // --- UVC --------------------------------------------------
tvendov 0:6435b67ad23c 6 #define _30FPS 333333
tvendov 0:6435b67ad23c 7 #define _25FPS 400000
tvendov 0:6435b67ad23c 8 #define _20FPS 500000
tvendov 0:6435b67ad23c 9 #define _15FPS 666666
tvendov 0:6435b67ad23c 10 #define _10FPS 1000000
tvendov 0:6435b67ad23c 11 #define _5FPS 2000000
tvendov 0:6435b67ad23c 12 #define _1FPS 10000000
tvendov 0:6435b67ad23c 13
tvendov 0:6435b67ad23c 14 #define SET_CUR 0x01
tvendov 0:6435b67ad23c 15 #define GET_CUR 0x81
tvendov 0:6435b67ad23c 16 #define GET_MIN 0x82
tvendov 0:6435b67ad23c 17 #define GET_MAX 0x83
tvendov 0:6435b67ad23c 18 #define GET_RES 0x84
tvendov 0:6435b67ad23c 19 #define GET_LEN 0x85
tvendov 0:6435b67ad23c 20 #define GET_INFO 0x86
tvendov 0:6435b67ad23c 21 #define GET_DEF 0x87
tvendov 0:6435b67ad23c 22
tvendov 0:6435b67ad23c 23 #define VS_PROBE_CONTROL 0x01
tvendov 0:6435b67ad23c 24 #define VS_COMMIT_CONTROL 0x02
tvendov 0:6435b67ad23c 25
tvendov 0:6435b67ad23c 26 class BaseUvc {
tvendov 0:6435b67ad23c 27 public:
tvendov 0:6435b67ad23c 28 void poll(int millisec = 0);
tvendov 0:6435b67ad23c 29 USB_TYPE Control(int req, int cs, int index, uint8_t* buf, int size);
tvendov 0:6435b67ad23c 30 USB_TYPE setInterfaceAlternate(uint8_t intf, uint8_t alt);
tvendov 0:6435b67ad23c 31 IsochronousEp* m_isoEp;
tvendov 0:6435b67ad23c 32 uint32_t report_cc_count[16]; // ConditionCode
tvendov 0:6435b67ad23c 33 uint32_t report_ps_cc_count[16]; // Packt Status ConditionCode
tvendov 0:6435b67ad23c 34 // callback
tvendov 0:6435b67ad23c 35 void onResult(uint16_t frame, uint8_t* buf, int len);
tvendov 0:6435b67ad23c 36 void setOnResult( void (*pMethod)(uint16_t, uint8_t*, int) );
tvendov 0:6435b67ad23c 37 class CDummy;
tvendov 0:6435b67ad23c 38 template<class T>
tvendov 0:6435b67ad23c 39 void setOnResult( T* pItem, void (T::*pMethod)(uint16_t, uint8_t*, int) )
tvendov 0:6435b67ad23c 40 {
tvendov 0:6435b67ad23c 41 m_pCb = NULL;
tvendov 0:6435b67ad23c 42 m_pCbItem = (CDummy*) pItem;
tvendov 0:6435b67ad23c 43 m_pCbMeth = (void (CDummy::*)(uint16_t, uint8_t*, int)) pMethod;
tvendov 0:6435b67ad23c 44 }
tvendov 0:6435b67ad23c 45 void clearOnResult();
tvendov 0:6435b67ad23c 46 CDummy* m_pCbItem;
tvendov 0:6435b67ad23c 47 void (CDummy::*m_pCbMeth)(uint16_t, uint8_t*, int);
tvendov 0:6435b67ad23c 48 void (*m_pCb)(uint16_t, uint8_t*, int);
tvendov 0:6435b67ad23c 49 protected:
tvendov 0:6435b67ad23c 50 USBHost * host;
tvendov 0:6435b67ad23c 51 USBDeviceConnected * dev;
tvendov 0:6435b67ad23c 52 };