| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| IDK 
 
 
 Joined: 29 Jan 2019
 Posts: 6
 Location: Pakistan
 
 
			    
 
 | 
			
				| ili9225 lcd library |  
				|  Posted: Sat Sep 26, 2020 5:04 am |   |  
				| 
 |  
				| Ii have ili9341 lcd library interfacing with 18f46k22. Now i want ili9225 library any help or any link thanks... |  | 
	
		|  | 
	
		| temtronic 
 
 
 Joined: 01 Jul 2010
 Posts: 9588
 Location: Greensville,Ontario
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Sat Sep 26, 2020 5:21 am |   |  
				| 
 |  
				| Again, please post a link to the peripheral datasheet. Also if you google 'device, ardunio' you may find a 'driver' for it. Though NOT CCS C, you can translate fairly easily.
 |  | 
	
		|  | 
	
		| IDK 
 
 
 Joined: 29 Jan 2019
 Posts: 6
 Location: Pakistan
 
 
			    
 
 |  | 
	
		|  | 
	
		| temtronic 
 
 
 Joined: 01 Jul 2010
 Posts: 9588
 Location: Greensville,Ontario
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Mon Sep 28, 2020 4:53 am |   |  
				| 
 |  
				| hmm, that's not the datasheet,just the ad on where to buy it from. The datasheet will have all the design specs like VDD,interface and most importantly the command set to use it.
 I 'think' it'd be a 3 volt device( most peripherals today are), so at the very least  use a 3volt PIC for the project.
 As for interface, I'm 'thinking' it'd be either I2C or SPI, maybe both could be used ??
 As for the command set, I 'think' it'd be similar to any previous similar unit made by the manufacturer.
 
 Often you can use Google ( devicename driver ) and get 1,000s of hits. As the Ardunio is very popular, you'll get a lot of hits for it and translating Ardunio C into CCS C is not that difficult.
 
 Sorry, but without the device on my bench, I can't write a driver as I have no way of testing it.
 |  | 
	
		|  | 
	
		| Ttelmah 
 
 
 Joined: 11 Mar 2010
 Posts: 19966
 
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Mon Sep 28, 2020 6:13 am |   |  
				| 
 |  
				| It actually offers SPI or a parallel interface. Honestly, if the poster has got code for the ili9341 he is further along
 than anyone else. These are not really displays I would consider as
 'suitable' for control using a PIC18. Problem is that do do anything
 reasonably 'intelligent' with a display this large (176*256), will usually
 require a significant amount of RAM storage in the chip. Honestly the
 fastest and best way is to have a copy of the 'screen' held in the chip's
 memory, and PIC's in general don't have the RAM to do this. Now you can
 instead operate using read modify write cycle to the controller, but this
 brings such a large speed penalty, that I'd avoid it if at all possible.
 However the basic library for this, which should be fairly easy to
 translate is here:
 <https://www.ramtex.dk/gclcd/gclcd.htm>
 The chip emulates the S6D0129 controller.
 |  | 
	
		|  | 
	
		|  |