Académique Documents
Professionnel Documents
Culture Documents
Digital I/O R1 CA CC
R1 D1 D4 D11 D12 A A
R2
B
R3
C F B
Digital I/O R4
R2 D2 D5 D7 D8 D
PICmicro R5 G
E
F R6 E
Digital I/O R7
C
R3 D3 D6 D9 D10 G
D
A R1 A A A A A A A
R2
B
R3 F B F B F B F B F B F B F B
PICmicro C
R4
D
R5 G G G G G G G
E
E E E E E E E
F R6 C C C C C C C
G R7 D D D D D D D
74F573
Q1
R8 Q2
R9 Q3
R10
Q4
R11 Q5
R12
Q6
R13
Q7
R14
LE OE
Another technique is to use an octal latch, such as + R2) x C. R2 should be chosen to limit the turn-on rate
74F573, to be the digit selection. See Figure 8. of M1. R1 is required to limit the turn off rate. C1 is
To use the octal latch described in Figure 8, the latch added to further reduce the turn off rate and reduce the
must be loaded with the correct digit. The procedure is variation due to different gate capacitance. For
as follows: example:
R = R1 + R2 = 2000
VT = 2
T = 365µs
FIGURE 9: OPTO-ISOLATOR
CONTROLLED LOAD W/
AUTOMATIC TURN OFF
VSUPPLY
R1
M1
R2
D1 Q1 C1 Load
DS00234A-page 6
Segment Control R1 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12
R2 A A A A A A A A A A A A
R3
F B F B F B F B F B F B F B F B F B F B F B F B
R4
R5 G G G G G G G G G G G G
R6 E E E E E E E E E E E E
C C C C C C C C C C C C
R7 D D D D D D D D D D D D
DA DB DA DC DA DD DB DC DB DD DC DD
DB DA DC DA DD DA DC DB DD DB DD DC
Digital I/O
DA
R8
DB
12 DIGIT MULTIPLEXING WITH OPTO-ISOLATORS
R9
DC
R10
DD
R11
PICmicro R1
A A A A A A A A
R2
B
R3 B B B B B B B
C F F F F F F F
R4
D G
R5 G G G G G G
E E E E E E E E
R6 C C C C C C C
F
R7 D D D D D D D
G
PICmicro
Digital I/O Q1
R8
Digital I/O Q2
R9
Digital I/O Q3
R10
Digital I/O Q4
R11 Q5
Digital I/O
R12
Digital I/O Q6
R13
Digital I/O Q7
R14
PICmicro
Digital Output E
Digital I/O R/W
Digital I/O RS
Digital I/O D0
Digital I/O D1 LCD
Digital I/O D2
Digital I/O D3
Digital I/O D4
Digital I/O D5
Digital I/O D6
Digital I/O D7
74F573
LE OE
Outputs
74F573
OE LE
Inputs
VDD CONCLUSION
This document is filled with ideas that have been
PICmicro R1
successfully used to reduce cost or simplify designs.
R2 This is not a comprehensive list of cost saving ideas
OSC1
and these ideas may not work for all situations.
C1
Hopefully, these ideas have sparked your imagination
to the possibilities of alternate ways to use a PICmicro
GPIO microcontroller.
REFERENCE DOCUMENTS
Complementary LED Drive Technical Brief, TB029;
Microchip Technology Inc.
RC Watchdog Wake-up
The watchdog timer is very useful for protecting your
code or waking the microcontroller up out of SLEEP
mode. However, for some applications it consumes too
much power. If your microcontroller has a comparator,
use a resistor and capacitor on the comparator to
provide the wake-up. Simply wire the R and C to the
comparator input, program the threshold voltage, and
enable the interrupt. Then, zero the capacitor and go
into SLEEP mode. The capacitor will charge, reach the
threshold, cause an interrupt, and wake-up your
program. See procedure steps below. The RC network
can be designed to use very little current.
WAKE-UP PROCEDURE
1. Set comparator input to a digital output.
2. Write a zero to clear the capacitor.
3. Set the comparator input back to a comparator
input.
4. Read the comparator state flag to clear it.
5. Enable the comparator interrupt.
6. Set to SLEEP.
• 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.
03/25/03