Only 2 change, everything the same with rehius code:there is no answer yet
1. Modify the d0 voltage checker
From 1.8V +- 0.2V
To 1.6V +- 0.35V
Calculated from the datasheet, read this post
Hacking Hardware Post in thread 'Picofly - a HWFLY switch modchip'
From datasheet:Hi @abal1000x ,
I've found an OLED which sometimes can glitch and sometimes cannot .. using an DAT0 adapter.. Continuity is good, but still throws dat0 error code.
Just want to know your opinion regarding bellow voltages and ranges test.
View attachment 393392
Dat0 works on push-pull mode, means,
View attachment 393395
View attachment 393396
View attachment 393393
View attachment 393394
When theres no signal (high level) it should be between Voh to Vdd.
Theres two table i assume the emmc could use 2 mode of voltage.
Vccq = Vdd = 1.70 ~ 1.95
Table 30:
Vdat0 = 0.75Vdd ~ Vdd
= 1.275 ~ 1.95
Table...
2. Change the power off mechanism
After glitch, the rp2040 should be turn off, to reduce battery power consumption.
The original rehius code have buggy shutdown mechanism.
(AFAIK rehius remove the shutdown mechanism to fix the bug, so the rp2040 still on, only consume a little bit of power.)
I try to fixed that. I read the whole document of rp2040.
In conclustion rp2040 doesn't have total shutdown mechanism.
But we could turn off partially the module inside rp2040.
I turn off any functionality inside rp2040 that i could turn off.
Its called deep sleep or something like that in the document.
The best solution is to use somekind of physical switch to reduce consumption.
But it will lead to add more cost, so little bit of power consumption is okay, i think.














