pwm 5

PIC18, MPLAB X IDE, XC8, PWM, buzzer

PIC18, MPLAB X IDE, XC8, PWM, buzzer 4MHz clock을 통해 Timer2에 4KHz pwm 을 테스트하였습니다. 0. 참고 사항[ ] https://openlabpro.com/guide/pulse-width-modulation-using-pic18f4550/ [ ] http://www.micro-examples.com/public/microex-navig/doc/097-pwm-calculator.html[ ] https://www.microchip.com/wwwproducts/en/PIC18F4520[ datasheet ] http://ww1.microchip.com/downloads/en/devicedoc/39631a.pdf 1. HW 연결 2. 소스 설명full 소스는..

PIC18 2018.09.13

ESP32, pwm, ledc

ESP32, pwm, ledc 기능적으로 fade up, fade down 기능을 제공하며fade up/down 동작 시간에 block 상태 또는 unblock 상태 설정도 가능합니다. LEDC High and Low Speed Mode Out of the total 8 timers and 16 channels available in the LED PWM Controller, half of them are dedicated to operate in the high speed mode and the other half in the low speed mode. Selection of the low or high speed “capable” timer or the channel is done with para..

ESP32 2018.08.23

STM32F1, STMCubeMX, PWM, Digital piranha LED

STM32F1, STMCubeMX, PWM, Digital piranha LED 0. 참고 자료테스트를 진행한 모듈의 스펙 중에 PWM 관련한 자료가 없어서 임의로 동작시켰습니다. 1. 모듈 2. HW 구성3V3 ~ 5V 로 구동됨 3. Timer EnableClock Source : Internal ClockChannel1 : PWM Generation CH1 4. RCC > HSE > Crystal/Ceramic Resonator 5. Clock Configuration > 72MHz 6. Configuration > TIM 7. Parameter SettingsPrescaler : 72-1Counter Period : 100 /* 0.1ms 1) 72MHz System Clock, Prescaler..

STM32F1 2018.08.06

STM32F1, STMCubeMX, GPIO, PWM, Digital Buzzer

STM32F1, STMCubeMX, GPIO, PWM, Digital Buzzer 0. 참고 자료해당 모듈은 기본적으로 On/Off 기능만 있지만 PWM 기능을 이용해도 동작하는지 테스트를 진행하였습니다.PWM을 사용하면 duty 100%가 아니면 부저의 음질이 좋지 않은 것으로 확인되었습니다. 1. 모듈 2. HW 구성스펙상으로는 5V이지만 3V3에서도 동작하네요. 3. Timer Enable & GPIO EnableTimer를 이용하여 PWM 방식으로 제어할 것인지 아니면 GPIO 방식으로 제어할 것인지 애매해서 2가지 방법으로 테스트하였습니다. 4. RCC > HSE > Crystal/Ceramic Resonator 5. Clock Configuration > 72MHz 6. Configuratio..

STM32F1 2018.08.06