Component - Segment LCD (SegLCD) V2.10 Datasheet (Japanese).pdf

PSoC® Creator™ 
 LCD (LCD_Seg)
2.10
ੈỖ
•
2 ♻ 768 
•
1/31/41/5 
•
10 ♻ 150 Hz 
•
ೖ௜Ͱ 128   2.0 V ♻
5.2 V ᄪ௔
•
 A (օ࠼)  B () ܻ
•
ឱ๦੦௫௜ᬾ
•
256 ឱ๦ ( )
•
቎ 714 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 ᅳ௜ ᢾ

•
714 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.06xcom 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
MHzVddio = 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 
Similar pages