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

Fix example not compiling; Update Changelog #553

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

MX682X
Copy link
Contributor

@MX682X MX682X commented Sep 28, 2024

Also, I'd like to point out, that we are already at avrdude 8.0, which has support for PICkit 5 (UPDI only). Probably sensible to update the pipeline on that front.

@nomakewan
Copy link
Contributor

For the maintainer, I would also point out that the single failing compile example is not the fault of the PR submitter, but rather a fluke bug in Github's runner related to its golang JSON parser. Someone had a similar issue here that went unresolved by golang's maintainers: golang/go#55829

So if that single failing check were re-run it would likely succeed.

@MX682X MX682X force-pushed the master branch 6 times, most recently from fdb2039 to 99fa098 Compare October 6, 2024 09:26
@SpenceKonde SpenceKonde merged commit ad01c83 into SpenceKonde:master Oct 7, 2024
135 checks passed
@SpenceKonde
Copy link
Owner

Poetry in motion!

Where are the magic names of the register values being pulled from? Like, they sound suspiciously official.

And, sorry to ask again, but ah, do you know anywhere I can go to learn - what the modes available are? Are there any meaningful differences between the pins? The datasheet has basically nothing. Is there another document somewhere? .

The other big question is - what wiring is needed for the modes, both in terms of wiring between sensors (for, if I understand correctly, some of the mutual cap modes?), and what the holy decree is regarding what shape the sensing elements shall take. I've seen all sorts of wonky shapes in touch sensors, some of which I believe were cap touch; I assume Microchip made a recommendation somewhere?

@MX682X
Copy link
Contributor Author

MX682X commented Oct 7, 2024

@SpenceKonde

Where are the magic names of the register values being pulled from? Like, they sound suspiciously official.

Well, here is the fun thing - when you look at the Register definition for the Tiny - the first half is from the official ADC.
This design decision from Atmel (at least that's what's lasered on my Attiny1614) made me understanding the PTC much easier. Knowing what structure member values go where, I was able to cross-reference it with the DA and create the structure there. That's why a lot of the register names are known. The second half is based on what is written to it.

And, sorry to ask again, but ah, do you know anywhere I can go to learn - what the modes available are? Are there any meaningful differences between the pins? The datasheet has basically nothing. Is there another document somewhere?

The pins are pretty much the same, no difference. At most a little deviation in capacitance, which is compensated anyway.

.h files for the qTouch structures can be found here, for example:
https://github.com/microchip-pic-avr-examples/avr128da48-qt7-touch-example-studio/tree/master/avr128da48-qt7-touch-example-studio/qtouch
https://github.com/microchip-pic-avr-examples/attiny3217-t10-touch-example-studio/tree/master/attiny3217-t10-touch-example-studio/qtouch

Best documentation on the hardware I was able to find :
https://ww1.microchip.com/downloads/en/DeviceDoc/DS50002705A%20-%20SAMA5D2%20PTC%20Subsystem%20Firmware%20Users%20Guide.pdf

Sensor design guidelines:
https://www.mouser.com/pdfDocs/QTouch_QTAN0079.pdf

"Secrets of a Successful QTouch™ Design":
https://ww1.microchip.com/downloads/en/Appnotes/an-kd02_103-touch_secrets.pdf

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

Successfully merging this pull request may close these issues.

3 participants