aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2021-04-02 14:07:02 -0600
committerSelene ToyKeeper2021-04-02 14:07:02 -0600
commita3b9184af454f85da688e8975e248c69418bca02 (patch)
tree367ec4cb6c228e6b58d46c5ca56efaa7a0f3354f
parentadded attiny1616 flashing instructions, and made flash-tiny1616.sh configurab... (diff)
downloadanduril-a3b9184af454f85da688e8975e248c69418bca02.tar.gz
anduril-a3b9184af454f85da688e8975e248c69418bca02.tar.bz2
anduril-a3b9184af454f85da688e8975e248c69418bca02.zip
need to do some measurements sometime to determine if fast or phase-correct PWM is better on t1616
-rw-r--r--hwdef-gchart-fet1-t1616.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/hwdef-gchart-fet1-t1616.h b/hwdef-gchart-fet1-t1616.h
index 3d41951..365ecd7 100644
--- a/hwdef-gchart-fet1-t1616.h
+++ b/hwdef-gchart-fet1-t1616.h
@@ -91,6 +91,9 @@ inline void hwdef_setup() {
// set up the PWM
// TODO: add references to MCU documentation
+ // TODO: measure 5 MHz fast PWM vs 10 MHz phase-correct, to see if it
+ // still has issues at 0/255 and 255/255 like older models did
+ // (and maybe switch to phase-correct@10MHz)
TCA0.SINGLE.CTRLB = TCA_SINGLE_CMP0EN_bm | TCA_SINGLE_CMP1EN_bm | TCA_SINGLE_WGMODE_SINGLESLOPE_gc;
TCA0.SINGLE.PER = 255;
TCA0.SINGLE.CTRLA = TCA_SINGLE_CLKSEL_DIV1_gc | TCA_SINGLE_ENABLE_bm;
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.