PSoC® Creator™ LCD (LCD_Seg) 2.10 ੈỖ • 2 ♻ 768 • 1/31/41/5 • 10 ♻ 150 Hz • ೖͰ 128 2.0 V ♻ 5.2 V ᄪ • A (օ࠼) B () ܻ • ឱ੦௫ᬾ • 256 ឱ ( ) • 714 16 ɤ5x7 5x8 ᢢ • PSoC 3 ES3 2.0 ὅ Ԫᡚᤜˁ LCD (LCD_Seg) Ͱ⇖ 16 ఖ῀՜ LCD ണŊ⅐օ࠼ LCD ⅐ PSoC ᢾ˅ʈܱť ᡚ ᤩəጞ PSoC ᄤ ῀⇖῀ ឱ Ёᬽ LCD / LCD ؞ឱՒ᯿၅ჱ⇖ť • 7 (ɗ) • 14 (ᑤɗ) • 16 (ᑤɗ) Cypress Semiconductor Corporation • 198 Champion Court • San Jose, CA 95134-1709 • 408-943-2600 ɤͨ☷001-69316 ** ȴᢝʤ May 2, 2011 PSoC® Creator™ LCD (LCD_Seg • 5x7 5x8 ᑤɗ☥5x7 5x8 5x7 ☦ • 1♻255 LCD ᣱჼ AN52927: LCD Ύ PSoC 3 PSoC 5শ LCD LCD Ͱ⇖ 16x ఖ῀՜ LCD ണŊ⅐ᡚ LCD ᧞ PSoC LCD ᡚ Ŋᅅ Ŋᅅឱ Ŋᅅ LCD ᢾᢢ Configure (ᢾ) ợConfigure (ᢾ) LCD ᢾ ɤͨ☷001-69316 ** 2/ 38 PSoC® Creator™ LCD (LCD_Seg Basic Configuration (Ύᢾ Ύᢾ) Ύᢾ Number of Common Lines (ɗ ɗ) ɗ ᡚɗ ( 4) [Number of Segment Lines] ( ɗ ɗ) ɗ ᡚɗဉ 2 ♻ 62 8 Enable Ganging Commons (ᰂᄕ ᰂᄕ) ᰂᄕ PSoC ᰂᄕ⅐᱄ 2 PSoC ⅐ Bias Type ( ) ᢾ Waveform Type (ܻ ܻ) ܻ ܻType A - 0 VDC () Type B - 2 0 VDC ɤͨ☷001-69316 ** 3/ 38 PSoC® Creator™ LCD (LCD_Seg Frame Rate ( ) ᢾNo Sleep () 10 Hz ♻ 150 Hz ဉ 10 ᱄ጞ 60 Hz Low Power () Frame Rate ( ) ᱄ ᢾఖ. ᣱჼỴɗᤜˁ শ Driver Power Mode ( ) Driver Power Mode ( ) ؞ ᢾጞ • No Sleep ()☷LCD DAC • Low Power using ILO (ILO )☷῀᱃ỪLCD DAC 1 KHz ILO • Low Power using Ext 32 KHz crystal (Ext 32 KHz )☷῀᱃ ỪLCD DAC OPPS 8 K ܿ ILO 1 KHz ᢾ 32 KHz ŊᅅͶ32 KHz ͶILO ܻɗ DesignWide Resources Clock Editor ᢾ Ỵɗᤜˁ শ Bias Voltage (῀ ῀) ῀ LCD DAC ῀ᢾᄤ࠺ఖ 2.35 V ♻ 5.5 V 2.017 V ♻ 3 V ɤͨ☷001-69316 ** 4/ 38 PSoC® Creator™ LCD (LCD_Seg Driver Power Settings ( ᢾ) ᢾ Glass Size ( ) Ͷ⁾ʈNumber of Common Lines (ɗ) ᴝᨆᒳᢢ Advanced (ᣱჼᢾ ᣱჼᢾ) ᣱჼᢾ ᱄LCD Driver Power Settings ( ᢾ) ͥ᱄ ᢾ Basic Configuration (Ύᢾ) Glass Size ( ) ᱄Ꭻೖᢾ High Drive Time ( ˫Ừ) ˫Ừ 1 ῀᱃ ˫Ừ Default step ( ) ᱄ᢾᎫೖᢢ High Drive () ᱄ High Drive time (˫Ừ) ɤͨ☷001-69316 ** 5/ 38 PSoC® Creator™ LCD (LCD_Seg No Sleep () ᱄Default High Drive step ( ) Custom Step ( ) Low Power () ጞ᱄ጞ High Drive Step ( ) Custom High Drive step ( ) ጞͰܻɗఖͰ Default step ( ) ܿ Frame Rate () Number of Common Lines (ɗ) Waveform Type (ܻ) ͥHigh Drive Time Value ( ˫Ừ) Ꭻೖᢾ (Advanced (ᣱჼᢾ) ᱄) HighDriveTimeValdef= 1.075/DefaultStep * 128 (Type A) HighDriveTimeValdef= 1.075/DefaultStep * 128 (Type B) ˫ỪͰᢢᯘଦᢾ ˫ỪͰᢢ HighDriveTimeValmax= 1.075/DefaultStep * 253 (Type A) HighDriveTimeValmax= 1.075/DefaultStep * 253 (Type B) ᢢCustom Step () High Drive Time Value (˫ Ừ) ᱄Default High Drive Step ( ) High Drive Time (˫Ừ) Ͱᢾō බ˫ỪͰ ϜೖCustom Step () ᡚ˫Ừنปᤩə High Drive Strength (⇖ ⇖) ⇖ ᱄High Drive () ⅐᱄ Low DriveTime ( ˫Ừ) Low Drive Time (˫Ừ) 1 ῀᱃ ˫Ừ ɤͨ☷001-69316 ** 6/ 38 PSoC® Creator™ LCD (LCD_Seg Low Drive Strength () ᱄Low Drive () ⅐᱄Low Drive Strength () High Drive Strength () ഥೖHigh Drive () Ꭻೖᢾ Display Helpers ( ) Display Helpers ( ) 1 ᅳ ᢾ • 714 16 • (5x7 5x8) • ണᅹҫ ᠌ɗ ᄋ᠌ ɗՒ ɤͨ☷001-69316 ** 7/ 38 PSoC® Creator™ LCD (LCD_Seg Helpers ( ) ᱄) / Selected Helpers (᱄ ᱄ Helpers ( ) 1 ᠌ɗ Selected Helpers (᱄) ᯢʁ ᯢ ὕSelected Helpers (᱄) ᱄ ත ܿ☷ ɗ ɗᢾᴛᡚɗɗͥ ᢾጞ ὕᡚ ɗ ɗͥ ᢾጞᦘឱ ᱄ Selected Helpers ឱᴛᡚ Selected Helper Ͱ 0 ؞ 1 ᱄ Selected Helper ὕ٦ͥ ᯢͰ؞ API ťᣱჼAPI শ • 7 Segment Helper (7 ) – Ỗ 1 ♻ 5 х16 ᰌ ɗх 0 ♻ F 16 ྡ 10 ᰌɗəɗ (uint16) ឱ Ỵɗɗ५ • 14 Segment Helper (14 ) – ỖͰ 20 ɤ ASCII ɤឱᄉྂɤឱ օ࠼ ASCII ጞɤ ( 0 ♻ 127) • 16 Segment Helper (16 ) – ỖͰ 20 ɤ ASCII ɤឱᄉྂɤឱ օ࠼ ASCII ɤឱ ( 0♻255) ឱť ɤͨ☷001-69316 ** 8/ 38 PSoC® Creator™ LCD (LCD_Seg • Bar Graph and Dial Helper ( ) – 1 ♻ 255 ឱ᱄ ᱄ • Dot Matrix Helper ( ) – 8 x5x7 x5x8 ល/ɤ Ỗɤ᠌ɗ ᢾ ᾃŊ ASCII ɤឱᄉྂɤឱ ი ល 7 8 5 ♻ 40 ᡚ օ࠼ Hitachi HD44780 ɤ ɤͨ☷001-69316 ** 9/ 38 PSoC® Creator™ LCD (LCD_Seg ɤྡ ⇖ API Ꭻᬞ ɤᰂྡ੦ឱ؞ ੈɤྡʈܱ ( [Confiture (ᢾ)] ఖ) 7 ྡ 14 ྡ 16 ྡ ྡ ྡ Ỵɗᢾ ᯢὕ ᢾល 1. Selected Helpers (᱄) ᢾ᱄ 2. ᱄ᯢ [+] ὕ [x] ᯢͰɗ ɗఖጞɗʁ ᯢ 3. ִጞͥỴɗᢾ௫ ௫᱄ଦ᱄ ឱᎫͥ PIX## ྂ1 Ỵᰂఖ 1 ᦐ ɤͨ☷001-69316 ** 10/ 38 PSoC® Creator™ LCD (LCD_Seg 7 1 1 H7SEG4_A H7 7 SEG4 4 ട 7 A 7 ௫ឱ ͥ௫ឱ ܿ Ỵɗ (؞ᤜˁ) ᅄ ͨ ỴɗỴᰂ ឱAPI Ỵɗن Helper Function Configuration (Ỵɗᢾ) ሧᡚنល ᡚLCD শ Helper Function Configuration (Ỵɗᢾ) ᱄ نሧ ͥ ʁʈܱጞ Ỵᰂ Print () ɤͨ☷001-69316 ** 11/ 38 PSoC® Creator™ LCD (LCD_Seg Custom Characters (ɤ ɤ) ɤ 5x8 ឱɤɤ XML ɤ Character List (ɤ) օ࠼ Hitachi HD44780 ɤ 255 ASCII ɤɤ Character Editor (ɤ ) ͥ Reset Char (ɤ) Όɤᢾ Reset All () Όɤօ࠼ᢾ Ꭻɤ Save List () XML ɤ Load List () XML ɤᎫɤ Use Default () օ࠼ɤ Clock Select (᱄ ᱄) ᱄ LCD_Seg 1 ᡚ LCD ᳃ሧᎫೖ ܻɗɗܻᎫೖ ᢢ ɤͨ☷001-69316 ** 12/ 38 PSoC® Creator™ LCD (LCD_Seg ᳃ሧ LCD_Seg ៥ 2 LCDDAC PSoC ִጞ UDB ᯢ ៥UDB Ꭻೖ UCB ᳃ሧ ܿ: 1 1 ᠌ɗ ᳃ሧ លPSoC Creator Design Wide Resources ͥ ឱ LCD ᢾ ᢾ؞ Ύ☷⇖⚪⚶ Ύ API API Ỵɗ API Ỵɗቋ + 7 ⚪⚶ API Ύ 7 ☷ API Ỵɗቋ + 14 ⚪⚶ API Ύ 14 ☷ Ύ16 ☷ API Ỵɗቋ + 16 ⚪⚶ API Ύ Ύ ☷ API Ỵɗቋ + ⚪⚶⇖ API Ύ ☷ API Ỵɗቋ + ⚪⚶⇖ API API ☥ ☦ ( ) PLD LCD Ύ 1 2 1 1 0 1 4625 409 3♻62 Ύ 7 1 2 1 1 0 1 5182 419 3♻62 Ύ 14 1 2 1 1 0 1 5728 419 3♻62 ɤͨ☷001-69316 ** Control/ Count7 Ά ᮷ Flash RAM 13/ 38 PSoC® Creator™ LCD (LCD_Seg API ☥ ☦ ( ) PLD LCD Ύ 16 1 2 1 1 0 1 5860 419 3♻62 Ύ 1 2 1 1 0 1 6924 420 3♻62 Ύ 1 2 1 1 0 1 6772 419 3♻62 Control/ Count7 Ά ᮷ Flash RAM (API) ᢾ؞ឱỴɗᤜˁ ؞Ỵɗᣱᤜˁ PSoC Creator LCD_Seg_1ੈᢾᢢͰ PSoC Creator ᦐՒɤͥ Ỵɗɗɗ؞ឱ LCD_Seg Ỵɗ ᤜˁ LCD_Seg_Start initVar ɗᢾInit ỴɗEnable Ỵɗ LCD_Seg_Stop LCD Ỵᰂ᮷DMA LCD_Seg_EnableInt LCD ᮷ͶLCD_Seg_Start ᡚ LCD_Seg_DisableInt LCD ᮷LCD_Seg_Stop ᡚ LCD_Seg_SetBias LCD 128 ᢾ LCD_Seg_WriteInvertState ឱᬾ LCD_Seg_ReadInvertState օ࠼ᬾឱᬾ੦ଦᯈ ɤͨ☷001-69316 ** 14/ 38 PSoC® Creator™ Ỵɗ LCD (LCD_Seg ᤜˁ LCD_Seg_ClearDisplay ឱỴᰂ RAM LCD_Seg_WritePixel PixelState ᢾ LCD_Seg_ReadPixel ੦ᤝ LCD_Seg_Sleep LCD مᢾ LCD_Seg_Wakeup ᢾLCDͶ LCD_Seg_SaveConfig LCD ᢾ LCD_Seg_RestoreConfig LCD ᢾ LCD_Seg_Init Configure (ᢾ) ᢾ LCD Ά LCD_Seg_Enable LCD Ͷ ɗ ɗ LCD_Seg_initVar ᤜˁ LCD_Seg Άɗ 0 ΆLCD_Seg_Start() Ͱ 1 ᢾLCD_Seg_Start() Ͱ Άលᩲ ΆᡚLCD_Seg_Start() LCD_Seg_Enable() Ỵɗ LCD_Seg_Init() Ỵɗ uint8 LCD_Seg_Start (void) ᤜˁ☷ LCD ᩲᡚ᮷DMA Ͷ RAM ☷ ☷ (uint8) cystatus: օ࠼ API ☷ API Timewheel Configuration Register 2 1 pulse-per-second Ͷ Low Power 32KHz External Xtal Ͷ ɤͨ☷001-69316 ** 15/ 38 PSoC® Creator™ LCD (LCD_Seg void LCD_Seg_Stop(void) ᤜˁ☷ LCD Ỵᰂ᮷DMA Ꭻೖ ឱDC ƅ᱉ ☷ ☷ ☷ API LCD_Seg_Init() API Ͷ Timewheel Configuration Register 2 1 pulse-per-second Low Power 32KHz External Xtal Ͷ void LCD_Seg_EnableInt(void) ᤜˁ☷ LCD ᮷ͶLCD_Seg_Start() ᡚ LCD ͥʁ (TD ) ᮷್ ☷ ☷ ☷ void LCD_Seg_DisableInt(void) ᤜˁ☷ LCD ᮷LCD_Seg_Stop() ᡚ ☷ ☷ ☷ void LCD_Seg_SetBias(uint8 biasLevel) ᤜˁ☷ ỴɗLCD 128 ᢾ ɗᄤ῀ Vdda ῀ Vdda ᩷ ͥ LCD ☷ (uint8) biasLevel: ឱ ☷ ☷ ɤͨ☷001-69316 ** 16/ 38 PSoC® Creator™ LCD (LCD_Seg uint8 LCD_Seg_WriteInvertState(uint8 invertState) ᤜˁ☷ Ỵɗឱᬾᬾល RAM ͥᡚ ☷ (uint8) invertState: ឱᬾ੦ᢾ ☷ (uint8) cystatus: օ࠼ API ☷ uint8 LCD_Seg_ReadInvertState(void) ᤜˁ☷ Ỵɗօ࠼ᬾឱᬾ੦ଦᯈ ☷ ☷ (uint8) invertState: ឱᬾ੦ ☷ void LCD_Seg_ClearDisplay(void) ᤜˁ☷ ỴɗឱỴᰂ RAM ☷ ☷ ☷ ɤͨ☷001-69316 ** 17/ 38 PSoC® Creator™ LCD (LCD_Seg uint8 LCD_Seg_WritePixel(uint16 pixelNumber, uint8 pixelState) ᤜˁ☷ PixelState ᢾ ᢾ ☷ (uint16) pixelNumber: ሧLSB Ͱ 3 ሧLSB (4 ) លMSB (4 ) ល component .h #defines рრ (uint8) pixelState: pixelNumber ੦ᢾ ☷ (uint8) status: លဉ੦ ሧល ☷ uint8 LCD_Seg_ReadPixel(uint16 pixelNumber) ᤜˁ☷ ִጞ ੦ᤝ ᢾ ☷ uint16: pixelNumber: ሧLSB Ͱ 3 ሧLSB (4 ) លMSB (4 ) ល component .h #defines рრ ☷ (uint8) pixelState: PixelNumber ଦ੦ᯈ ☷ void LCD_Seg_Sleep(void) ᤜˁ☷ LCD_Seg_Sleep() ỴɗͶ੦ LCD_Seg_Stop() Ỵɗ LCD_Seg_SaveConfig() Ỵɗ ᢾ CyPmSleep() CyPmHibernate() Ỵɗ LCD_Seg_Sleep() Ỵɗ ῀࠺ଭỴɗPSoC Creator শ ☷ ☷ ☷ ͥ ɤͨ☷001-69316 ** 18/ 38 PSoC® Creator™ LCD (LCD_Seg void LCD_Seg_Wakeup(void) ᤜˁ☷ LCD_Seg _Wakeup() Ỵɗ LCD_Seg _RestoreConfig() Ỵɗᢾ LCD_Seg _Sleep() ỴɗͶ LCD_Seg_Wakeup() ỴɗͶ ☷ ☷ ☷ Ͱ LCD_Seg_Sleep() LCD_Seg_SaveConfig() Ỵɗ LCD_Seg _Wakeup() ỴɗΆᏘጞ void LCD_Seg_SaveConfig(void) ᤜˁ☷ Ỵɗᢾ Ỵɗ[Configure] (ᢾ) ᣰ API ͥ ଦ Ỵɗ LCD_Seg_Sleep() Ỵɗ ☷ ☷ ☷ void LCD_Seg_RestoreConfig(void) ᤜˁ☷ Ỵɗᢾᅓ Ỵɗ LCD_Seg _Sleep() Ỵɗ ੦ ☷ ☷ ☷ Ͱ LCD_Seg_Sleep() LCD_Seg_SaveConfig() ỴɗỴ ɗΆᏘጞ ɤͨ☷001-69316 ** 19/ 38 PSoC® Creator™ LCD (LCD_Seg void LCD_Seg_Init(void) ᤜˁ☷ Configure (ᢾ) ᢾΆ ᡚ ᢾͶ ☷ ☷ ☷ Configure (ᢾ) ᢾᢾ API Timewheel Configuration Register 2 1 pulse-per-second Ͷ Low Power 32KHz External Xtal Ͷ void LCD_Seg_Enable(void) ᤜˁ☷ LCD ͶUDB Ͷ ☷ ☷ ☷ API API Configure (ᢾ) ᱄ឱ Ỵɗ ᤜˁ LCD_Seg_Write7SegDigit_n 7 16 ᰌхឱ LCD_Seg_Write7SegNumber_n 7 1♻5 хəɗឱ LCD_Seg_WriteBargraph_n əɗሧឱ LCD_Seg_PutChar14Seg_n 14 ᑤɗ ɤឱ LCD_Seg_WriteString14Seg_n 14 ᑤɗ ᄉྂɤ ឱ LCD_Seg_PutChar16Seg_n 16 ᑤɗ ɤឱ LCD_Seg_WriteString16Seg_n 16 ᑤɗ ᄉྂɤ ឱ ɤͨ☷001-69316 ** 20/ 38 PSoC® Creator™ Ỵɗ LCD (LCD_Seg ᤜˁ LCD_Seg_PutCharDotMatrix_n ᑤɗ ɤឱ LCD_Seg_WriteStringDotMatrix_n ᑤɗ ᄉྂɤ ឱ ܿ nỴɗ ᠌ɗ Ỵɗn API Ỵɗ void LCD_Seg_Write7SegDigit_n(uint8 digit, uint8 position) ᤜˁ☷ Ỵɗ7 16 ᰌхឱ х0♻9 A♻F ဉ 16 ᰌ7 Ỵ ᰂቋ ִጞ ᡚ ᠌ɗ 7 Ỵɗ (n) ᢾỴɗ 7 ☷ (uint8) digit: 16 ᰌхឱ 0 ♻ 15 ྡəɗ (uint8) position: ྂх 0 ɗхሧሧឱ⁾ ឱ ☷ ☷ ɤͨ☷001-69316 ** 21/ 38 PSoC® Creator™ LCD (LCD_Seg void LCD_Seg Write7SegNumber_n(uint16 value, uint8 position, uint8 mode) ᤜˁ☷ Ỵɗ7 1♻5 х 16 əɗ ឱ7 Ỵᰂቋ ִጞᡚ᠌ɗ 7 Ỵɗ ᢾྡŭྡឱɗ५ ִጞ ᡚỴ ɗ 7 ☷ (uint16) value: ឱྡəɗ (uint8) position: ྂх 0 ɗͰхሧឱ⁾ хɗ Value ᡚхɗͰххឱ (uint8) mode: ᢾ0 1 ☷ ☷ ɤͨ☷001-69316 ** 22/ 38 PSoC® Creator™ LCD (LCD_Seg void LCD_Seg_WriteBargraph_n(uint8 location, uint8 mode) ᤜˁ☷ Ỵɗ1 ♻ 255 ☥☦ 8 əɗሧឱ 1 ♻255 ဉ ᬾሧឱ Ỵᰂቋ ִጞᡚ ᠌ɗ Ỵɗ (n) ᢾ Ỵɗ ☷ (uint8) location: ឱྡəɗሧͶ ɗ ɗ᩷ (uint8) mode: ᢾ ᤜˁ 0 ሧ 1 ሧ –1 ሧ 2♻10 ሧ 2♻10 ឱ ឱ ☷ ☷ ɤͨ☷001-69316 ** 23/ 38 PSoC® Creator™ LCD (LCD_Seg void LCD_Seg_PutChar14Seg_n(uint8 character, uint8 position) ᤜˁ☷ Ỵɗ14 ᑤɗ 8 ɤ ឱ14 Ỵᰂቋ ִጞᡚ᠌ɗ 14 Ỵɗ (n) ᢾỴɗ 14 ☷ (uint8) character: ឱɤ ASCII (ASCII 0 ♻ 127 ጞɤ) (uint8) position: ɤሧྂ 0 ɗሧ ឱ⁾ឱ ☷ ☷ void LCD_Seg_WriteString14Seg_n(*uint8 character, uint8 position) ᤜˁ☷ Ỵɗ14 ᑤɗ ᄉྂɤ ឱ14 Ỵᰂቋ ִጞᡚ ᠌ɗ 14 ᑤɗ Ỵɗ (n) ᢾỴɗ 14 ☷ (*uint8) character: ᄉྂɤ (uint8) position: Ͱɤሧྂ 0 ɗɤỖ ឱ⁾᩷ឱ⁾ɤឱ ☷ ☷ ɤͨ☷001-69316 ** 24/ 38 PSoC® Creator™ LCD (LCD_Seg void LCD_Seg_PutChar16Seg_n(uint8 character, uint8 position) ᤜˁ☷ Ỵɗ16 ᑤɗ 8 ɤ ឱ16 Ỵᰂቋ ִጞᡚ᠌ɗ 16 Ỵɗ (n) ᢾỴɗ 16 ☷ (uint8) character: ឱɤ ASCII ( 0 ♻ 255 ጞ ASCII ឱ ɤ) (uint8) position: ɤሧྂ 0 ɗሧ ឱ⁾ឱ ☷ ☷ (void) LCD_Seg_WriteString16Seg_n(*uint8 character, uint8 position) ᤜˁ☷ Ỵɗ16 ᑤɗ ᄉྂɤ ឱ16 Ỵᰂቋ ִጞᡚ᠌ɗ 16 Ỵɗ (n) ᢾỴɗ 16 ☷ (*uint8) character: ᄉྂɤ (uint8) position: Ͱɤሧྂ 0 ɗɤỖ ឱ⁾᩷ឱ⁾ɤឱ ☷ ☷ ɤͨ☷001-69316 ** 25/ 38 PSoC® Creator™ LCD (LCD_Seg void LCD_Seg_PutCharDotMatrix_n(uint8 character, uint8 position) ᤜˁ☷ Ỵɗᑤɗ 8 ɤ ឱ Ỵᰂ ቋ ִጞᡚ᠌ɗ Ỵɗ (n) ᢾỴɗ ☷ (uint8) character: ឱɤ ASCII (uint8) position: ɤሧྂ 0 ɗሧ ឱ⁾ឱ ☷ ☷ void LCD_Seg_WriteStringDotMatrix_n(*uint8 character, uint8 position) ᤜˁ☷ Ỵɗᑤɗ ᄉྂɤ ឱ Ỵᰂ ቋ ִጞᡚ᠌ɗ Ỵɗ (n) ᢾỴɗ ☷ (*uint8) character: ᄉྂɤ (uint8) position: Ͱɤሧྂ 0 ɗɤỖ ឱ⁾᩷ឱ⁾ɤឱ ☷ ☷ API API Ỵɗ LCD ͥ Ỵɗ LCD_Seg_ComPort_SetDriveMode ɤͨ☷001-69316 ** ᤜˁ LCD ᢾ 26/ 38 PSoC® Creator™ LCD_Seg_SegPort_SetDriveMode LCD (LCD_Seg LCD ᢾ void LCD_Seg_ComPort_SetDriveMode (uint8 mode) ᤜˁ☷ LCD ᢾ ☷ (uint8) mode: ᣱჼ শ ☷ ☷ LCD_Seg_SegPort_SetDriveMode(uint8 mode) ᤜˁ☷ LCD ᢾ ☷ (uint8) mode: ᣱჼ শ ☷ ☷ • LCD_Seg_COMM_NUM – ଦᢾឱ ɗ • LCD_Seg_SEG_NUM – ଦᢾឱ ɗ • LCD_Seg_BIAS_TYPE – ଦᢾឱ • LCD_Seg_BIAS_VOLTAGE – ឱ ῀ Ά LCDDAC ᢾ • LCD_Seg_FRAME_RATE – ଦᢾឱ • LCD_Seg_EXTRACT_ROW – លᢢ • LCD_Seg_EXTRACT_PORT – ᢢ ɤͨ☷001-69316 ** 27/ 38 PSoC® Creator™ LCD (LCD_Seg • LCD_Seg_EXTRACT_PIN – ሧᢢ • LCD_Seg_WRITE_PIXEL – WritePixel Ỵɗ • LCD_Seg_READ_PIXEL – ReadPixel Ỵɗ • LCD_Seg_FIND_PIXEL – ሧᢢ LCD ਿଭ ִՒ๎ ᢢሧ API PSoC Creator [Find Example Project (ӧჳ)] ɗ ť Ͷᡡ[Component Catalog ( )] ሧ ợᏠ[Start Page ( )] [File ( )] ợᡚ [Filter Options ( )] ᱄ ᄟ᮷ ᣱPSoC Creator Find Example Project (ӧჳ)শ ִጞᤜˁ LCD ఖ LCD ⅐Ёᬽ ִՒťConfiguration (ᢾ) ִጞ օ࠼ API ቋ ɗ ᯢ API ᢾ LCD_Seg ᢾۖ LCD ť LCD_Seg ᢾ☷ • 4 • 8 • 1/3 Bias Type (1/3 ) ɤͨ☷001-69316 ** 28/ 38 PSoC® Creator™ LCD (LCD_Seg • 60 Hz • No Sleep power mode ( ) • 3 V ῀ • – 10 sq cm • 968.99 us ˫Ừ • seg - 1x com - 2x • 7.57 us ˫Ừ • seg – 0.06xcom 0.12x • API Ỵɗ ᢾ LCD ੈỖఖɤ LCD Ёᬽ ɤͨ☷001-69316 ** 29/ 38 PSoC® Creator™ LCD (LCD_Seg LCD No Sleep () Low Power () 2 No Sleep () No Sleep ( ) LCD ۳ LCD ⅐No Sleep () LCD_Seg UDB () ܻ 1. LCD (No Sleep ( ) ) LCD ῀᱃˫⅐LCD ῀᱃؞῀᱃Ừ LCD LCD ௫ ͥʁබ˫Ừ ᩲ ؞ Frame Rate () LCD [1 KHz (ILO) 8 KHz (32 K XTAL)]ɗܻ LCD ܻɗ ᤜˁ8 ILO A ܻᢾͰ ᢢ max FR = 1000 / (2 * Num Commons) = 62.5 Hz 62.5 Hz LCD ܻɗ ťͰ ɤͨ☷001-69316 ** 30/ 38 PSoC® Creator™ LCD (LCD_Seg LCD ᢾ 1 ΆỪ 1 ΆỪᡚͰ 2 31.25 Hz əɗͰ 31 Hz B ܻ 1/2 ᡚ B ܻ A ܻ 2 LCD_Seg UDB () ܻ 2. LCD ( ) ɤͨ☷001-69316 ** 31/ 38 PSoC® Creator™ LCD (LCD_Seg ᢾ LCD Ύ LCD LCD (LCD) DMA 3 LCD 1 1 ISR 1 Ւ 3. LCD • Ύ LCD LCD DMA ن ល • DMA ⁾ᄑ LCD ᬾᯥ • LCD ᡚ DSI ᡚ cyfitter.h ť • LCD (GCom Com Seg) ଭਿଭ LCD 2 1 1 LCD 16 LCD 48 ᯢ GCom Ganging (ᰂᄕ) Ͷ ɤͨ☷001-69316 ** 32/ 38 PSoC® Creator™ LCD (LCD_Seg 4. LCD LCD_Seg_CONTROL_REG 7 6 5 ი߬ 4 3 2 1 0 ᄉ 2 1 Ͷ • Ͷ☷ᤜˁ Ͷ • mode 1 [2:0] • mode 2 [2:0] • ᄉ☷DMA Ά • ☷LCD ɤͨ☷001-69316 ** 33/ 38 PSoC® Creator™ LCD (LCD_Seg LCD_Seg_CONTRAST_CONTROL_REG ن῀ LCD DAC ῀ ῀ͥ API ť 7 6 ი߬ ი߬ • 5 4 3 2 1 0 1 0 ☷῀ LCD_Seg_LCDDAC_CONTROL_REG 7 lp 6 5 4 ი߬ 3 2 ᰂᅅ ი߬ ᱄ • ᱄☷᱄ • ᰂᅅ☷੦ LCDDAC ੦ᅓ • lp ☷UDB LCD Low Power Ack LCD_Seg_TIMER_CONTROL_REG 7 6 5 4 3 2 1 0 clk select enable timer ( ( ᱄) ) ΆỪ • enable timer () LCD Ͷ • clk select (᱄)☷LCD ᱄ • ΆỪ☷LCD ΆỪ LCD_Seg_DRIVER_CONTROL_REG • 7 6 ი߬ 5 4 3 2 1 0 pts ᬾ 0 ☷ 1ᢾ LCD ᢾ Hi-Z ᢾ ɤͨ☷001-69316 ** 34/ 38 PSoC® Creator™ LCD (LCD_Seg • mode 0: [2:0] • ᬾ☷ᢾ ᬾ • pts: "0" - օ࠼VOUT = VIO-0.5V "1" - VOUT = VIO • ☷ "1" - LCD ᱄῀ണŊŊᅅ"0" - օ࠼῀ ᰢ LCD_Seg_LCDDAC_SWITCH_REG[0..4] 7 6 • 5 4 3 2 1 ი߬ 0 [0..4] [0..4] ቋ LCD ῀࠺᱄ ᣰ DC ῀ڻೖੈ AC ῀ڻೖੈ LCD ണŊ⅐ DC ՜ ᤜˁ α Min Typ Max 38 – µA – 260 – µA VDDA ³ 3 V VDDA ³ V 2 – 5 V LCD VDDA ³ 3 V VDDA ³ V – 9.1 × VDDA – ICC LCD῀ݵ 400 Hz – LCD = 3 MHzVddio = Vdda = 3 V 4 16 1/4 50 Hz Ŋᅅ ICC_SEG ῀ݵ V LCD ဉ☥VBIAS LCD DAC῀ ☥V0☦☦ ɤͨ☷001-69316 ** mV 35/ 38 PSoC® Creator™ IOUT LCD (LCD_Seg / ᰂᄕጞ LCDΏ῀ᴝ – 500 5000 pF Ỗ˫Ừ – – 20 mV 355 – 710 µA ⅐῀ݵ Vddio = 5.5V LCD AC ՜ fLCD ᤜˁ α LCD Min 10 Typ 50 Max 150 Hz ͥ ͥ 2.10 ͥᤜˁ ͥଭ / LCD_Seg_Start() ៥ ᮷ Driver Power Settings ( ᢾ) ͥ2 ʁ Custom Step ( ) Default Step ( ) ᯢ High Drive Time ( ˫Ừ) ʁ ጞଦ੦᱄ Ⴌ ᱄ ܻɗ LCD SegLCD ợ˫ ੦ن signal lp_ack ن ᄉ˫ᡚ "seg=2x com=2x" "seg=1x com=4x" ᢾ LCD ௫ᬾ ن LCD نͨ᮷ᩲ AND ࢆ ن ن ن LCD_Seg_WriteBargraph() API fix. 10 ᢾ LCD ن ɤͨ☷001-69316 ** 36/ 38 PSoC® Creator™ ͥᤜˁ LCD (LCD_Seg ͥଭ / ˍ LCD_Seg_WriteBargraph() API ن "Position + 10 > Bar Graph pixels" (ሧ + 10 > ɗ) α࠵್ Ͱᢾ ᢾᡚ ੈᯢ ŭධ ᯢ ŭ ឱ ឱ᧞ ᆄᾞͥʁ 2.0.a LCD_Seg_Init() LCD_Seg_Start() LCD_Set_Stop() API ܿᯢ ŭධ ᯢ 2.0 ŭ ឱ ឱ᧞ Sleep/Wakeup (/) Init/Enable (Ά/Ͷ) API ᯢ ΆͶ ᾲť API ᢜʁ API - SegLCD_PM.c ᯢ ɤͨ☷001-69316 ** ʁ ᡚ 37/ 38 PSoC® Creator™ LCD (LCD_Seg ͥᤜˁ ͥଭ / PSoC 3 ES3 ὅ [Configure] (ᢾ) ͥʁ • Enable Debug Mode (Ͷ) Low Drive Mode ( ) ὕ • ʁ Glass Size () High Drive Strength ()Low Drive Strength () ᯢ • Always Active (Ͷ) Low Power () ʁ No Sleep ( )Low Power ILO ( ILO)Low Power 32XTAL ( 32XTAL ) ͥ ᱄ͥ • Custom Characters (ɤ) ᯢ ɤ • ᆄᾞጞ ῀᱄ͥ PSoC 3 ES3 LCD HW ʁᡚ࠵ ʁ 2.0 1.xx PSoC 3 ES2 PSoC 5 ES1 Added `=ReentrantKeil(LCD_Seg_ . "_...")` Ỵ ɗᯢ LCD_Seg_Stop() LCD_Seg_EnableInt() LCD_Seg_DisableInt() LCD_Seg_SetBias() LCD_Seg_WriteInvertState() LCD_Seg_ReadInvertState() LCD_Seg_RedPixel() LCD_Seg_SaveConfig() LCD_Seg_RestoreConfig() ᡚ API ጞ © Cypress Semiconductor Corporation, 2011. Ύɤͨ᭔ͥCypress Semiconductor Corporation ( ) ᠆ᄋ᮷ᨏᨆੈᣀ֑ᦠߺ̮ ᠆ͨ ᅓɅᴛᡚଭᣈ ᤖȽኄᴛଭೖᅓᴛᡚ ᠆ᣀᅓ ᠆᠆᯿ኄᨆ ᄕϜᨏὕ PSoC® ḒօPSoC Creator™ System-on-Chip™ օΎͨᢜ օḒօͶਿ ( / ) ( ) Ͷ௹ੈᣀ֑ᦣ (ၾ)ၾᔬ ֑ܱαᦣΎͨ ೖઁೖᦠߺጞ იᾞ༙᠆ / ടೖ ݳᔬਿͥ ݳᔬਿ ὕͨ ˁೖᣀΎ ᠌᠆ͥ ŭឱຖم ᨏα: ˁೖ⏱ೖΎᨧɰỴ₭ᣈលੈടೖ⏱ೖᣈ Ύɤͨ᭔ᨧɰ֑ͥంΎɤͨ᭔᠆ ᨏᨆᤖȽኄᴛଭೖᅓᴛᡚ ᠆ᣀᅓ᠆᠆᯿ኄᨆ ᄕϜᨏὕ იი ɤͨ☷001-69316 ** 38/ 38