Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

LCD 1x8 SPI

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Various
View previous topic :: View next topic  
Author Message
marcosx

Bascom Member



Joined: 12 Jan 2010
Posts: 9

poland.gif
PostPosted: Sun Dec 03, 2017 3:03 pm    Post subject: LCD 1x8 SPI Reply with quote

Hello:
Please help me in the LCD interface SPI ST7036
I have never run LCD and ISP interface before.

http://www.artronic.com.pl/o_produkcie.php?id=2050?


$regfile = "m168pdef.dat"
$crystal = 16000000

Config Spi = Soft , Din = Pinc.0 , Dout = Portc.3 , Clock = Portc.2 , Ss = None
Config Lcd = 16 * 1a
Initlcd
Cursor Off
Cls

Do
Lcd " test "
Wait 2
Lcd "TEST LCD"
Wait
loop

Compiler version :2.0.8.0

Back to top
View user's profile
Mrshilov

Bascom LCD Guru



Joined: 24 Jan 2009
Posts: 314
Location: Russia

russia.gif
PostPosted: Sun Dec 03, 2017 11:08 pm    Post subject: Reply with quote

There are no library for HD44780-compatible SPI display. It can be written, but needs display in hand for testing.
You can connect this LCD with 4-bit connection:

Code:
 $regfile = "m168pdef.dat"
 $crystal = 16000000

 Config Lcdpin = Pin , E = PORTC.2 , Rs = PORTC.3, Db4 = PORTC.4 , Db5 = PORTC.5 , Db6 = PORTC.6 , Db7 = PORTC.7 ,
 Config Lcd = 16 * 1
 Initlcd
 Cursor Off

 Do
   Cls
   Lcd "TEST LCD"
   Wait 2
 Loop
Back to top
View user's profile
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 1161
Location: France

france.gif
PostPosted: Sun Dec 10, 2017 10:48 am    Post subject: Reply with quote

are you using 3.3V For VCC ?
IF you use 5.0 you can buy another display....
JP Wink
Back to top
View user's profile Visit poster's website
marcosx

Bascom Member



Joined: 12 Jan 2010
Posts: 9

poland.gif
PostPosted: Wed Dec 13, 2017 11:36 am    Post subject: Reply with quote

No reaction, nothing works,
I connected to 5v and 3.3v and nothing.
There must be some other initiation procedure
this display.
Back to top
View user's profile
Mrshilov

Bascom LCD Guru



Joined: 24 Jan 2009
Posts: 314
Location: Russia

russia.gif
PostPosted: Wed Dec 13, 2017 12:36 pm    Post subject: Reply with quote

Sorry, CSB pin must be connected to GND.
Back to top
View user's profile
marcosx

Bascom Member



Joined: 12 Jan 2010
Posts: 9

poland.gif
PostPosted: Wed Dec 13, 2017 3:18 pm    Post subject: Reply with quote

There is still no reaction




















Back to top
View user's profile
marcosx

Bascom Member



Joined: 12 Jan 2010
Posts: 9

poland.gif
PostPosted: Thu Dec 14, 2017 9:22 am    Post subject: Reply with quote

The display has started but displays nonsense.





Code:

$regfile = "m168pdef.dat"
$crystal = 16000000

$hwstack = 32
$swstack = 16
$framesize = 40

Config Lcdpin = Pin , Db4 = Portc.2 , Db5 = Portc.3 , Db6 = Portc.4 , Db7 = Portc.5 , E = Portc.1 , Rs = Portc.0
Config Lcd = 16 * 1 , Chipset = Dogm162v3
Cls
Wait 1

Lcdcmd &B00110000
Waitms 10

Lcdcontrast 22

Do
   Lcd "TEST-LCD   DSFSDFDS"
   Wait 2
   Cls
   Lcd "LCD-TEST  AADSD"
   Wait 2
Loop

End
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Various All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum