analog to digital conversion and pulse width modulation
play

Analog to Digital Conversion and Pulse Width Modulation ECE Senior - PowerPoint PPT Presentation

Analog to Digital Conversion and Pulse Width Modulation ECE Senior Design 28 February 2017 Analog to Digital Conversion 2 n -1 111 = 110 2 101 10-bit Conversion and V ref = 5V Digital Value 100 011 5 5


  1. Analog to Digital Conversion and Pulse Width Modulation ECE Senior Design 28 February 2017

  2. Analog to Digital Conversion 2 n -1 111 𝑀𝑇𝑐 = πΊπ‘‡π‘Š 110 2 π‘œ 101 10-bit Conversion and V ref = 5V Digital Value 100 011 5 5 010 𝑀𝑇𝑐 = 2 10 = 1024 = 4.9π‘›π‘Š/𝑐𝑗𝑒 001 000 0 V DD /2 n V DD Analog Voltage

  3. PIC 16F18324 A/D Converter β€’ 10-bit Converter β€’ 11 External Channels Available β€’ External V REF+ and V REF- Available β€’ Auto Conversion Trigger

  4. 10-bit A/D Result Format

  5. ADC Clock Selection 5𝑣𝑇

  6. ANSELA: PORTA Analog Select

  7. ADCON0

  8. ADCON1

  9. Pulse Width Modulation (PWM) 1 Cycle 50% Vdd Voltage Effective Voltage 50% Duty Cycle Voltage = Vdd*0.50 0 Time

  10. PWM 20% Duty Cycle 1 Cycle 20% Vdd Voltage Effective Voltage 20% Duty Cycle Voltage = Vdd*0.20 0 Time

  11. PWM 80% Duty Cycle 1 Cycle 80% Vdd Effective Voltage 80% Duty Cycle Voltage Voltage = Vdd*0.80 0 Time

  12. PWM Sine Generation

  13. CCP & PWM β€’ 2 CCP Modules β€’ 2 PWM Modules β€’ Timer 2 Sets Freq

  14. Dedicated PWM Module PWM Output on PPS Registers: β€’ TMR2 β€’ PR2 β€’ PWMxCON β€’ PWMxDCH β€’ PWMxDCL

  15. PWMxCON

  16. T2CON

  17. Peripheral Pin Select Inputs: Outputs: Each Peripheral Has A PPS Register Each I/O Pin Has A PPS Register XXX – Specifies the Peripheral Rxy – Specifies the Pin

  18. RxyPPS Output Select

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend