Component - Static Segment LCD (LCD_SegStatic) V2.0 Datasheet (Chinese).pdf

®
PSoC Creator™ ˆ‰£æçè
‡ LCD (LC
CD_SegStat)
2.0



1
61
10 Hz
150 Hz
7 ‡×14 ‡×16 ‡¾€§

ۥ
ÎØ
‚ƒ „LCD
…†
‡ LCD (LCD_SegStat) ˆ‰
‰
3.3-V ¾ 5.0-V LCD Œ•Ž´Ù
Ùˆ‰ÚÛ
Š‹Œ•Ž•• ‘’“ PSoC
C Ó‰°±ÝÞ´
”‘ LCD
/
•–—˜ ™
™š›
œ•Œ•žŸ ¡¢




´
‡ LCD ˆ‰ß••àẻ
Ü
œ’錕Žê
7 ‡£¤
14 ‡¤¥£¤
16 ‡¤¥£¤
1
255 ‘¦
ۤ
¨©
‡ LCD
ª
«¬•
Œ•Ž
‰²³´ˆ‰
-–®¯ €• ‚ƒ Œ•Ž°±„ âã½ä
3.3-V
3
5.0-V LCD
‡
LCD ˆ‰´
‡ LCD ˆ‰å½ä¿Š PSoC Ó‰
‰œ•• LCD
ë
–µ¨¯¶·¸
¸¹º»¼½• ‚ƒ¾‡‚ƒ£ ¿ŠÀÁ
Á´
ÂÃ/Â
ÂÄÅ
ÆÇ
Èɯ
Ê
ˆ‰Å
ËÌ
Ì
Cypress Semiconductor Corporation
n
Document Number: 001-79471 Rev. **
ÍÎÏв³¸¹ÑÒÓÔ”ÕÖ Å
• 198 Champion Court
• San Jose, CA 95134-17
709
¸¹´
• 408-943-2600
Revised May 21, 2012
®
‡ LCD (LCD_SegStat)
PSoC Creator™ ˆ‰£æì
¦‰í£
Ô
‘
‡ LCD ˆ‰îï
Basic Configuration
Number of segment lines
Œ•Žê
Frame rate, Hz
Ùí£þ
Page 2 of 23
ý
Œ•Ž
Û
ÍÎÈ
ðñòœ—˜ Configure
°±„-óô´
õö°±„÷øù
‡‚ƒ£„
‡‚ƒ£´úûüÚ 4´
„
(Hz)„
´
ÿüÚ 10 Hz
150 Hz´úûüÚ 30 Hz´
Document Number: 001-79471 Rev. **
®
PSoC Creator™
LCD (LCD_SegStat)
Display Helpers
€•‚ƒ


7
Š14
„…†‡ˆ
‰
‹ 16
Œ•‹Ž•••‘
’“”•–
—
“
Document Number: 001-79471 Rev. **
˜
€
•™
š›œ
”•
„…•
Page 3 of 23
®
LCD (LCD_SegStat)
PSoC Creator™
Helpers/Selected Helpers
—žŸ
‚
/
‚
Helpers
¡ ¢ £¤¥–
†‡¦§¨©ª«¬- ® Selected Helpers
¯° €‹ €
•±²³´µ¶·¸¹º»
¼½¾¯°
•¿ÀÁ
Selected Helpers
‚
¡ ¢ £Â
¦§¨Ãª«¬-•
Äʼn ƽ
Ï
ˆÐ
ÔÕÁÎÏÖ‚ƒ–
¯°Ç
Ñ ž
•
½¾—ÈÉž ŒÊ‹ ŒÊ •ËÌÍÄÅ
‚ƒÎ
ŒÊÒ ŒÊ– Ó•ÈÉž ŒÊÒ ŒÊ– ӈРÍ
‚
¡ ¢
–×ØÙÚÛ¿–•ÜÝÞßà ¯°Ç Selected Helper
‚
¡
–ႆ‡–â €
–ãäåæç 0
†‡–à €
ãäåæç 1 šè†é•±²
Öê¡ ¢ÕÁë“Selected Helper”
‚
½¾ìÛíãîà–
•¯°ë
æ ï
ãä½
ðñ–— æç•
ò€
óôë API•´õÈ
ö÷
Ëøùú
ûØüûýþ

7

14
—è
!—./ 20 €”••0ì
4•—"–* 56 ASCII —78”• 9:;<

16
—è
”•4•—"–*

