diff options
| author | Selene ToyKeeper | 2021-04-02 14:07:02 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2021-04-02 14:07:02 -0600 |
| commit | a3b9184af454f85da688e8975e248c69418bca02 (patch) | |
| tree | 367ec4cb6c228e6b58d46c5ca56efaa7a0f3354f | |
| parent | added attiny1616 flashing instructions, and made flash-tiny1616.sh configurab... (diff) | |
| download | anduril-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.h | 3 |
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; |
