1818281+1818282 Microchip Technology, 1818281+1818282 Datasheet - Page 43

no-image

1818281+1818282

Manufacturer Part Number
1818281+1818282
Description
EDF / AMICUS18 + SHIELD, BUNDLE
Manufacturer
Microchip Technology
Type
Development Boardr

Specifications of 1818281+1818282

Kit Contents
Board
Svhc
No SVHC (15-Dec-2010)
Kit Features
Nine 10-bit ADC Inputs, Two 10-bit PWM Outputs, Two Comparators
Mcu Supported Families
PIC18F25K20
Silicon Manufacturer
Microchip
Core Architecture
PIC
Core Sub-architecture
PIC18
Silicon Core Number
PIC18F
Silicon Family Name
PIC18FxxKxx
Digital Meets Analogue
Sometimes the microcontroller needs to interface back to the real world with an analogue result. This is
termed Digital to Analogue Conversion, or DAC. This can be performed several ways; by using a dedi-
cated DAC peripheral device, by using a digital resistor device, or by using Pulse Width Modulation
(PWM). PWM is the method that is built into the Amicus18’s microcontroller, and requires no specialised
devices to be used, so we’ll discuss this method here.
Pulse Width Modulation (PWM)
Pulse Width Modulation fakes a voltage by producing a series of pulses at regular intervals, and varying
the width of the pulses. The resulting average voltage is the result of the pulse widths. The Amicus18’s
microcontroller can produce a high voltage of 3.3 Volts and low of 0 Volts.
In the illustration below, the pin is pulsed high for the same length of time as it is pulsed low. The time
the pin is high (called the pulsewidth) is about half the total time it takes to go from low to high to low
again. This ratio is called the duty cycle. When the duty cycle is 50%, the average voltage is about half
the total voltage. i.e. 1.6 Volts.
If the duty cycle is made less than 50% by pulsing on for a shorter amount of time, a lower effective
voltage is produced:
If the duty cycle is made greater than 50% by pulsing on for a longer amount of time, a higher effective
voltage is produced:
In order to create a constant voltage instead of a series of pulses, we need a simple RC low pass filter.
As it’s name suggests this consists of a Resistor and a Capacitor.
A filter is a circuit that allows voltage changes of only a certain frequency range to pass. For example, a
low-pass filter would block frequencies above a certain range. This means that if the voltage is changing
more than a certain number of times per second, these changes would not make it past the filter, and
only an average voltage would be seen.
Crownhill AssociatesLimited 2009 - All Rights Reserved
Amicus18 Companion Shield
Version 1.0
Time
Time
Time
42
Effective Voltage
Effective Voltage
Effective Voltage
06-10-2009

Related parts for 1818281+1818282