Difference between revisions of "CH32V307"

From Stm32World Wiki
Jump to navigation Jump to search
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:CH32]][[Category:RISC-V]][[Category:CH32V307]]{{metadesc|CH32V307xx RISC-V MCU}}
+
[[Category:CH32]][[Category:RISC-V]][[Category:CH32V307]][[Category:MCU]]{{metadesc|CH32V307xx RISC-V MCU documentation}}
  
== Miscellaneous Links ==
+
== Development Notes ==
 +
* [[CH32V307-DAC | Digital-to-Analog Converter]]
 +
* [[CH32V307-ADC | Analog-to-Digital Converter]]
 +
* [[CH32V307-Execution_Speed | Execution Speed]]
 +
 
 +
== External Links ==
  
 
* [https://ipfs.subutai.io/ipfs/QmUu3BmKAuAH8z5S1dKns7gamu3eQ1LqH4wS9mp8udep23/CH32V20x_30xDS0.PDF CH32V20x/CH32V30x Datasheet]
 
* [https://ipfs.subutai.io/ipfs/QmUu3BmKAuAH8z5S1dKns7gamu3eQ1LqH4wS9mp8udep23/CH32V20x_30xDS0.PDF CH32V20x/CH32V30x Datasheet]
Line 8: Line 13:
 
* [http://wch-ic.com/downloads/file/262.html?time=2022-06-08%2000:02:47&code=WzZMnejfNpLPWjULTKIJgnHgBBt3toKKi1ZTdFxZ CH549 Datasheet]
 
* [http://wch-ic.com/downloads/file/262.html?time=2022-06-08%2000:02:47&code=WzZMnejfNpLPWjULTKIJgnHgBBt3toKKi1ZTdFxZ CH549 Datasheet]
 
* [https://github.com/openwch?tab=repositories OpenWCH]
 
* [https://github.com/openwch?tab=repositories OpenWCH]
 
== Development Notes ==
 
=== DAC ===
 
 
* The output impedance is a concern. Without the Output Buffer enabled, >100kohm impedance for the load is needed. Even WITH Output Buffer enabled, a 1kohm load is not really possible, both high and low end of range is not reached, which is a bit strange. 10kohm hasn't been tested yet, but datasheet indicates that a 5kohm load should be fine.
 
 
* For fastest write to DAC output, this is used;
 
<nowiki>
 
DAC->RD12BDHR = dac_value1 + (dac_value2 << 16);
 
</nowiki>
 
 
* Simple initialization is;
 
<nowiki>
 
    RCC_APB1PeriphClockCmd(RCC_APB1Periph_DAC, ENABLE );
 
 
    DAC_InitTypeDef DAC_InitType={0};
 
    DAC_InitType.DAC_Trigger=DAC_Trigger_None;
 
    DAC_InitType.DAC_WaveGeneration=DAC_WaveGeneration_None;
 
    DAC_InitType.DAC_OutputBuffer=DAC_OutputBuffer_Enable;
 
    DAC_Init(DAC_Channel_1,&DAC_InitType);
 
    DAC_Init(DAC_Channel_2,&DAC_InitType);
 
 
    DAC_Cmd(DAC_Channel_1, ENABLE);
 
    DAC_Cmd(DAC_Channel_2, ENABLE);
 
</nowiki>
 

Latest revision as of 02:18, 12 July 2022