First i want to tell that VisualTFT starts in Ubuntu Linux with Wine emulatior.
It was just a quick look, so i can't tell more about if all functions work correctly.
What i wish is that you add TFT controller standby on/off function to TFT library.
(HX8347-AppNote.pdf page 55-56)
I have got mikroMMB 18 card down to 740uA in sleep mode this far.
Power saving function
- slavisa.zlatanovic
- mikroElektronika team
- Posts: 1321
- Joined: 07 Apr 2009 09:39
Re: Power saving function
Hi!
It will be considered.
Thanks!
I'll pass your suggestion to our software developers.What i wish is that you add TFT controller standby on/off function to TFT library.
(HX8347-AppNote.pdf page 55-56)
It will be considered.
Thanks!
Best regards
Slavisa
Slavisa
Re: Power saving function
Is there a way to put TFT display in sleep mode? Could you please send me an example?
- slavisa.zlatanovic
- mikroElektronika team
- Posts: 1321
- Joined: 07 Apr 2009 09:39
Re: Power saving function
Hi!
It will be considered.
Currently, this feature is not available in our TFT Library. However, I'll pass your request to our software developers.Is there a way to put TFT display in sleep mode? Could you please send me an example?
It will be considered.
Best regards
Slavisa
Slavisa
Re: Power saving function
-Try use LCD_RST -pin. You must init and reload lcd to get it work again.Matjaz wrote:Is there a way to put TFT display in sleep mode? Could you please send me an example?
-Clear also LCD backlight pin to turn leds off (make it output first).
These saves power a lot.
Re: Power saving function
I looked around and I only have
If I set it to 0x00, the display really goes blank (white screen).
I can't seem to find a way to disable TFT backlight though. This functionality would be great. I have the following PINs available (according to documentation):
and none of them seems to be connected with TFT backlight. Any further ideas?
Code: Select all
sbit TFT_RST at LATH4_bit;
I can't seem to find a way to disable TFT backlight though. This functionality would be great. I have the following PINs available (according to documentation):
Code: Select all
extern sfr char TFT_DataPort; TFT Data Port.
extern sfr char TFT_DataPort_Direction; Direction of the TFT Data Port.
extern sfr sbit TFT_WR; Write signal.
extern sfr sbit TFT_RD; Read signal.
extern sfr sbit TFT_CS; Chip Select signal.
extern sfr sbit TFT_RS; Command/Register Select signal.
extern sfr sbit TFT_RST; Reset signal.
extern sfr sbit TFT_WR_Direction; Direction of the Write pin.
extern sfr sbit TFT_RD_Direction; Direction of the Read pin.
extern sfr sbit TFT_CS_Direction; Direction of the Chip Select pin.
extern sfr sbit TFT_RS_Direction; Direction of the Register Select pin.
extern sfr sbit TFT_RST_Direction; Direction of the Reset pin.
Re: Power saving function
the schematics suggest this to be controlled by LCD-BLED which should be on LATD2_pin for the MMB24 but it does not seem to work as i do not see any change when i make that pin low.
Maybe ME can enlighten us on this one.
Maybe ME can enlighten us on this one.
Au royaume des aveugles, les borgnes sont rois.
Re: Power saving function
I found LCD-BLED in schematics for MMB18 and it is on LATH5_bit (RH5). Setting it to 0x00, 0x01 or 0xFF doesn't turn the backlight off.
- slavisa.zlatanovic
- mikroElektronika team
- Posts: 1321
- Joined: 07 Apr 2009 09:39
Re: Power saving function
Hi!
P.S.
You might need to do this first (PIC18F87J50 MCU specific):
You must set the appropriate TRIS register first:I found LCD-BLED in schematics for MMB18 and it is on LATH5_bit (RH5). Setting it to 0x00, 0x01 or 0xFF doesn't turn the backlight off.
Code: Select all
TRISH5_bit = 0;
LATH5_bit = 0;
You might need to do this first (PIC18F87J50 MCU specific):
Code: Select all
ANCON0 = 0xFF; // Default all pins to digital
ADSHR_bit = 1; // Enable write/read to the shared SFR ANCON1
ANCON1 = 0xFF; // Default all pins to digital
ADSHR_bit = 0; // Disable write/read to the shared SFR ANCON1
Best regards
Slavisa
Slavisa
Re: Power saving function
yes! never thought of that as i was convinced it was already turned on by the library.
Au royaume des aveugles, les borgnes sont rois.
Re: Power saving function
It now works just the way I wanted. I didn't think of setting both the LAT and TRIS register to 0.slavisa.zlatanovic wrote:You must set the appropriate TRIS register first