Hi,
ich versuche seit zwei Tagen an mein PSoC ein 8x24 LCD C338008
anzuschließen.
Dabei habe ich die Anschlüsse des mitgelieferten LCDs genommen, wie im
Bild zu sehen.
Wie ich "12 I/OC2" und "13 I/OC1" verbinden soll ist mir noch unklar.
Das half mir auch nicht weiter:
[[Beitrag "Samsung LCD 0282A, was sind I/OC 1+2"]]
Hier der Code:
1 | //----------------------------------------------------------------------------
|
2 | // C main line
|
3 | //----------------------------------------------------------------------------
|
4 |
|
5 | #include <m8c.h> // part specific constants and macros
|
6 | #include "PSoCAPI.h" // PSoC API definitions for all User Modules
|
7 | #include "stdio.h"
|
8 | #include "stdlib.h"
|
9 | #include "math.h"
|
10 |
|
11 |
|
12 | void main(void)
|
13 | {
|
14 | LCD_Start(); // Initialize LCD
|
15 | LCD_Position(0,0); // Place LCD cursor at row 0, col 5.
|
16 | LCD_PrCString("LCD 8x24 v01");
|
17 |
|
18 | M8C_EnableGInt ; // Turn on interrupts
|
19 | // Insert your main routine code here.
|
20 | while(1)
|
21 | {
|
22 | //if (PRT1DR &= 0x01) // P10
|
23 | // {
|
24 | LCD_Position(1,0);
|
25 | LCD_PrCString("lol lol test lol lol");
|
26 | LCD_Position(5,5);
|
27 | LCD_PrCString("-----------------");
|
28 | //}
|
29 | }
|
30 | }
|
Das Display benötigt an Vo ca. 7V bis 9V, dies habe ich mit einem
Netzteil realisiert. Dieses liefert ca. 8,9V, leider ohne Erfolg.
Hier im Forum fand ich Anleitungen für Atmege und/oder AVR:
[[Beitrag "LCD Display 8x24 mit M50530"]].
Wie könnte ich diese für PSoC "übersetzten", "verändern" oder als Basis
verwenden?