Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

ST7735R with XMEGA

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
boeseturbo

Bascom Member



Joined: 23 Jul 2007
Posts: 31

blank.gif
PostPosted: Tue Jun 28, 2016 9:28 am    Post subject: ST7735R with XMEGA Reply with quote

Hi,

I tried to adapt Hkipnik`s ST7735 code to drive it with XMEGA....

I changed hardware SPI to:

Code:
 Config Spie = Hard , Master = Yes , Mode = 0 , Clockdiv = Clk2 , Data_order = Msb , Ss = none

 Open "SPIE" For Binary As #12
 


and also the pins for DC, CS and Reset...

Code:


Config PortE.0 = Output
Config PortE.2 = Output
Config PortE.1 = Output
Lcd_cs Alias PortE.0
Lcd_dc Alias PortE.2
Lcd_reset Alias PortE.1
PortE.0 = 1
 



and I changed "SPIOUT" command to "print #12" and have no luck.... With ATMEGA I had this display already running...

Has anybody an idea what I am doing wrong?

Cheers

(BASCOM-AVR version : 2.0.7.8 )
Back to top
View user's profile
brantb

Bascom Member



Joined: 23 Mar 2015
Posts: 16

blank.gif
PostPosted: Thu Aug 18, 2016 9:31 pm    Post subject: Reply with quote

Hello @boeseturbo,

Did you get your problem sorted out, or is it still unresolved?

If you are still having difficulty, I will try to help as much as I can. I don't have specific knowledge of the ST7735 controller, but I have recently done a fair amount of work with an Xmega and an ILI9341 controller.

The code example you include only tells part of the story. Your CONFIG SPIE line includes SS = NONE ... but you don't show any code to illustrate what you are doing (if anything) with the SS pin. Did you set it to output, so that SPI will be in master mode (as it should be)?

I realize this is an older post - but I also just noticed that no one else had tried to help, so I figured I would jump in. If it is already solved ... congratulations! Very Happy Otherwise, give a few more details, and I will see what I can do.

Cheers!
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR 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