This Design Uses A One Pin For Analog Input Microcontroller Greensboro NC

The following contains computer software information you should know about a design that uses one pin for analog input microcontroller. Read on if you or a loved one is interested in computer electronics and staying computer savvy in Greensboro.

Local Companies

A 1 Rentals Inc
(336) 275-9788
510 N Elm St
Greensboro, NC
Gutter Worx
(336) 375-7200
4909 Troxler Rd
Greensboro, NC
Raynors Construction Co
(336) 272-4874
123 E Lee St
Greensboro, NC
Emerald Millwork
(336) 854-2191
4319 Waterleaf Ct
Greensboro, NC
Gutter Worx
(336) 315-1888
901 Norwalk St
Greensboro, NC
Pool Builders Supply
(336) 275-7747
3105 S Elm St
Greensboro, NC
Bruce and Jenkins Lumber Company Inc
(336) 275-9796
2125 Enterprise Rd
Greensboro, NC
Turn Bull Lumber Com
(336) 272-5200
1027 Arnold St
Greensboro, NC
A B W Lumber Industries Inc
(336) 286-9270
1907 Dickens Dr
Greensboro, NC
Fortress Wood Products Inc
(336) 854-9585
1 Metals Dr
Greensboro, NC

provided by: EDN

Although microcontroller manufacturers try to offer designers products that almost exactly fit the needs of their designs, another output pin is often necessary. This situation is particularly true in small designs using microcontrollers with eight pins or fewer. This Design Idea employs the Microchip (www.microchip.com) PIC10F222. The PIC10F222 comes in an SOT23-6 package and offers three I/O pins, one input pin, RAM, flash, and an ADC module. You must program these tiny microcontrollers, just as you do with their big brothers. To program these microcontrollers, you need the MCLR, two I/O pins (data and clock), and supply pins (VCC and GND). To enter programming mode, you need MCLR and supply. Because the microcontroller must differentiate between normal and programming mode, the MCLR pin usually reaches a voltage of approximately 12V to enter programming mode. Thereafter, in normal operation, you can configure the MCLR pin either as an external reset or as an input-only pin.

This design uses one pin for analog input and the other three as outputs. The design thus requires an additional output. For that reason, this circuit uses the MCLR pin as an output. For simplicity, Figure 1 shows only the GP3/MCLR output circuit. To allow the GP3/MCLR pin to act as an output, the circuit uses the configurable weak pullups that this microcontroller offers. The selected function for the GP3/MCLR pin is input, and you must enable the global weak-pullup bit in the microcontroller?s configuration word. Although you cannot individually configure weak pullups, this inability is not a problem because you configure all other pins as analog inputs or digital outputs.

The weak pullups have a resistance of 20 to 150 k?, depending on supply voltages, so this circuit uses transistor Q1 to drive higher loads, such as the depicted LED. R1 drives the transistor off when you deactivate the pullups. Because the transistor?s gate is resistance-driven, the maximum toggle frequency depends on the chosen transistor. The worst-case scenario occurs when you need to switch off Q1. R1 and Q1?s gate-to-source capacitance determine the transistor?s switch-off time.

Programming voltages for the MCLR pin are about 12V. Therefore, Q1 must withstand a gate-to-source voltage higher than this value. This design uses a MOSFET having a ±18V withstand voltage. For this reason, you should not use digital MOSFETs. You can use this circuit with other PIC microcontrollers and with most RS08KA family microcontrollers from Freescale.



author: Antonio Muñoz, Laboratorios Avanzados de Investigación, Huesca, Spain, and Pilar Molina, Universidad de Zaragoza, Zaragoza, Spain

EDN. Copyright © 2008 Reed Business Information, a division of Reed Elsevier Inc. All rights reserved.

Featured Local Company

Pool Builders Supply

(336) 275-7747
3105 S Elm St
Greensboro, NC