STM32H7¤ò»È¤Ã¤Æ¤ß¤ë7 -¥Æ¥£¥¢¥ê¥ó¥°¤ò²¿¤È¤«¤·¤¿¤¤-

¢«Á°²ó

¤Ê¤ó¤È4ǯ¤Ö¤ê¤ÎSTM32H7¤Îµ­»ö¤Ç¤¹¡ª
¤Á¤Ê¤ß¤ËºÇ¿·¤ÎSTM32H7R/S¥·¥ê¡¼¥º¤Ë¤Ä¤¤¤Æ¤ÏOpenOCD¤¬Àµ¼°Âбþ¤·¤Æ
¤¤¤Ê¤¤¤¿¤á¡¢ÅöÌ̤δ֤ÏSTM32H747I-Discovery¤ò»ÈÍѤ·¤¿µ­»ö¤È¤Ê¤ê¤Þ¤¹¡Ä
¤ªÁ°¥¢¥ê¥¢¥Ï¥ó¤«¤éÁ´Á³Ã¦½Ð¤Ç¤­¤Æ¤Ê¤¤¤¸¤ã¤Ê¤¤¤«¡ª£±¡ª¡ª

¤µ¤Æ¡¢¤Í¤à¤¤¤µ¤ó¤¬¸ø³«¤·¤Æ¤¤¤ëFatFs°Ü¿¢¥µ¥ó¥×¥ëÄ̾Î"¤¤¤Ä¤â¤Î"¤Ë
¤Ä¤¤¤Æ¤ÏChaN»Õ¤ÎFatFs¤Î¤Û¤«¤Ë´Ê°×¥Õ¥¡¥¤¥é¡¼¤ätxt(S-JIS¤Î¤ß)¥Õ¥¡¥¤¥ë¡¢
¤µ¤é¤ËÆȼ«¥Õ¥©¡¼¥Þ¥Ã¥È¤ÎÆ°²è¥Õ¥¡¥¤¥ë¤âÂбþ¤·¤Æ¤ª¤ê¤Þ¤¹¡£

¤½¤ì¤ÇSTM32H747I-DISCO¤ÏDSI¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤ÇLTDC¤òÆ°ºî¤µ¤»¤Æ
±ÇÁü¤ò½ÐÎϤ·¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢ÁÇÁ᤯²èÌÌÀÚ¤êÂؤ¨¤¿ºÝ¤äÆ°²èºÆÀ¸»þ¤Ê¤É¤Ë
²èÌ̤Υƥ£¥¢¥ê¥ó¥°¤¬È¯À¸¤·¤Æ¤·¤Þ¤Ã¤Æ¤ª¤ê¤Þ¤·¤¿¡£


Îã¤È¤·¤Æ¥¼EROÆ°²è¤òºÆÀ¸¤·¤Æ¤¤¤ë¤È¤³¤í

ÀÖ¿§¤ÇÀþ°ú¤¤¤Æ¶¯Ä´¤·¤Æ¤ß¤Þ¤·¤¿¤¬²£Êý¸þ¤Î¥Æ¥£¥¢¥ê¥ó¥°¤Î¾å¤Ë¼Ð¤áÊý¸þ
¤Ë¤â¥Æ¥£¥¢¥ê¥ó¥°¤¬È¯À¸¤·¤Æ¤·¤Þ¤Ã¤Æ¤¤¤ë¾õÂ֤Ǥ¹¡£

²£Êý¸þ¤Î¥Æ¥£¥¢¥ê¥ó¥°¤ÏLTDC¤ÎVSYNC¤òÂԤĤ褦¤Ë¤·¤¿¤é²ò¾Ã¤·¤Þ¤·¤¿¡£
¶ñÂÎŪ¤Ê¥³¡¼¥É¤Ï²¼µ­¤Î¤è¤¦¤Ê¥³¡¼¥É¤òDMA2D¤Ç¤Ö¤óÅꤲ¤ëÁ°¤ËÁÞÆþ¤¹¤ì¤Ð
²ò·è¤Ç¤¹¡£

/**************************************************************************/
/*!
Wait VSYNC signal.
*/
/**************************************************************************/
void Display_WaitVSYNC(void)
{
/* reload shadow registers on vertical blanking period */
LTDC->SRCR = LTDC_SRCR_VBR;
/* wait for next frame */
while ((LTDC->CDSR & LTDC_CDSR_VSYNCS) == 0);
}

¥³¡¼¥É¾ÜºÙ¤Ï./lib/display/mcu_depend/src/lcdc_if_basis.c¤È
./lib/display/abstract/src/ts_fileloads.c¤ò»²¹Í¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£

