Professional Documents
Culture Documents
Iontophoresis Implementation Using A Low-Cost Microcontroller
Iontophoresis Implementation Using A Low-Cost Microcontroller
Start
Hardware Initialization
Y Skip Pulse
Output Over
Voltage?
Timer ISR
N
Start
Output Over Y
Current?
Pulse MOSFET Y
4 Times
Shutdown
Increment Software
Counter Time the
Dose
Has Dose
Been N
Reached?
Y
Set Dose Complete
Shutdown Flag
END ISR
L1
D1
A B A K
C1
Electrode
D
A
A
R4
C2
Q1
C3
G
2 1
B
S
B
R7
C2
2 1
A
2
C4
R5
A
Gnd1
1
R8
B
D2
2
1
C6
R6
K
B
VDD
1
Gnd5
1
Gnd4
PIC12F683
A
C1 1 8
VDD VSS
B
2 7
GP5/T1CKl/OSC1 GP0/AN0/C1N+/ICSPDAT
1
3
Vsup
6
GP4/AN3/T1G/OSC2 GP1/AN1/C1N-/ICSPCLK
4 5
2
2
2
GP3/MCLR/VPP GP2/AN2/C1OUT/CCP1
R1
R2
K 1
1
U3
U4
VDD1
1
A
R3
Gnd
1
U7 C5
B
2 4
Gnd2
1 3
Gnd3
In the circuit schematic (Figure 2), Q1 is the main The design also includes two LEDs for the user
switching transistor. The MOSFET VDS breakdown and interface. There is a start button, which is connected to
the breakdown voltage of D1 should be greater than the Reset of the part.
the maximum desired voltage output of the circuit.
When the microcontroller detects that the output
current has dropped below the required level, it pulses
the MOSFET four times in rapid succession to boost
the voltage output. Four pulses are used to generate
more current flow and to speed up the rise time under
load. Alternately, the PWM can be used to drive the
MOSFET which allows higher output from the boost
circuit. R6/C6 is the current sense network.
The PIC12F683 was selected as the microcontroller for
the device because of its small size, low-cost, internal
analog-to-digital converter, fixed voltage reference,
integrated comparator, PWM, hardware timer, and
internal EEPROM. The fixed voltage reference
eliminates the need for a regulator or an external
reference, and keeps the design to an 8-pin device to
lower cost.
Test Results
During testing, the following traces were taken:
FIGURE 5: REGULATED OUTPUT AT 20K LOAD (AC COUPLED TO SEE THE RIPPLE)
REFERENCES
AN1114, Switch Mode Power Supply (SMPS)
Topologies.
• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
• Microchip is willing to work with the customer who is concerned about the integrity of their code.
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
ISBN: 978-1-60932-052-2
Microchip received ISO/TS-16949:2002 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
01/05/10