ADC 5

PIC18, MPLAB X IDE, XC8, ADC, rotation_sensor

PIC18, MPLAB X IDE, XC8, ADC, rotation_sensor 4MHz frequency 사용 - Clock : Fosc/4 - AN0 : adc port - 10bit value 0. 참고 사항https://www.waveshare.com/wiki/Open18F4520 [ ] https://www.microchip.com/wwwproducts/en/PIC18F4520[ datasheet ] http://ww1.microchip.com/downloads/en/devicedoc/39631a.pdf 1. HW 연결 2. 소스 설명full 소스는 아래 github를 통해 확인하세요. ADCON2 = 0x14; // ADFM ? ACQT2 ACQT1 ACQT0 ADCS2 ADCS1 ADCS0..

PIC18 2018.09.14

STM32F1, STMCubeMX, ADC, Internal Temperature Sensor

STM32F1, STMCubeMX, ADC, Internal Temperature Sensor STM32F1 내부에 있는 온도 센서를 ADC합니다. 0. 참고 사이트 https://electronics.stackexchange.com/questions/324321/reading-internal-temperature-sensor-stm32 1. ADC1 > Temperature Sensor Channel 2. Configuration > ADC1 3. Continous Conversion Mode > Enabled 4. ADC 계산법/* Reference Manual & Datasheet Temperature (in 'C) = {(V25 - VSENSE) / Avg_Slope} + 25. Where, V2..

STM32F1 2018.08.03