¤·¤«¤·¡¢¼Ð¤áÊý¸þ¤Î¥Æ¥£¥¢¥ê¥ó¥°¤Ï¤³¤ì¤Ç¤À¤±¤Ï²ò¾Ã¤·¤Þ¤»¤ó¤Ç¤·¤¿¡Ä
²èÌÌÀÚ¤êÂؤ¨¤¿¤È¤­¤È¤«¤Î¼Ð¤áÊý¸þ¤Î¥Æ¥£¥¢¥ê¥ó¥°¤¬¤É¤¦¤·¤Æ¤â
µ¤¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¦¡Ä


ÉԻ׵Ĥʤ³¤È¤Ë¼Ð¤á¥Æ¥£¥¢¥ê¥ó¥°¤ÏDSIÀܳ¤ÎLCD¥â¥¸¥å¡¼¥ë¤ò²£Êý¸þ
(LANDSCAPE)¤Ç»ÈÍѤ·¤¿»þ¤À¤±È¯À¸¤·¡¢½ÄÊý¸þ(PORTRAIT)¤Ê¤é°ìÀÚȯÀ¸
¤·¤Ê¤¤¤³¤È¤Ëµ¤¤Å¤­¤Þ¤·¤¿¡Ä¤¤¤Ê¤¤¤µ¤ó¤«¤ï¤¤¤¤¡Ä

ST¤Î¥Õ¥©¡¼¥é¥à¤âÄ´¤Ù¤Æ¤ß¤Þ¤·¤¿¤¬Æ±¤¸¸½¾Ý¤ËǺ¤ó¤Ç¤ëÊý¤¬·ë¹½¤¤¤ë¤³¤È¤¬
¤ï¤«¤ê¤Þ¤·¤¿
­¡STM32F769-DISCO¤ò»È¤Ã¤Æ¤ë¿Í
­¢STM32F469I-DISCO¤ò»È¤Ã¤Æ¤ë¿Í
­£¤Í¤à¤¤¤µ¤ó¤È¤ª¤Ê¤¸STM32H747I-DISCO¤ò»È¤Ã¤Æ¤ë¿Í
­¤STM32F469I-DISCO¤ò»È¤Ã¤Æ¤ë¿Í¤½¤Î£²
¶¦Ä̤¹¤ë¤Î¤ÏDSI¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤ÎLCD¥â¥¸¥å¡¼¥ë¤ò²£Êý¸þ¤Ç»È¤Ã¤¿ºÝ¤Ë
¼Ð¤á¥Æ¥£¥¢¥ê¥ó¥°¤¬½Ð¤Á¤ã¤Ã¤Æ¤¤¤ë¤è¤¦¤Ç¤¹¡£
¤Á¤Ê¤ß¤Ë¤Í¤à¤¤¤µ¤ó¤¬½ê»ý¤·¤Æ¤¤¤ëSTM32F769N-Discovery¤Ç¤âƱ¤¸¸½¾Ý¤¬
ȯÀ¸¤·¤Æ¤ª¤ê¤Þ¤·¤¿¡£


­¡¤Î¤È¤³¤í¤ÇST¼Ò°÷¤Î¿Í¤¬¼Ð¤á¥Æ¥£¥¢¥ê¥ó¥°¤¬µ¯¤³¤ë»ÅÁȤߤÈÂкö¤ò¼¨¤·¤Æ
¤ª¤ê¤Þ¤·¤¿¡£
¤Í¤à¤¤¤µ¤ó½ê»ý¤ÎSTM32H747I-DISCO¤ÎTFT-LCD¥â¥¸¥å¡¼¥ë¤Î¥³¥ó¥È¥í¡¼¥é¤Ï
OTM8009A¤È¤¤¤¦480x800(MAX864)¤ÎWVGA¤Î½ÄÊý¸þɽ¼¨¤ËÆò½¤·¤¿¤ä¤Ä¤Ç¤·¤¿¡£
²£Êý¸þ¤Ë¤·¤Æ»ÈÍѤ¹¤ë¤È¸¶ÍýÄ̤ꥹ¥­¥ã¥óÊý¸þ¤ÎÁê°ã¤¬µ¯¤³¤Ã¤Æ¼Ð¤áÊý¸þ¤Ë
¥Æ¥£¥¢¥ê¥ó¥°¤¬È¯À¸¤·¤Æ¤·¤Þ¤¦¤È¤¤¤¦¤³¤È¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡Ä

¤Ç¡¢¸¶Íý¤ÏǼÆÀ¤·¤Þ¤·¤¿¤¬¶ñÂÎŪ¤ÊÂкö(¥Õ¥ì¡¼¥à¥Ð¥Ã¥Õ¥¡¤ò2ʬ³ä¤»¤è)
¤È¤ä¤é¤òʸ»ú¤Ç¼¨¤·¤Æ¤¤¤Þ¤¹¤¬¥½¡¼¥¹¤ÏÄ󼨤µ¤ì¤Æ¤ª¤é¤º¤Í¤à¤¤¤µ¤ó¤Ï
´Î¿´¤Î¥½¡¼¥¹¥³¡¼¥É¤òÃΤꤿ¤«¤Ã¤¿¤Î¤ÇºÆ¤ÓÅ¥¾Â¤Ë¤Ï¤Þ¤Ã¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£

¤·¤«¤·¡Ä


ºÇ¸å¤Î­¤¤Î¤È¤³¤í¤ÇVerticalBackPorch(VBP)¤òÁý¤ä¤·¤¿¤é¼Ð¤á¥Æ¥£¥¢¥ê¥ó¥°¤ò
²èÌ̤γ°¤Ë½³¤ê¤À¤»¤¿¤È¥³¥á¥ó¥È¤ò¸«¤Ä¤±¡¢¤Í¤à¤¤¤µ¤ó¤â¿¿»÷¤·¤Æ¤ä¤Ã¤Æ¤ß¤¿
½ê³Î¤«¤Ë¼Ð¤á¥Æ¥£¥¢¥ê¥ó¥°¤¬¿âľÊý¸þ¤Ë°ÜÆ°¤·¤Þ¤·¤¿¡£

¤¤¤í¤¤¤í»î¤·¤¿·ë²Ì¡¢VBP¤ÎÃͤò480Äɲ乤ë¤ÈÃúÅÙ²èÌ̤«¤é¾Ã¤¨¤ë¤Î¤¬È½ÌÀ¤·
²£Êý¸þɽ¼¨¤ÎºÝ¤Î»þ¤À¤±VBP¤ËVBP_OFS¤È¤·¤Æ480¤òÄɲ乤ë¤è¤¦¤Ë¤·¤Þ¤·¤¿¡£
	/* Timing parameters for all Video modes
* Set Timing parameters of LTDC depending on its chosen orientation
*/
/* The following values are same for portrait and landscape orientations */
if(Orientation == LCD_ORIENTATION_PORTRAIT)
{
VSA = OTM8009A_480X800_VSYNC; /* 1 */
VBP = OTM8009A_480X800_VBP; /* 15 */
VFP = OTM8009A_480X800_VFP; /* 16 */
HSA = OTM8009A_480X800_HSYNC; /* 2 */
HBP = OTM8009A_480X800_HBP; /* 34 */
HFP = OTM8009A_480X800_HFP; /* 34 */
}
else
{
/* lcd_orientation == LCD_ORIENTATION_LANDSCAPE */
VSA = OTM8009A_800X480_VSYNC; /* 1 */
VBP = VBP_OFS + OTM8009A_800X480_VBP; /* 15(+480) */
VFP = OTM8009A_800X480_VFP; /* 16 */
HSA = OTM8009A_800X480_HSYNC; /* 2 */
HBP = OTM8009A_800X480_HBP; /* 34 */
HFP = OTM8009A_800X480_HFP; /* 34 */
}




¡Ä¥³¥á¥ó¥ÈÀè¤Ç¤ÏNT35510¤ÎLCD¥â¥¸¥å¡¼¥ë¤Ç¤Ï¤¦¤Þ¤¯¤¤¤«¤Ê¤«¤Ã¤¿¤È¤¤¤¦
·ë²Ì¤Ç¤·¤¿¤¬¤Í¤à¤¤¤µ¤ó¤¬¤â¤Ã¤Æ¤ëOTM8009A¤ÎÅÛ¤ÏÂкö¤Ç¤­¤¿¤Ã¤Ý¤¤¤Î¤Ç
¤Þ¤¡¥ï¡¼¥¯¥¢¥é¥¦¥ó¥É¤È¤·¤Æ¤Ï¤¤¤¤¤Î¤«¤Ê¡Ä¤È»×¤¤¤Þ¤·¡¢¤¿¡ª

DSIÀܳ¤ÎLCD¥â¥¸¥å¡¼¥ë¤¬¤¢¤ëDiscovery·Ï¥Ü¡¼¥É¤ò¤ª»ý¤Á¤ÇƱ¤¸¤è¤¦¤Ê
ÌäÂêÊú¤¨¤Æ¤ëÊý¤ÏÄɻ¤Æ¤¤¤¿¤À¤±¤¿¤é¹¬¤¤¤Ç¤¹¡Ä¡ª¡ª

¤ª¤­¤Ñ¤ÎSTM32H7,STM32F7¤Î¥µ¥ó¥×¥ë¤Ï¥ï¡¼¥¯¥¢¥é¥¦¥ó¥ÉºÑ¤Ç¤¹¡£

Go to top of page