••‘Ò@™
— AB
“••‘ÒC!D
‚E…‹ ‚E…ÒF‚E…ÃG‹©G–¤´E…•
—è
(uint16) *•
Page 4 of 23
!—" 1 Ç 5 # —
+ ¾¹º, -•
ÿ•
$%&'# 0 Ç F ‹$&' 16 #(•™)
§€ ASCII ”•‹š1”•23–”•
0 Ç 127 •
!—./ 20 €”••0ì
§€ ASCII ”•‹š1”•23–=)
56 ASCII ”•Ò>?:
9:;< 0 Ç 255 •¾óô>?: •
1 Ç 255
•••‘—"Ù§€
Document Number: 001-79471 Rev. **
®
PSoC Creator™
LCD (LCD_SegStat)
Helper function configuration
HIJ–èKL
+
MN®/ê
ê Selected Helpers
‚
¡
¢
¢¯°‹ÕÁ•™
£
šOíãE…•
•
§¨ [+] ‹ [x] ¬-¯°‹ÕÁ ‚
–•™•—¯°–ðP•™ QR“
–SE… •±²— ·¸ Ó¾µš¹º»•™ ¼¾¯°»•™•
†‡Ò
¹º
¿Û»ãä
+
KL–E…
Helper function configuration
+
¢–•™‘ET £E…•UÐãä½
‚E…ãä” ¢ ¦—¬¥¿&VWÉ•
Pixel Naming
E…íã
ÜÝE…ãä–XY
Ø_¡–E… •
“PIX#”
#”Ù Pixel Mapping Table
E…Z[
©T\š]^×
`
•™aõb–E…–ÜÝíãc´¾ –XY•ÜÝãäMdÐçKLŠ•™¢¤´E…
–ž KL šOe – 5f••ÜÝÐçF
†‡Ò•™gh•h± 7
¢i
•™¢–E…ÜÝãä—"Ù“H7SEG4_A” 
H7
jkE…Ù 7
SEG4
jkE…ÙlF‚
A
F
7
–
m¢ân€ 7
•™–•™–
KL
•™¢–e
H“ÜÝE…ãä o´E…ãä–e
WÉÐÒWÉæ–ãäq´r –Ðç
ÄÅ: ¤´E…ãäÍÔÙe
U½
+
èE…
»
`
KL
KL
•™‘E¢•±²WÉëE…ãä
•™‘ETs½
)€ãä•
¼p
–•
•™„…L á Pixel Mapping Table E…Z[
±à¤t ¢– €E…u
•™„…–ãä•
•™„…ãäQ9ÜÝE…ãä v¾ìwx0• —Û
+ aõb–E…–ÜÝãä•
Character Encoding
”•ü:
¤´.y
API
€• ‚ƒ„…†‡
Document Number: 001-79471 Rev. **
ˆ‰Š‹Œ•Ž••
‘’
†‡
“”•
Page 5 of 23
–
®
‹ LCD (LCD_SegStat)
7‹
PSo
oC Creator™ ÉÊ›ï
14 ‹
Š
Pixel Mapping TableŠ
—•
16 ‹
•
Pixel Mapping TableŠ
— • •×Ïâãä å‡ ©¶ API š›
›¢æçè Helper
function configurationŠ˜™š
š›œ••
é
ê뤜- Pixel Mapping TableŠ
—• •
ž•
Ÿ ¡
¡¢£¤œ¥¦ §¨ ìíî LCD †‡² ›ï
©¤œ
ª Helper function configurationŠ˜™š›œ••ðñòÇÈ
È¥¦
«¬- Pixel Mapping TableŠ
—• • ¢£ ž•
Ž®¯°± †‡²
³´
´µ¥¦Œ• ‚ª Pixel Mapping TableŠ
Š
Œ
Ž¶·¸ˆ¹º•»Ž·
·˜™¼½“Ÿ¾
¡¿Œ
PrintŠÀÁ•Â÷ÄÀÁ
³%
—•
• &¿
—
—•
ÅÆÇÈ
– ‹ LCD Éʶ·ËÌÅÆ
ÅÆÍÎÏÐÑÐ
ó¦ôÌÅÆ
õö÷
ÉÊ
ÅÆ
øù·Ä
ù·Ä LCD ÉÊ
Ò•
ÓÔÕÖ¤œ×ª
« ¡ÙÚ
¯Ø
Ž¶· PSoC Creator úû„üÛÜç
çý
¡
ÕÖ
þ’º
ÛÜ
ƒ
†‡–
‹ LCD ÉÊ
¥
BasicŠÝÞ•ßàá API š›
Page 6 of 23
Ž•
ϥ
ϥΥ
ÿ
!ħ
ó"#$ᘙ API
Document Number: 001-79471 Rev. **
®
PSoC Creator™ ÉÊ›ï
–
Basic, 7-segment helperŠÝÞ
7 ‹˜™•ßàá API š›
‹ LCD (LCD_SegStat)
+ 7 ‹˜™ API
Basic, 14-segment helperŠÝÞ
14 ‹˜™•ßàá API š›
+ 14 ‹˜™ API
Basic, 16-segment helperŠÝÞ
16 ‹˜™•ßàá API š›
+ 16 ‹˜™ API
Basic, Bar Graph helperŠÝÞ
'()˜™•ßàá API š›
+ '()˜™$á API
API Memory
ŠAPI *+’•
Š ,•
ÛÜ ¼½
0
3
RAM
ŠÕ Ö•
PinsŠ
Š- ôÌ
•
I/O•
ÛÜ
ݕ ./
01
PLD
1
ÝÞ
0
0
0
0
0
1
1372
40
2 - 62
ÝÞ 7
‹˜™
0
0
0
0
0
1
2373
42
2 - 62
ÝÞ 14
‹˜™
0
0
0
0
0
1
2496
42
2 - 62
ÝÞ 16
‹˜™
0
0
0
0
0
1
2480
42
2 - 62
ÝÞ '(
)˜™
0
0
0
0
0
1
3268
42
2 - 62
Document Number: 001-79471 Rev. **
Control/Coun ”20
1
t7 01
Flash
Š4
*•
Page 7 of 23
®
LCD (LCD_SegStat)
…†
‡
PSoC Creator™
(API)
ˆ‰Š‹Œ•Ž••
€
•‚ƒ„
‘’“” •PSoC Creator Š•–—˜“LCD_SegStat_1”™ š›œ•žŸ
€ ¡ •–
¢‡Š£•–¤¥—¦§¨©ª§«¬-®€¯°±¡² •–—˜³´¦
µ¶
—˜·
¸¹º»¹§¼€½¾
¿¢ÀÁÂÕ
Ÿ
€•–—˜¦“LCD_SegStat”
…†
LCD_SegStat_Start()
ÄÅ LCD
º DMA ÆÇ
RAM•ÔÕÖ×Ø
LCD_SegStat_Stop()
Ù
LCD
LCD_SegStat_EnableInt()
Ä
LCD ŸÝ
ÏÐÞ
LCD_SegStat_Start()•®ßàá
LCD_SegStat_DisableInt()
Ù
LCD ŸÝ
ÏÐÞ
LCD_SegStat_Stop()•®ßàá
LCD_SegStat_ClearDisplay()
Ö×ËÌÍ΀âãä RAM
LCD_SegStat_WritePixel()
å¿ PixelStateæçèé
LCD_SegStat_ReadPixel()
ÀòËÌÍΟçè€é
LCD_SegStat_Sleep()
óô LCD ‚õö
LCD_SegStat_Wakeup()
øù‚Ä
LCD_SegStat_Init()
ˆ
·ÚÛÜ€ŸÝº DMA ÆÇ
ê•
ëÖ×çè
Æìíî
ÏÐѽҜÓ
ËÌÍÎ
ÔÕÖ×ËÌÍÎ
Æìíî
ïáç胄ðñ
ïáç胄ðñ
÷
÷
ËŸÝ•‚ÈÉÊËÌÍÎ
LCD_SegStat_Enable()
Ä
LCD_SegStat_SaveConfig()
õö LCD
LCD_SegStat_RestoreConfig()
øù LCD
ý°þÿ !¾“n”€
—˜
ã+,.è/ API
0#•
ÈÉÊËÌÍÎ
€úûü´
ã"
œ#$Ÿ%& '
—˜ˆ123“n”45²
Ú(§¼)*€âã+,
-ω
µ¶¸¹
¸¹
LCD_SegStat_initVar
…†
›ã678ÈÉÊ LCD_SegStat ¸¹ŠÈÉʦ 0•‚" ¡9Þ
LCD_SegStat_Start() ú• ¦ 1 :;• ¡9Þ LCD_SegStat_Start()
< ¤=ÈÉÊ>¢¤Ä
!•
ÏÐà?¤=ï
ƒ„ÈÉÊ•¢"Þ LCD_SegStat_Start() ë
LCD_SegStat_Enable()
ѽ@Þ LCD_SegStat_Init()
Page 8 of 23
Document Number: 001-79471 Rev. **
®
PSoC Creator™
LCD (LCD_SegStat)
uint8 LCD_SegStat_Start(void)
…† þ
ÄÅ LCD
B
Noneæßê
þ
Return Value
æCD²êþ
ÔÕÖ×ËÌÍÎ RAM
·DMA ÆÇ·ËÌÍκA
uint8 cystatusþ©E API CD²
CD ²
CYRET_BAD_PARAM
…†
¡
CYRET_SUCCESS
ë'
B ßF
´GH´
Side Effects
æI J
êþ
Noneæßê
void LCD_SegStat_Stop(void)
…† þ
Ù LCD
·ÚÛÜ€ŸÝº DMA ÆÇ
UV ÔÕÖ×ËÌÍÎ
B
Noneæßê
þ
Return Value
æCD²êþ
1ÅÖKâã䕇LMNOPQRSTü
Noneæßê
Side Effects
æI J
êþ
void LCD_SegStat_EnableInt(void)
LCD ŸÝ ÏÐÞ
XŸÝæTD H´ê
…† þ
Ä
³
B
Noneæßê
þ
Return Value
æCD²êþ
Noneæßê
Side Effects
Noneæßê
æI J
LCD_SegStat_Start()•®ßàá
9 LCD ‹=!W
êþ
Document Number: 001-79471 Rev. **
Page 9 of 23
®
LCD (LCD_SegStat)
PSoC Creator™
void LCD_SegStat_DisableInt(void)
LCD ŸÝ
…† þ
Ù
B
Noneæßê
þ
Return Value
æCD²êþ
Noneæßê
Side Effects
Noneæßê
æI J
ÏÐÞ
LCD_SegStat_Stop()•®ßàá
êþ
void LCD_SegStat_ClearDisplay(void)
Ö×YZÌÍ΀âãä RAM
…† þ
á
B
Noneæßê
þ
Return Value
æCD²êþ
Noneæßê
Side Effects
Noneæßê
æI J
êþ
uint8 LCD_SegStat_WritePixel(uint16 PixelNumber, uint8 PixelState)
…† þ
á
ñ
B
uint16 PixelNumberþ›[ËÌÍΟçè\ €íî
LSB ]\^_‰€`]a\6
_‰Ÿ€b-\ •LSB c\^_‰æd\ê6ù $„Ÿ€_‰Žñ•MSB ]\^_‰
æd\ê6ù $„
þ
å¿“PixelState”B
•
ëÖ×ËÌÍΟ€çè
uint8 PixelStateþ›œ€ pixelNumber •¦áçèé
ÚÛ²Ï hãþ
Æìíî
ef
²
Return Value
æCD²êþ
Šç蕦Ûi
LCD_SegStat_PIXEL_STATE_ON
Šç蕦jÄ
LCD_SegStat_PIXEL_STATE_INVERT
klçè€m½é
uint8 Statusþå¿_‰Žñºù
pq
$„
€nopq•¦Æìërs
Side Effects
æI J
Page 10 of 23
<ïb-\
ƒ„
…†
CD ²
CYRET_SUCCESS
€§¼—˜•g
…†
LCD_SegStat_PIXEL_STATE_OFF
CYRET_BAD_PARAM
çèé
ïáç胄ð
íî_‰Žñ넲ßF
´GH´
Noneæßê
êþ
Document Number: 001-79471 Rev. **
®
PSoC Creator™
LCD (LCD_SegStat)
uint8 LCD_SegStat_ReadPixel(uint16 PixelNumber)
…† þ
á
B
uint16þPixelNumberþ›[ËÌÍΟçè\ €íî
LSB ]\^_‰€`]a\6
_‰Ÿ€b-\ •LSB c\^_‰æd\ê6ù $„Ÿ€_‰Žñ•MSB ]\^_‰
æd\ê6ù $„
þ
Return Value
æCD²êþ
Side Effects
æI J
"ËÌÍΟÀòçèé
Æìíî
ïáç胄ðñ
uint8 PixelStateþCD›œ PixelNumber €m½é
²
…†
0
çè¦Ûié
1
çè¦tjé
Noneæßê
êþ
void LCD_SegStat_Init(void)
…† þ
u 1œÓ
“
”ïvw• xÈÉÊëøù
ßàÞ LCD_SegStat_Init()•N
¦ LCD_SegStat_Start()
³Þ £
‚6jÉ
yJ€z{|¬
ˆ Ë
ŸÝ•‚ÈÉÊËÌÍÎ
B
Noneæßê
þ
Return Value
æCD²êþ
Noneæßê
Side Effects
Noneæßê
æI J
êþ
void LCD_SegStat_Enable(void)
…† þ
Ä
B
Noneæßê
þ
€úûü´
Return Value
æCD²êþ
Noneæßê
Side Effects
Noneæßê
æI J
êþ
Document Number: 001-79471 Rev. **
Page 11 of 23
®
LCD (LCD_SegStat)
ý° PSoC 5 <}~‡ d
PSoC Creator™
API
void LCD_SegStat_Sleep(void)
…† þ
LCD_SegStat_Stop()
LCD_SegStat_Sleep()
LCD_SegStat_SaveConfig()
€
•‚
ƒ
CyPmSleep() „ CyPmHibernate()
…
LCD_SegStat_Sleep()
†
‡ˆ‰Š‹
Œ•Ž• •‘’ PSoC Creator System Reference Guide“”•–‘
’—˜™š
‘
None“œš
›
Return Value
“•žŸš›
None“œš
Side Effects
¢Œ£
“
¡
¤¥
¦§¨©
š›
void LCD_SegStat_Wakeup(void)
ª« ›
¬
®¯°
LCD_SegStat_Sleep() ±
LCD_SegStat_Wakeup()
LCD_SegStat_RestoreConfig()
®¯•‚ ²
³
ƒ
LCD_SegStat_Sleep()
´µ
¶ LCD_SegStat_Wakeup()
·
-¸¹µ
‘
None“œš
›
Return Value
“•žŸš›
None“œš
Side Effects
LCD_SegStat_Wakeup()
LCD_SegStat_SaveConfig()
“
¡
š›
º
LCD_SegStat_Sleep() „
»¼½¾¿ÀÁÂÃ
void LCD_SegStat_SaveConfig(void)
ª« ›
Ä
½
•‚ÅÆ ÇÈ É
ÒÓÔ API Õ£
‘ Ÿ ¬
‘
None“œš
›
Return Value
“•žŸš›
None“œš
Side Effects
None“œš
“
¡
Page 12 of 23
Ê
Configure“•‚šËÌÍÎÏÐ
Ö LCD_SegStat_Sleep()
„Ñ
š›
Document Number: 001-79471 Rev. **
®
PSoC Creator™
LCD (LCD_SegStat)
void LCD_SegStat_RestoreConfig(void)
€•‚ƒ
LCD_SegStat_Sleep()
„…†
None‡ˆ‰
Return Value
‡Š ‹ ‰
None‡ˆ‰
Side Effects
‡Œ•ƒ‰
‚ƒ LCD_SegStat_RestoreConfig()
LCD_SegStat_SaveConfig()
•‘
…Ž‚ƒ LCD_SegStat_Sleep() •
’“”•–€
•—˜™ APIs
š›•“Configure”‡
‰œ•žŸ—
§¨©ª API
¡¢£˜™¤¥¦
LCD_SegStat_Write7SegDigit_n
§¨• 7
LCD_SegStat_Write7SegNumber_n
§¨ 7
LCD_SegStat_WriteBargraph_n
§¨¸¹•º»¼»½¯†·
LCD_SegStat_PutChar14Seg_n
§¨ 14
´¾
´´¿§¨«¬-®¯†´¿
LCD_SegStat_WriteString14Seg_n
§¨ 14
´¾
´´¿§¨«¬-®¯©À´¿•€Á†´¿Ã
LCD_SegStat_PutChar16Seg_n
§¨ 16
´¾
´´¿§¨«¬-®¯†´¿
LCD_SegStat_WriteString16Seg_n
§¨ 16
´¾
´´¿§¨«¬-®¯©À´¿•€Á†´¿Ã
§¨«¬-®¯†°±²³
´
§¨«¬† 1 µ¶ 5 µ-®¯†·
µ
void LCD_SegStat_Write7SegDigit_n(uint8 Digit, uint8 Position)
§¨• 7 §¨«¬-®¯†°±²³ ´
´•©€ 0 ¶ 9
A ¶ F ÄÅÆ
†°±²³
ÇÈɃ ³ §¨˜™ÊË ÌÍ 7 §¨«¬¢ÎÏ†Ð¬Ñ ••
ÒÓÔÕŸ ÌÖ× 7 §¨«¬¥Ø•ÙÚ
ÛÜŸ†¤Ý (n) œÞß«¬²–à
á š›•
³ Ÿ Ì¡ 7 §¨«¬â¥
¦•ƒ
uint8 Digit
㧨€°±²³ ´†Žä
·
uint8 Position åæç† 0 èéåæ¶êëì†
ðÆ¥ 裡 ´¿
Return Value
‡Š ‹ ‰
None‡ˆ‰
Side Effects
None‡ˆ‰
‡ÄÅ€ 0 ¶ 15‰
´µ
íî
µ
ï•
̆§¨Õ
‡Œ•ƒ‰
Document Number: 001-79471 Rev. **
Page 13 of 23
®
LCD (LCD_SegStat)
PSoC Creator™
void LCD_SegStat Write7SegNumber_n(uint8 Value, uint8 Position,
uint8 Mode)
§¨ 7 §¨«¬† 1 µ¶ 5 µ-®¯† 16 µ·
ÇÈɃ ³ §¨˜™Ê
Ë ÌÍ 7 §¨«¬¢ÎÏ†Ð¬Ñ ••ÒÓÔÕŸ ÌÖ× 7 §¨«¬ ¥Ø•
ÙÚ
ÛÜŸ†¤Ý (n) œÞß«¬ ²–àá ÇÈñ£ƒòóô †ƒõö÷øù
¿úûüý¿ú§¨ýþ ÿ
!" Ì#‘ š›•
³ Ÿ Ì¡ 7 §¨«
¬â¥
¦•ƒ
uint16 Value
㧨†Žä
uint8 Position
(†µ )*
uint8 Mode
.
·
åæç† 0 èéåæ¶êëì†$%›&µµ
+ㆵ ¥, 裡$-›&µ•Ö×µ
§¨/0
裡…12
1
§¨…12
None‡ˆ‰
Side Effects
None‡ˆ‰
̆§¨Õð'
•€ 0 • 1
0
Return Value
‡Š ‹ ‰
íî
‡Œ•ƒ‰
Page 14 of 23
Document Number: 001-79471 Rev. **
®
PSoC Creator™
LCD (LCD_SegStat)
void LCD_SegStat_WriteBargraph_n(uint8 Location, uint8 Mode)
§¨ 1 ¶ 255 ¼»½‡åê¶æ3ú‰¯† 8 µ· µ
¼»½•©45”ƒ
õ ̆6þ‡1 ¶ 255 ‰ 7••º8Ÿ9:¼»½¥©§¨;ûµ
ÇÈɃ
³ §¨˜™ÊË Ìͼ»½§¨«¬¢ÎÏ†Ð¬Ñ ••ÒÓÔÕŸ ÌÖ×¼»
½§¨¥Ø•ÙÚ
ÛÜŸ†¤Ý (n) œÞߧ¨²–àá š›•
³ Ÿ Ì
¡¼»½§¨«¬â¥
¦•ƒ
uint8 Location 㧨†Žä · µ
›& ÄÅ€ 0 ¶¼»½Ÿ†
¥,Î<=›¼»½«¬ íî 6*¼»½Ÿ†
¥ >è=›«¬
uint8 Mode
.
¼»½§¨/0
0
>è?
1
>èµ
@
êç†=›
–1
>èµ
@
æç†=›
2-10
§¨µ
@
æç† 2 ¶ 10 ×
Return Value
‡Š ‹ ‰
None‡ˆ‰
Side Effects
None‡ˆ‰
í4 0
µ
/0•ƒ*9:AB?¨¿
‡Œ•ƒ‰
void LCD_SegStat_PutChar14Seg_n(uint8 Character, uint8 Position)
§¨ 14 ´¾ ´´¿§¨«¬-®¯† 8 µ´¿ ÇÈɃ ³ §¨˜™Ê
Ë ÌÍ 14 §¨«¬¢ÎÏ†Ð¬Ñ ••ÒÓÔÕŸ ÌÖ× 14 ´¾ ´§¨«
¬ ¥Ø•ÙÚ
ÛÜŸ†¤Ý (n) œÞß«¬ ²–àá š›•
³ Ÿ Ì
¡ 14 «¬â¥
¦•ƒ
uint8 Character
㧨†´¿† ASCII
‡ASCII
€ 0 ¶ 127 †•>C´¿‰
uint8 Position åêç† 0 èéåê¶æë솴¿µ
ðÆ¥ 裡 ´¿
Return Value
‡Š ‹ ‰
None‡ˆ‰
Side Effects
None‡ˆ‰
íî
µ
ï•
̆§¨Õ
‡Œ•ƒ‰
Document Number: 001-79471 Rev. **
Page 15 of 23
®
LCD (LCD_SegStat)
PSoC Creator™
void LCD_SegStat_WriteString14Seg_n(*uint8 Character, uint8 Position)
§¨ 14 ´¾ ´§¨«¬-®¯©À´¿•€Á†´¿Ã ÇÈɃ ³ §
¨˜™ÊË ÌÍ 14 ´¾ ´§¨«¬¢ÎÏ†Ð¬Ñ ••ÒÓÔÕŸ ÌÖ× 14
´¾ ´§¨«¬ ¥Ø•ÙÚ
ÛÜŸ†¤Ý (n) œÞß«¬ ²–àá š›•
³ Ÿ Ì¡ 14 §¨«¬â¥
¦•ƒ
*uint8 Character
?D©À´¿•€Á†´¿Ã
uint8 Position åêç† 0 èéåê¶æëì†EF×´¿†µ
JK ̧¨Õð†6þ¥ 裡L•†´¿
Return Value
‡Š ‹ ‰
None‡ˆ‰
Side Effects
None‡ˆ‰
íÆGHI
‡Œ•ƒ‰
void LCD_SegStat_PutChar16Seg_n(uint8 Character, uint8 Position)
§¨ 16 ´¾ ´´¿§¨«¬-®¯† 8 µ´¿ ÇÈɃ ³ §¨˜™Ê
Ë ÌÍ 16 §¨«¬¢ÎÏ†Ð¬Ñ ••ÒÓÔÕŸ ÌÖ× 16 ´¾ ´§¨«
¬ ¥Ø•ÙÚ
ÛÜŸ†¤Ý (n) œÞß«¬ ²–àá š›•
³ Ÿ Ì
¡ 16 §¨«¬â¥
¦•ƒ
uint8 Character
㧨†´¿† ASCII
‡
€ 0 ¶ 255 †•>C ASCII
MN´¿‰
uint8 Position åêç† 0 èéåê¶æë솴¿µ
ðÆ¥ 裡 ´¿
Return Value
‡Š ‹ ‰
None‡ˆ‰
Side Effects
None‡ˆ‰
íî
µ
ï•
̆§¨Õ
‡Œ•ƒ‰
Page 16 of 23
Document Number: 001-79471 Rev. **
®
PSoC Creator™
LCD (LCD_SegStat)
(void) LCD_SegStat_WriteString16Seg_n(*uint8 Character, uint8 Position)
§¨ 16 ´¾ ´´¿§¨«¬-®¯©À´¿•€Á†´¿Ã ÇÈɃ ³
§¨˜™ÊË ÌÍ 16 §¨«¬¢ÎÏ†Ð¬Ñ ••ÒÓÔÕŸ ÌÖ× 16 ´
¾ ´§¨«¬ ¥Ø•ÙÚ
ÛÜŸ†¤Ý (n) œÞß«¬ ²–àá š›•
³ Ÿ Ì¡ 16 §¨«¬â¥
¦•ƒ
*uint8 Character
?D©À´¿•€Á†´¿Ã
uint8 Position åêç† 0 èéåê¶æëì†EF×´¿†µ
JK ̧¨Õð†6þ¥ 裡L•†´¿
Return Value
‡Š ‹ ‰
None‡ˆ‰
Side Effects
None‡ˆ‰
íÆGHI
‡Œ•ƒ‰
OP APIs
Þß API
OP
ƒ*QR
LCD
* HI-Z /0¥©U•
=ƒOP†ST/0 Þß API 6Öƒ*
ø*%#V/0â WXYZ¶$%
LCD_SegStat_ComPort_SetDriveMode [œ
LCD
†Ùƒ¸\Ƀ†OP.
LCD_SegStat_SegPort_SetDriveMode
LCD
†
[œ
¸\Ƀ†=›OP.
LCD
ST/0
ST/0
void LCD_SegStat_ComPort_SetDriveMode(uint8 mode)
[œ
LCD
uint8 mode
Return Value
‡Š ‹ ‰
None‡ˆ‰
Side Effects
None‡ˆ‰
†Ùƒ¸\Ƀ†OP.
=+†ST/0
ST/0
›ÎST/0†]^¥_
`OP
‡Œ•ƒ‰
Document Number: 001-79471 Rev. **
Page 17 of 23
®
LCD (LCD_SegStat)
PSoC Creator™
LCD_SegStat_SegPort_SetDriveMode(uint8 mode)
LCD
uint8 mode
Return Value
€
•‚ƒ„
…
None†‹Š
†‡ˆ‰Š
Side Effects
†Œ •
None†‹Š
Š
Ž•
LCD_SegStat_SEG_NUM
•‘
’“
”Ž••–—˜
Ž•
LCD_SegStat_FRAME_RATE
•‘
’“
”Ž••–—˜
Ž•™š›
LCD_SegStat_WRITE_PIXEL
œ•‡ˆ void
LCD_SegStat_WritePixel() ž
‘Ž•
LCD_SegStat_READ_PIXEL
œ• LCD_SegStat_ReadPixel() ž
‘Ž•
LCD_SegStat_FIND_PIXEL
•‘Ÿ ¡¢£¤¥ ¦§¨
©
Žª«¦§ ¥ •‚¬- ® LCD ¯°
•‚ •‘•¦§²³´ª µ¶ ¦§ ¥ ·¸¦§¹º»• ¡¢£¤¥Ÿ ¼
Ž•
API
¦§¹º½¾¿ÀÁ ¦§
Â
±€
¦§¨
ÃÄÅ–Æ
PSoC Creator Ç“ÈÉ–ÆÊË” ÌÍ¥ÎÏÐÑÒÓÔÕ°Ö¬ÄÅ–Æ –ÆÊË ×ØÙ
ÚŽ –ƃ„ÛÜ
ËÝ¥
ÌÍÞÕ°Ö¥
ßÆ ×ØÙà
–ƃ„Û
Ü Start Page†ÜáâŠÞ File†ã Šäå¥
ÌÍ æ
׃
ÌÍ¥ Filter
Options†çè«éÊŠêëìêéÊË í
€îï•‚ƒ„
Page 18 of 23
… PSoC Creator ðñ¥ “Find Example Project†ÈÉ–ÆÊËŠ”òó
Document Number: 001-79471 Rev. **
®
PSoC Creator™
LCD (LCD_SegStat)
ôõö÷
LCD
ÎÏøÑùúû ´ªƒ½
üýþÿ LCD •–—
˜
¾¿ê ®Žª
ê
!" API #$%&ª•–—¬ÚŽ¦§
API •µ®Ž• •–ñ) þÿ¬ Òù*+
Ì̓ê
'(•–—
,-˜
LCD_SegStat
,-˜



,- API *+üÓÔ5678
ÎÏ.à
LCD /0
&ª«
,- LCD_SegStat ˜
1
23
30 Hz ™š›
4Ž••–ñ)
•–9§
ž
ÍÖ¬˜
:Ö•–
LCD
" >?@ I/O
Õ°Ö;–
ü
•Ö•–
@
LCD
ABÕ°Ö
©ÓC DMA


DMA
®H

ISR
®
LCD
DISR
®HTU•K²³R¯°
ßÆ
V
DMA ¬!
<
=
DEF
¬G¸ LCD ?
àIJ•KLM«¤NO¡¢£¤PQR LCD
LCD [email protected] ¬ SegŠ
•à
ßƃ ¸•
ê
×-
SL«
G¸ LCD ?@ßÆ
¸
”W?
Document Number: 001-79471 Rev. **
Page 19 of 23
®
LCD (LCD_SegStat)
PSoC Creator™
XYZ[
Z[\]^å ©_
`¸ a
LCD_SegStat_WritePixel() ž Þ
•
«H LCD
[email protected]« DMA
1 LCD ÎÏmn ™š›
½ÓC LCD
¡¢£¤1µ¶ ê
bcž de¡¢£¤ fgƒDMA
JLM
h•iABEFjkƒ•EF
lŸ
‰ƒ½
îe
opqr
s½“to±u
ò×îe
to
îe
îe/v
vwÕx
2.0
yO PSoC 5 z{¥|}~ô• API 78
½: API
LCD_SegStat_SaveConfig();
LCD_SegStat_RestoreConfig();
LCD_SegStat_Sleep();
LCD_SegStat_Wakeup().
PSoC 5
API
LCD_SegStat_Stop() API
€
¨ WRITE_PIXEL() ©ª«¬
#define
LCD_SegStat_WRITE_PIXEL(pixelNumber,
pixelState)
LCD_SegStat_WritePixel(pixelNumber,
pixelState)
LCD_SegStat_Stop() •‚ƒ„… DMA †‡
ˆ‰Š
‚‹ LCD_SegStat_Start() -> LCD_SegStat_Stop() Œ
•Ž••‘
’“ ”•–—˜Š ™š›
LCD_SegStat_Start() function •‚ œ†• DMA žŸ
ƒ LCD_SegStat_Stop() API „…
žŸ
LCD_SegStat_Stop() API ¡¢£¤™›¥¦• DMA „
…§Œ
¯° Š ¡“±§ œ² LCD_SegStat_WritePixel()
API •³´µ — -¶©·¸¹ ”•
-®˜
#define
LCD_SegStat_WRITE_PIXEL(pixelNumber,
pixelState) (void)
LCD_SegStat_WritePixel(pixelNumber,
pixelState)
¬º»
¼½·¾¿ÀÁÂ
ŽÃ•Š
ÄÅ
¨
ÁÂÆǘ¿À
LCD_SegStat_Buffer
LCD_SegStat_Channel
LCD_SegStat_TermOut
Page 20 of 23
Document Number: 001-79471 Rev. **
®
PSoC Creator™ Š ‚ÈÉ
ÄÅ
ÊËÌ LCD (LCD_SegStat)
-®/Ï
ÏÐÑ—
-® ÍÎ
LCD_SegStat_TD
LCD_SegStat_GCommons
LCD_SegStat_Commons
ÒÓ•‚
ÔÕÖט
Š
• API ØÙ›Ú
ÛÜÝÞ
LCD_SegStat_WriteBargraph()
¨ß•àá-®˜âãàá ¬ä¤Š
ÝÞ å¬
•‚ æç-èé êÞ
ÒÓ›•‚
LCD_SegStat_WriteString14Seg() £
LCD_SegStat_WriteString16Seg()
륛싟ÔÕ Ú
Î
1.50.a
•è‹íîï
ØÙ› RAM
ð”•ñò›óôÔÕÆõö÷
ÒÓ› LCD_SegStat_Write7SegNumber()
API ¡“
LCD_SegStat_Write7SegNumber() API
API •ùúé êÞó’“•¯ûÔÕ
륛 LCD_SegStat_Wakeup() API
LCD_SegStat_Wakeup() API •‚ü¤¥¦é
ýþÿ
³´ CYRET_LOCKED
¡¢¥¦³´ ˸¹•
§Œ
‚ÈÉ ¨!"#™
LCD_SegStat_Stop() ÍÎ
&' LCD_SegStat_Stop() (§Œ )
LCD_SegStat_DmaDispose() •#™
¨á* API ôœ
‚È!+•,1.50
$%
øÚ
‚ÈÉ
.£-¶
/0 API £12 API
™3456789:
Ü;Š
?@/09:ŽÃ <=>×Ü;Š
ËA B™/
C™D E#™› LCD_SegStat_Wakeup() API ·¨Š
¬/0 Ë 12ê
>פŠ ³´?@/09:Ž
Õ Ë
Ë•<=>×
“Helpers”AF!DG
H
›IJ
KL
˜Z‡˜B™AŽÃ˜C™D•[Ì\]
‚^
‚_ ¾`a£ ._Ì ü¤™
b
›F!•‚
é
-
MN•Ñ—–“Configure”A†‡D)OP•QRS
T·ULVWXYÉ
ŽÃ
d
F!Ž•-®Ì\]‚ efg¼½F
!å&'hø†‡ij ¨Ú‹F!
Ì LCD Š Ž
• k³´å-®Ì\]‚
Ì‚l › m½hø
ij
Ì‚no› e¨p Ú qr K2es&
'†‡ij
dt½•Ì\]
•œ†
¨wxKyz
Gª•VWÁ»Å
P
»ÅP [email protected]µ ¨UL
‚ƒ„…
‹Œ•Ž•
ø
†‡
œ†•VW
ˆ‰
¨uv
VW
‚
Š
ۥ
Document Number: 001-79471 Rev. **
Page 21 of 23
®
•‘’ LCD (LCD_SegStat)
˜
PSoC Creator™ “”•–—
„™/›
›œ•ž
„™ •š
š Ÿ
•
¡¢£¤¥¦‰§¨©ª«¬-®¯°±
²³
´µ ¶·¸¥¦¹º§¨©ª«»¬¼½
ÁÂ ÃÄÅÆÇÈÉ
¾¿¥¦À
#define `$LCD_SegStat`_Buffer
#define `$LCD_SegStat`_Channel
#define `$LCD_SegStat`_TermOut
#define `$LCD_SegStat`_TD
#define `$$LCD_SegStat`_GCommons
#define `$$LCD_SegStat`_Commons
1.30.b
Ê“”ËÌͰΕ
˜ ÕÖ×
¡•šÏÐÑÒÓÔ
ØÙ“”ÅÚÕÖ ÑÒÛˆ‰ ÜŸ
Þ ØÙàá âã ä„åæçè
˜
ÄÝÞ
é ê”
/ß
ÓÔ
®¯° v1.30 •–—ëìíî„™
1.30.a
ïÄ ðñ•Èòæó©ñ•ô—
õ°ö÷ PSoC Creator v1.0 Beta 4.1 ø„ù˜ ËúÅ
ûü „å°“” ¡ˆÏƒ¡ýþÅÜŸ
ÿå˜
ˈ‰
“”ˆ‰° ðñ• ¾¿ñ•Úʉ!"
# ¡Å‰!
$¯Ç%&' ¾¿ñ•ï„™õ
ƒ( ó©ñ• )*Úƒ´+ “”,-./Û
„™ )*0ŃÅ1234567
“expression view”
—8©9 #Ë:æ;›œ ñ•
1.30
ï„åá<
ïÄ StaticSegLCD_INT.c
=>µ
ï„™“”
F•
=>µ
ïÌÍ DMA GH
Ê“”ËÌͰΕ
˜ ÕÖ×
¡•šÏÐÑÒÓÔ
?Ë
¡@6ABËCDEˆ‰ CyLib.h
¡Å 32 IðJKLË
ïÄ
O©ÌÍæ“”=
STÎU
1.20.b
”ÌÍæ“”
”Ë
MŸN
¡P DMA ËQR
ØÙ“”ÅÚÕÖ ÑÒÛˆ‰ ÜŸ
Þ ØÙàá âã ä„åæçè
˜
ÄÝÞ
é ê”
/ß
ÓÔ
ØÙ“”ÅÚÕÖ ÑÒÛˆ‰ ÜŸ
Þ ØÙàá âã ä„åæçè
˜
ÄÝÞ
é ê”
/ß
ÓÔ
®¯°•–VWëìíî„™
1.10.b
Ê“”ËÌͰΕ
˜ ÕÖ×
Page 22 of 23
¡•šÏÐÑÒÓÔ
Document Number: 001-79471 Rev. **
®
PSoC Creator™
LCD (LCD_SegStat)
/
1.10.a
€• PSoC Creator v1.0 Beta 4.1 ‚ ƒ
„…†
‡ˆ‰Š ‹
ŠŒ•Ž•Œ•‘†’“”‡•‹
„•– —
•–
˜™š
›œ–•ž
Ÿ ŠŒ†–•¡¢£¤¥¦§¨© ™š
•ª‡
Š«¬›•-®
¯°±²³‡
Š«¬´†•†µ¶·¸¹º»¼‡“expression
view”˜ ½ ¾¿ „À Á
‡
© ÂÃÄÅÆÇȞɊ2012 —ÊËÌ͇ÎÏ•²ÐÑ£
ŠÒ›Ó¥ÔÕ ÖÂÃÄÅ×؇ÙÚÛÜÝÞŠÂÃÄÅÆÇȞɛºßàáâÛ܇•–ãäßàåß æ›ç èé
êáâëéŒ ìêíì‡î ïðßàñ• ÖòóÂÃÄÅôõ ö‡÷øùúŠûüÂÃÄÅ×Ø›ýþ²ÿ– ê!– "#$%&'($)%$*+,-ê./0–12 —ÞŠº
•²3%4567‚89:º–•;<=>[email protected]%&'(ABŠÂÃÄÅ›ïë á×Ø–C—DAB‡*+
E ÂÃÄÅ×Ø– %&'(AB„Šü ì-;F ãä —D•–G
HI‡Ë°JKŠ:öýÂÃÄÅL
—GÁ ßàM,
PSoC® ¬ÂÃÄÅÆÇȞɇNOFPŠPSoC Creator™ ‚ Programmable System-on-Chip™ ¬ÂÃÄÅÆÇȞɇFP
—ÊQ–‡Ë°áâFPêNOFPRáSµË°TË°
Ë°UVW˜X ‚/êY
ZRÂÃÄÅÆÇȞɘÂÃÄÅ Ë°Š:Á/[èé\]˜^_‚^_ŒÞ‡èé\] $^_ ë\Œ`_abc]¶‡ýd‚ce ÂÃÄÅ —œfñ
•Tïð!– gh‡$òijk$›•5l‡ñ•Š–Œm-$•–$n $opÂÃÄÅUVW‡q%CØ$-rÂÃÄÅUVW‚q%CØŠ:sát‡u²¬opµ¶·X ‚ /êY Š
€•‚ƒ„ …†‡ˆ‰
Š‹Œ•Ž•
•‘’“
•” •–—˜™š›œ•žŸ ¡¢£¡¤¥¡
¦§¨©ª…
«¬-•®
£ ÏÐ…
èéêë…ì
„
Ôø
”¯•–°±²³•ž—´ •ª¨µª¶·•¸¹º»” ¼½¾¯•¿
Š
ÀÁÂ
”•–Ì͈‹•ž
¨€• Ñ ¨„ ÒÓ•ž¬•…•½ ÔÕÖפØÙÂÚÛÜ•
½Öã
äåí•îïª Þð ÒÓñ–—„ òóô Íõö÷•Ü‘¶
ûë
¼
Á µª¶·…
¶ÃÄ”ÅÆÇÈ ÉÊË•–Ì͈°±›œÎ
ÝÞ ßàáâ Öã
äå•
”æÏ
ç–—äå
«½ñ–òøù•ž‰ú…
…
Document Number: 001-79471 Rev. **
Page 23 of 23
Similar pages