Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cost reduction/optimization options #3

Open
nerdralph opened this issue Jan 31, 2021 · 2 comments
Open

cost reduction/optimization options #3

nerdralph opened this issue Jan 31, 2021 · 2 comments

Comments

@nerdralph
Copy link

The t84 RC oscillator is much better than the t85 when it comes to stability and tuning resolution. Last year I wrote an improved OSCCAL tuning function for Micronucleus, that could be used in your calibrator project.
https://github.com/nerdralph/micronucleus-firmware/blob/asm/firmware/osccal.S
This issue thread has some details about the tuning:
micronucleus/micronucleus#182

This would also free up 2 pins on the t84, and one or both of them could be then used for a PWM-based charge pump instead of the external ST662.

@nerdralph
Copy link
Author

nerdralph commented Jan 31, 2021

I mistakenly thought there was a USB connector on the back of the PCB, and the firmware was using V-USB. Since it's not, that makes the USB tuning suggestion pointless.
I still think you can drop the external xtal though, by calibrating the t84's RC oscillator at programming time, if necessary. Since the t84 RC oscillator is more stable and has finer tuning resolution than the t13 and tx5, the tuning accuracy would not suffer by a material amount.

@wagiminator
Copy link
Owner

I'm sure you're right, the crystal is a little overkill for this purpose. With the two pins you can do great things, for example realizing the 12V charge pump with the ATtiny and thus saving the ST662 or saving yourself this stupid pin sharing of the buttons and SCI line, which has caused me a lot of headaches (this was a really bad decision). Anyway, despite the many opportunities for improvement, the hardware does its job, so that a change is not on my priority list for the time being. The thing with the signature row is more important, I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants