Skip to content

v00x: add PWR/WWDG/IWDG/EXTEN/TIM3/TKEY, scope USART2/CMP1, ADC SAMPTR1 - #40

Merged
aq1018 merged 9 commits into
mainfrom
feat/v00x-improvements
May 20, 2026
Merged

v00x: add PWR/WWDG/IWDG/EXTEN/TIM3/TKEY, scope USART2/CMP1, ADC SAMPTR1#40
aq1018 merged 9 commits into
mainfrom
feat/v00x-improvements

Conversation

@aq1018

@aq1018 aq1018 commented May 20, 2026

Copy link
Copy Markdown
Contributor

V00x peripheral data improvements grounded in the CH32V00X RM:

  • Add PWR, WWDG, IWDG, EXTEN (universal across V00x; RM ch.2/4/5/20)
  • Add TIM3 (SLTM) for V006/V007/M007 (RM ch.13)
  • Add TKEY for V006/V007/M007 — separate peripheral at the ADC base, exposes only tkey_chg/tkey_dischg/tkey_dr (mode enable via ADC.CTLR1)
  • Add undocumented ADC SAMPTR1 register so IN10 (VCAL) sample time is configurable
  • Scope USART2 to V005/V006/V007/M007 (V002/V004 don't have it)
  • Scope OPA CMP1 pins to V007/M007 (V005/V006 have OPA + CMP2 only)

@aq1018
aq1018 force-pushed the feat/v00x-improvements branch from fe10eb4 to 23435f1 Compare May 20, 2026 04:42
@aq1018
aq1018 force-pushed the feat/v00x-improvements branch from 23435f1 to 7deb4bb Compare May 20, 2026 06:10
@aq1018
aq1018 merged commit 7dd74c1 into main May 20, 2026
1 check passed
@aq1018
aq1018 deleted the feat/v00x-improvements branch May 20, 2026 06:15
@aq1018 aq1018 changed the title v00x: add ADC SAMPTR1/IN10 (VCAL) and TIM3 (SLTM) v00x: add PWR/WWDG/IWDG/EXTEN/TIM3/TKEY, scope USART2/CMP1, ADC SAMPTR1 May 20, 2026
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.

1 participant