Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Need Contact to Mrshilov !

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

Bascom Member



Joined: 04 May 2017
Posts: 43

germany.gif
PostPosted: Mon Oct 28, 2019 6:06 pm    Post subject: Need Contact to Mrshilov ! Reply with quote

I have rewritten your ILI9481 Libary to the ILI9486 Display.
I can Initialize the ILI9486 and solved the Problem with the Inverted Colors and can Display BGC Pictures. ( So far i dont need to use Circles, Boxes or Lines ect. and dont care about it )

My only Problem is, when i put 3,3v on the Display, a function is called which filled the entire Display with Blue color, wait 2 sek. and Fill it with Red.

Then it goes to show some BGC Pictures, and Set the >>Column Address Set (2Ah)<< and the >>Page Address Set (2Bh)<< to show the Picture on the given Location.
Then i call a Function that is reset the Collum and Page Ardresses ( a Window Reset if you will ) to the Specs that is shown in the Datasheet of this Display.

When i reset the register for the Page Address Set (2Bh) to 0000h/01DFh, the Blue and Red Colors dont fill the Entire Screen anymore. There is a maybe 20 Pixel Grey Stripe on one side, the Rest is in the Given Color.
Only a hit on the Reset Button of the USB1286 MCU will Set the Display correct Collumn and Page Locations.

This is my Inititialize:

Code:
Res_disp = 0
Waitms 5
Res_disp = 1                                                'Hardware Reset
Waitms 120

Data_disp_low = &h10                                        'Sleep in
Rs_disp = 0
Wr_disp = 0
Wr_disp = 1
Waitms 120

Data_disp_low = &h13                                        ' Display Mode: Normal
Rs_disp = 0
Wr_disp = 0
Wr_disp = 1

Data_disp_low = &h28                                        'Display Off
Rs_disp = 0
Wr_disp = 0
Wr_disp = 1

Data_disp_low = &h38                                        ' Idlemode OFF
Rs_disp = 0
Wr_disp = 0
Wr_disp = 1

Data_disp_low = &h36                                        'Memory Data Access Control: 36 h
Rs_disp = 0
Wr_disp = 0
Wr_disp = 1
Data_disp_low = &hC0
Rs_disp = 1
Wr_disp = 0
Wr_disp = 1

Data_disp_low = &hB4                                        ' Display Inversion Control (B4h)
Rs_disp = 0
Wr_disp = 0
Wr_disp = 1
Data_disp_low = &h10
Rs_disp = 1
Wr_disp = 0
Wr_disp = 1

Data_disp_low = &h34                                        ' Tearing Effect Line OFF
Rs_disp = 0
Wr_disp = 0
Wr_disp = 1

Data_disp_low = &h20                                        ' Display Inversion OFF
Rs_disp = 0
Wr_disp = 0
Wr_disp = 1

Data_disp_low = &hB4                                        ' Display Inversion Control (B4h)
Rs_disp = 0
Wr_disp = 0
Wr_disp = 1
Data_disp_low = &h01
Rs_disp = 1
Wr_disp = 0
Wr_disp = 1

Data_disp_low = &hc0                                        'Power setting 1
Rs_disp = 0
Wr_disp = 0
Wr_disp = 1
Data_disp_low = &h15
Rs_disp = 1
Wr_disp = 0
Wr_disp = 1
Data_disp_low = &h15
Rs_disp = 1
Wr_disp = 0
Wr_disp = 1

Data_disp_low = &hB6                                        ' Display Function Control (B6h)
Rs_disp = 0
Wr_disp = 0
Wr_disp = 1
Data_disp_low = &h00
Rs_disp = 1
Wr_disp = 0
Wr_disp = 1
Data_disp_low = &h00
Rs_disp = 1
Wr_disp = 0
Wr_disp = 1
Data_disp_low = &h3B
Rs_disp = 1
Wr_disp = 0
Wr_disp = 1

Data_disp_low = &h51                                        'Write Display Brightness Value (51h)
Rs_disp = 0
Wr_disp = 0
Wr_disp = 1
Data_disp_low = &hFF
Rs_disp = 1
Wr_disp = 0
Wr_disp = 1

Data_disp_low = &h3a                                        ' Interface Pixel Format (3Ah) -- Color Mode = 16 bit
Rs_disp = 0
Wr_disp = 0
Wr_disp = 1
Data_disp_low = &h55
Rs_disp = 1
Wr_disp = 0
Wr_disp = 1

Data_disp_low = &h11                                        'Sleep Off
Rs_disp = 0
Wr_disp = 0
Wr_disp = 1
Waitms 120

Data_disp_low = &h29                                        'Display On
Rs_disp = 0
Wr_disp = 0
Wr_disp = 1
Waitms 120

Const Blau = &H00F8                                         ' 0000_0000 -- 1111_1000
Const Rot = &H1F00                                          ' 0001_1111 -- 0000_0000
Const Braun = &hF100
Const Weiss = &hFFFF


(BASCOM-AVR version : 2.0.8.2 )
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