javascripter
- Sep 4, 2021
- 3
- Joined
- Sep 4, 2021
- Messages
- 3
Hello,
I have an EINK display I got a bit ago and am now trying to get to just do anything, have been working on it for a few days now. Am using STM32F103C8T6 for code, so code is C with STM32 HAL libraries, but that isn't so important as I have verified my SPI output is working correctly with a logic analyzer.
EINK display is GDEH0213B72, and I am mostly using the attached datasheet as it is the best I have been able to find. I am using a DESPI-C02 interface board between MCU and display.
So far I haven't been able to get anything to display, and I also think I haven't been able to get DCDC to run.
Here is the code I've got based on the reference program code flowchart on page 21:
https://pastebin.com/ifUmzYF3
Sorry about the code being a bit of a mess, right now I'm just trying to get it to work at all.
Also gImage_1[4000] is from a code example I was trying to work from and I'm pretty sure is the wrong size; I left it because I thought I can just use part of it and it will give at the worst effectively a random image.
That code runs to the point of the main loop where I blink an LED (on C13); but EINK is unchanged. However, it seems that VCOM is never driven though I am not sure; if I put a breakpoint before deep sleep and check with multimeter it starts somewhat negative and the voltage increases to 0, so maybe it is being driver incredibly weekly?
Another thing I tried is in comments from lines 401 to 416 and is as far as I got trying to follow the typical operating sequence flowchart on page 20. I wasn't able to figure out commands for VGL or oscillator clock/DCDC & regulator (I realize any of the 0x22 commands "Enable clock signal", so maybe that is for oscillator clock, but no idea on DCDC & regulator). Sometimes after running some of those commands BUSY would go high and never go low again, but even when that didn't happen same result of nothing happening.
I have the SPI configured so that the clock idles high and data is shifted out on a rising edge. I have also tried with both RESE settings the board has as I wasn't able to find which to use from datasheet, but result is the same.
Any advice or suggestions is greatly appreciated.
EDIT: Also, I was unsure if this is the correct place for this question(s?), so if anyone has somewhere else to suggest asking that is also appreciated.
I have an EINK display I got a bit ago and am now trying to get to just do anything, have been working on it for a few days now. Am using STM32F103C8T6 for code, so code is C with STM32 HAL libraries, but that isn't so important as I have verified my SPI output is working correctly with a logic analyzer.
EINK display is GDEH0213B72, and I am mostly using the attached datasheet as it is the best I have been able to find. I am using a DESPI-C02 interface board between MCU and display.
So far I haven't been able to get anything to display, and I also think I haven't been able to get DCDC to run.
Here is the code I've got based on the reference program code flowchart on page 21:
https://pastebin.com/ifUmzYF3
Sorry about the code being a bit of a mess, right now I'm just trying to get it to work at all.
Also gImage_1[4000] is from a code example I was trying to work from and I'm pretty sure is the wrong size; I left it because I thought I can just use part of it and it will give at the worst effectively a random image.
That code runs to the point of the main loop where I blink an LED (on C13); but EINK is unchanged. However, it seems that VCOM is never driven though I am not sure; if I put a breakpoint before deep sleep and check with multimeter it starts somewhat negative and the voltage increases to 0, so maybe it is being driver incredibly weekly?
Another thing I tried is in comments from lines 401 to 416 and is as far as I got trying to follow the typical operating sequence flowchart on page 20. I wasn't able to figure out commands for VGL or oscillator clock/DCDC & regulator (I realize any of the 0x22 commands "Enable clock signal", so maybe that is for oscillator clock, but no idea on DCDC & regulator). Sometimes after running some of those commands BUSY would go high and never go low again, but even when that didn't happen same result of nothing happening.
I have the SPI configured so that the clock idles high and data is shifted out on a rising edge. I have also tried with both RESE settings the board has as I wasn't able to find which to use from datasheet, but result is the same.
Any advice or suggestions is greatly appreciated.
EDIT: Also, I was unsure if this is the correct place for this question(s?), so if anyone has somewhere else to suggest asking that is also appreciated.