Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9753
Posted: 05:06am 30 Oct 2018
Copy link to clipboard
Print this post
SPI LCD panel with touch. If I KNOW I won't ever want the touch feature, and that the LCD will always be used, can I tie LCD_CS and TOUCH_CS pins on the LCD high, and NOT use pins for them on the MM?
I am hoping to reclaim two pins in the next PCB version, by doing that. Does that sound like sane logic?
EDIT: .....and also claim back the pin for the touch IRQ, which also won't be used....Edited by Grogster 2018-10-31Smoke makes things work. When the smoke gets out, it stops!
erbp Senior Member Joined: 03/05/2016 Location: AustraliaPosts: 195
Posted: 07:41am 30 Oct 2018
Copy link to clipboard
Print this post
You would need to tie the LCD_CS pin on the LCD to GROUND, so that the display controller will be permanently enabled.
You need to tie the TOUCH_CS pin on the LCD to 3v3, so that the touch controller is permanently disabled.
This assumes you do not use the SPI channel to communicate with any other SPI device(s), if you did you would need to leave the LCD_CS pin connected to the MM and include it in the OPTION LCDPANEL configuration settings, as the display controller would need to remain software selectable so as not to interfere with the other SPI device.
Cheers, Phil.
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9753
Posted: 07:44am 30 Oct 2018
Copy link to clipboard
Print this post
Lovely, thanks.
Yes, the only thing on the SPI bus, is the LCD - and the touch controller I don't want to use.
I will ground LCD_CS, and tie high TOUCH_CS. That should do it, yes?Smoke makes things work. When the smoke gets out, it stops!
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10572
Posted: 08:13am 30 Oct 2018
Copy link to clipboard
Print this post
You need to be a bit careful, some SPI devices only work if the CS line is active. Suggest you test with the specific display before going to copper
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9753
Posted: 08:22am 30 Oct 2018
Copy link to clipboard
Print this post
Good advise, thanks. I will.Smoke makes things work. When the smoke gets out, it stops!