Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: UIT2_MovingAverage UIT2_AllpassReverb UIT2_CombReverb UIT2_FIR_LPF_Symmetry ... more
Diff: DAC_MCP4922.hpp
- Revision:
- 8:f933fcd30408
- Parent:
- 3:77bc5550dc10
- Child:
- 14:6c60601c1834
--- a/DAC_MCP4922.hpp Tue Nov 11 10:04:00 2014 +0000 +++ b/DAC_MCP4922.hpp Wed Nov 12 08:56:31 2014 +0000 @@ -5,10 +5,16 @@ // Default pin assign // D11 SPI Master Out Slave In // D13 SPI Serial Clock -// D12 SPI Slave Select -// D10 to MCP4922 LDAC pin +// D10 SPI Slave Select +// D12 to MCP4922 LDAC pin // -// 2014/10/23, Copyright (c) 2014 MIKAMI, Naoki +// Argument cs in constructor must be output of TIM4, +// i.e. D10(PB_6), PB_7, D15(PB_8), or D14(PB_9) +// +// Clock for Switched-capacitor filter: +// Output pin: D9 (PC7) ------ TIM3 CH2 +// +// 2014/11/12, Copyright (c) 2014 MIKAMI, Naoki //------------------------------------------------------ #ifndef DAC_MCP4922_HPP @@ -44,6 +50,10 @@ // Check busy bool IsBusy() { return (mySpi_->SR & SPI_FLAG_BSY) == SPI_FLAG_BSY; } + + // Set clock for switched-capacitor filter + void ScfClockTim3(uint32_t clock); + private: uint16_t wcr_; // write command register