From 38dea7ead4e1747034a96505e8281e31dbd8c65f Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 9 Mar 2025 08:28:24 -0700 Subject: [PATCH] Added comments on ch32v003 pins for ADC along with updated date/top info. --- src/ADC/ADC.c | 27 ++++++++++++++++++++++++--- src/ADC/ADC.h | 4 ++-- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/src/ADC/ADC.c b/src/ADC/ADC.c index 364251c..78cd81c 100644 --- a/src/ADC/ADC.c +++ b/src/ADC/ADC.c @@ -1,8 +1,29 @@ /* - * Author: username - * Date: 2024 + * Author: Jake Goodwin + * Date: 2025 * filename: ADC.c - * description: module_purpose + * description: + */ + +/*DEVNOTES: + * The CH32v003 micro-controllers have 8channels for the ADC that are + * external and 2 internal channels. + * + * The channels/inputs are labeled as AIN0-AIN7 + */ + +/*CH32v003 ADC TO PINs: + * A0 --> PA2 + * A1 --> PA1 + * A2 --> PC2 + * A3 --> PD2 + * A4 --> PD3 + * A5 --> PD5 + * A6 --> PD6 + * A7 --> PD4 + * + * Because they don't exactly match up, I'll need to write up my own + * way to do the mapping. */ #include "ADC.h" diff --git a/src/ADC/ADC.h b/src/ADC/ADC.h index bc5c74a..7791664 100644 --- a/src/ADC/ADC.h +++ b/src/ADC/ADC.h @@ -1,8 +1,8 @@ /** * @brief Interface to the AVR ADC hardware. * @details This file is... - * @author Jake G - * @date 2024 + * @author Jake Goodwin + * @date 2025 * @copyright None * @file ADC.h */