Added comments on ch32v003 pins for ADC along with updated date/top info.
This commit is contained in:
parent
a076ab8b77
commit
38dea7ead4
2 changed files with 26 additions and 5 deletions
|
@ -1,8 +1,29 @@
|
||||||
/*
|
/*
|
||||||
* Author: username
|
* Author: Jake Goodwin
|
||||||
* Date: 2024
|
* Date: 2025
|
||||||
* filename: ADC.c
|
* 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"
|
#include "ADC.h"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
/**
|
/**
|
||||||
* @brief Interface to the AVR ADC hardware.
|
* @brief Interface to the AVR ADC hardware.
|
||||||
* @details This file is...
|
* @details This file is...
|
||||||
* @author Jake G
|
* @author Jake Goodwin
|
||||||
* @date 2024
|
* @date 2025
|
||||||
* @copyright None
|
* @copyright None
|
||||||
* @file ADC.h
|
* @file ADC.h
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue