Schematic | Circuit guide | Manual Wiring diagram | Electronic
Showing posts with label pic. Show all posts
Showing posts with label pic. Show all posts

USB Powered PIC Programmer

Posted by Unknown Thursday, October 3, 2013 0 comments
This simple circuit can be used to program the PIC16F84 and similar "flash memory" type parts. It uses a cheap 555 timer IC to generate the programming voltage from a +5V rail, allowing the circuit to be powered from a computer’s USB port. The 555 timer (IC1) is configured as a free-running oscillator, with a frequency of about 6.5kHz. The output of the timer drives four 100nF capacitors and 1N4148 diodes wir-ed in a Cockroft-Walton voltage multiplier configuration.

USB-Powered PIC Programmer circuit schematic

The output of the multiplier is switched through to the MCLR/Vpp pin of the PIC during programming via a 4N28 optocoupler. Diodes ZD1 and D5 between the MCLR/Vpp pin and ground clamp the output of the multiplier to about 13.6V, ensuring that the maximum input voltage (Vihh) of the PIC is not exceeded. A 100kΩ resistor pulls the pin down to a valid logic low level (Vil) when the optocoupler is not conducting. The circuit is compatible with the popular "JDM" programmer, so can be used with supporting software such as "ICProg" (see http://www.ic-prog.com).

PIC Digital Clock Timer

Posted by Unknown Tuesday, September 3, 2013 0 comments
his clock timer uses a PIC16F628 microcontroller to display 3 and 1/2 digit time and control an external load. The clock includes a calendar with leap year and optional daylight savings adjustments. The timer output can be set from 1 to 59 minutes and manually switched on and off. The clock also has a correction feature that allows an additional second to be added every so many hours to compensate for a slightly slow running oscillator.  The oscillator uses a common 32.768 KHz watch crystal and the frequency can be adjusted slightly with the 24pF capacitor on the right side of the crystal.

There are 7 displays that advance each time the D switch is toggled. To make adjustments, set the RA5 switch to the "B" position and then toggle the E and F switches to advance the data in the hours or minutes digits. Then toggle the "D" switch to move to the next data. After the 7th display, it will go back to the top and display the current time. Or, just press the time switch C to get to the top at anytime. When done setting everything up, set the RA5 switch to the "A" position so the data cannot be accendentally changed. You can still view everything with the "D" advance key, but the E an F switches will just turn on or off the alarm at RB7. I use it with an external transistor to switch on and off a radio.

PIC Digital Clock Timer Circuit Diagram


The Daylight savings setting (in the 6th display in the minutes digits) is used to enable daylight savings time adjustments, one hour ahead on the 2nd sunday in March, and one hour behind on the first sunday in November. The entry will be either 0, 1, or 3.

0 = Daylight savings time disabled (default).
1 = Savings time enabled and current time is standard time.
3 = Savings time enabled and current time is daylight savings time.

The last 2 entries on the list (Year and Correction) is for the current year (1 to 4) (4 = Leapyear) so todays setting (2006) will be 2 since leapyear will be on year 4 which is 2 years from now. The correction setting will add a second every so many hours for fine adjustment to the oscillator frequency. My setting is 18 which adds a second every 18 hours. Its pretty accurate and only loses 3 seconds a month. You probably want to run it for a couple weeks to figure out what correction is needed for the crystal you have.

Switch functions:

RA0         (C switch)         =  Display Time
RA1         (D switch)         =  Advance to next data (alarm, calendar, etc)
RA2, RA3    (E and F switch)   =  Advance hours and minutes (in setup mode).
RA2, RA3    (E and F switch)   =  Toggle alarm output on/off (in run mode)
RA5 in the B position (open) =  Setup Mode

Download asm file

Universal PIC Programmer Circuit

Posted by Unknown Friday, April 12, 2013 0 comments
Universal PIC Programmer Circuit
The series of Universal PIC Programmer can be used with software IC-Prog 1:05. Universal PIC programmer circuit is very simple with BC337 transistor 1 fruit, 2 pieces of IC regulators 7805 and 7808 as well as supporting passive components. Universal PIC Programmer series can be supplied with 2 pieces of 9V batteries.

For communication with computer circuit Universal PIC Programmer uses a serial RS232 port of computer. Then for the PIC to be programmed provided 5 lanes for the PIC that is DATA, Clock, Vpp, Vcc and Ground. For more details, can be directly seen in the figure below.

Universal PIC Programmer Circuit diaggram
Universal PIC programmer circuit diagram

The series of Universal PIC Programmer can be used to program the PIC family of 16F84A series, 12C509, 16C765 and the other. Hopefully this series of Universal PIC Programmer can help for friends who want to make PIC programmer.