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¤Î¥µ¥ó¥×¥ë¤Ï¥ï¡¼¥¯¥¢¥é¥¦¥ó¥ÉºÑ¤Ç¤¹¡£
-
ÌÈÀÕ¡¦Ï¢ÍíÀè¤Ï¢¬¤Î¥ê¥ó¥¯¤ò
¢SNS¤â¤ä¤Ã¤Æ¤Þ¤¹¢
powered by ¤Þ¤á¤ï¤¶- ARM/STM32 (116)
- OpenOCD (27)
- ARM/NxP (34)
- ARM/Cypress (5)
- ARM/Others (3)
- ARM/Raspi (1)
- AVR (13)
- FPGA (4)
- GPS/GNSS (19)
- MISC (81)
- STM8 (2)
- Wireless¤Ê¥¢¥ì (16)
- ¤ª¤¤Ñ (1)
- ¥Ö¥é¥¦¥¶¥Ù¥ó¥Á¥Þ¡¼¥¯ (28)
- ÆüËܤμ«Á³ÊâÆ» (25)
- STM32U0¤Ï¤Â¤á¤Þ¤·¤¿
¢Í ¤Í¤à¤¤ (08/07) - STM32U0¤Ï¤Â¤á¤Þ¤·¤¿
¢Í ¤Ò¤«¤ï (07/28) - STM32H5¤ò»È¤Ã¤Æ¤ß¤ë3 -ÂÔ¤Á¼õ¤±¤ë½é¸«»¦¤·¤Î櫤¿¤Á-
¢Í ¤Í¤à¤¤ (05/17) - STM32H5¤ò»È¤Ã¤Æ¤ß¤ë3 -ÂÔ¤Á¼õ¤±¤ë½é¸«»¦¤·¤Î櫤¿¤Á-
¢Í ¤É¤¸¤ç¤ê¤ó (05/16) - STM32H5¤ò»È¤Ã¤Æ¤ß¤ë3 -ÂÔ¤Á¼õ¤±¤ë½é¸«»¦¤·¤Î櫤¿¤Á-
¢Í ¤É¤¸¤ç¤ê¤ó (05/16) - ¤¤¤í¤¤¤í»î¤¹61(¤Èº£Ç¯¤ÎÈ¿¾Ê²ñ)
¢Í ¤Í¤à¤¤ (01/02) - ¤¤¤í¤¤¤í»î¤¹61(¤Èº£Ç¯¤ÎÈ¿¾Ê²ñ)
¢Í ¤Ò¤«¤ï (01/02) - ¤¤¤í¤¤¤í»î¤¹61(¤Èº£Ç¯¤ÎÈ¿¾Ê²ñ)
¢Í ¤Ò¤«¤ï (01/01) - STM32H5¤ò»È¤Ã¤Æ¤ß¤ë3 -ÂÔ¤Á¼õ¤±¤ë½é¸«»¦¤·¤Î櫤¿¤Á-
¢Í ¤Í¤à¤¤ (12/31) - STM32H5¤ò»È¤Ã¤Æ¤ß¤ë3 -ÂÔ¤Á¼õ¤±¤ë½é¸«»¦¤·¤Î櫤¿¤Á-
¢Í ¤Ò¤«¤ï (12/31)
- October 2024 (1)
- September 2024 (1)
- August 2024 (1)
- July 2024 (1)
- June 2024 (1)
- May 2024 (1)
- April 2024 (1)
- March 2024 (1)
- February 2024 (2)
- January 2024 (1)
- December 2023 (4)
- November 2023 (2)
- October 2023 (2)
- September 2023 (1)
- August 2023 (2)
- July 2023 (1)
- June 2023 (2)
- May 2023 (3)
- April 2023 (1)
- March 2023 (1)
- February 2023 (1)
- January 2023 (1)
- December 2022 (2)
- November 2022 (1)
- October 2022 (1)
- September 2022 (1)
- August 2022 (1)
- July 2022 (1)
- June 2022 (1)
- May 2022 (1)
- April 2022 (1)
- March 2022 (1)
- February 2022 (1)
- January 2022 (1)
- December 2021 (2)
- November 2021 (2)
- October 2021 (1)
- September 2021 (1)
- August 2021 (1)
- July 2021 (1)
- June 2021 (1)
- May 2021 (1)
- April 2021 (1)
- March 2021 (1)
- February 2021 (1)
- January 2021 (1)
- December 2020 (3)
- November 2020 (1)
- October 2020 (1)
- September 2020 (1)
- August 2020 (1)
- July 2020 (1)
- June 2020 (2)
- May 2020 (1)
- April 2020 (1)
- March 2020 (1)
- February 2020 (1)
- January 2020 (1)
- December 2019 (3)
- November 2019 (1)
- October 2019 (1)
- September 2019 (2)
- August 2019 (1)
- July 2019 (1)
- June 2019 (1)
- May 2019 (1)
- April 2019 (1)
- March 2019 (1)
- February 2019 (1)
- January 2019 (1)
- December 2018 (3)
- November 2018 (2)
- October 2018 (1)
- September 2018 (1)
- August 2018 (1)
- July 2018 (1)
- June 2018 (1)
- May 2018 (1)
- April 2018 (2)
- March 2018 (1)
- February 2018 (1)
- January 2018 (1)
- December 2017 (2)
- November 2017 (2)
- October 2017 (1)
- September 2017 (1)
- August 2017 (1)
- July 2017 (1)
- June 2017 (1)
- May 2017 (1)
- April 2017 (1)
- March 2017 (2)
- February 2017 (2)
- January 2017 (2)
- December 2016 (7)
- November 2016 (2)
- October 2016 (2)
- September 2016 (1)
- August 2016 (1)
- July 2016 (1)
- June 2016 (1)
- May 2016 (2)
- April 2016 (1)
- March 2016 (2)
- February 2016 (1)
- January 2016 (1)
- December 2015 (3)
- November 2015 (1)
- October 2015 (3)
- September 2015 (2)
- August 2015 (2)
- July 2015 (3)
- June 2015 (3)
- May 2015 (4)
- April 2015 (2)
- March 2015 (4)
- February 2015 (1)
- January 2015 (3)
- December 2014 (3)
- November 2014 (2)
- October 2014 (1)
- September 2014 (2)
- August 2014 (2)
- July 2014 (3)
- June 2014 (2)
- May 2014 (1)
- April 2014 (1)
- March 2014 (4)
- February 2014 (4)
- January 2014 (3)
- December 2013 (5)
- November 2013 (4)
- October 2013 (3)
- September 2013 (2)
- August 2013 (2)
- July 2013 (2)
- June 2013 (3)
- May 2013 (2)
- April 2013 (2)
- March 2013 (2)
- February 2013 (2)
- January 2013 (3)
- December 2012 (4)
- November 2012 (2)
- October 2012 (2)
- September 2012 (4)
- August 2012 (1)
- July 2012 (3)
- June 2012 (2)
- May 2012 (3)
- April 2012 (3)
- March 2012 (2)
- February 2012 (3)
- January 2012 (3)
- December 2011 (5)
- November 2011 (3)
- October 2011 (2)
- September 2011 (2)
- August 2011 (2)
- July 2011 (2)
- June 2011 (2)
- May 2011 (2)
- April 2011 (2)
- March 2011 (2)
- February 2011 (2)
- January 2011 (3)
- December 2010 (7)
- November 2010 (1)
- October 2010 (1)
- September 2010 (1)
- August 2010 (3)
- July 2010 (4)
- May 2010 (1)
- April 2010 (2)
- March 2010 (2)
- February 2010 (2)
- January 2010 (3)
- December 2009 (3)
- November 2009 (8)
- October 2009 (7)
- September 2009 (5)
- August 2009 (4)
- July 2009 (6)
- June 2009 (6)
- May 2009 (14)
- January 1970 (1)
Copyright(C) B-Blog project All rights reserved.
Comments
Post a Comment