Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Robotics Chat


Robotics Chat Specific to discussions about robots and the making of.

Reply
 
Thread Tools Display Modes
Old 5th December 2003, 09:27 AM   (permalink)
Default PIC16f628 programming

pic16f628 is a better pic than 16f84a. I allready knew how to program the 16f84a and i know that the programming of all pic 16/17 family are all quiet the same....
pls help me on how to use the pwm hardware of the 16f628. a website would be better.... ops:
optionblue is offline  
Reply With Quote
Old 5th December 2003, 10:34 AM   (permalink)
Default Re: PIC16f628 programming

Quote:
Originally Posted by optionblue
pic16f628 is a better pic than 16f84a. I allready knew how to program the 16f84a and i know that the programming of all pic 16/17 family are all quiet the same....
pls help me on how to use the pwm hardware of the 16f628. a website would be better.... ops:
Have a look at my pic tutorials at http://www.winpicprog.co.uk, I have an example of how to use PWM on a 16F876, the 628 is similar to use, but only has one PWM (the 876 has two).
Nigel Goodwin is offline  
Reply With Quote
Old 6th December 2003, 03:48 AM   (permalink)
Default Re: PIC16f628 programming

Quote:
Originally Posted by Nigel Goodwin
Quote:
Originally Posted by optionblue
pic16f628 is a better pic than 16f84a. I allready knew how to program the 16f84a and i know that the programming of all pic 16/17 family are all quiet the same....
pls help me on how to use the pwm hardware of the 16f628. a website would be better.... ops:
Have a look at my pic tutorials at http://www.winpicprog.co.uk, I have an example of how to use PWM on a 16F876, the 628 is similar to use, but only has one PWM (the 876 has two).
Hi! I looked at your site and saw that you had hardware schematics. I was wondering, will that programmer work with a laptop? Also, does it have to have a 12V ac source, can it be 12V dc from a powersupply? Also, does the circuit use the serial port or the parallel? again also, what is the B80C800? is it required if I use a DC power supply?
__________________
The best way to learn is by blowin\' stuff up and rebuildin\' it
azari is offline  
Reply With Quote
Old 6th December 2003, 08:44 AM   (permalink)
Default Re: PIC16f628 programming

Quote:
Originally Posted by azari
Hi! I looked at your site and saw that you had hardware schematics. I was wondering, will that programmer work with a laptop? Also, does it have to have a 12V ac source, can it be 12V dc from a powersupply? Also, does the circuit use the serial port or the parallel? again also, what is the B80C800? is it required if I use a DC power supply?
The circuit is just that for a P16PRO40 (I added it to my site because people kept asking where they could get it). Laptops do tend to give problems, often the parallel (and serial) ports are non-standard - but there are many people with laptops using it without any problems.

As for the power supply, it gives different ranges for AC or DC operation, 12V DC wouldn't be enough, and the spec calls for at least 16V DC. I ran mine for many years from two 9V batteries in series.

The P16PRO40 is a parallel port programmer, my software only supports parallel port programmers - the common serial port ones tend to be a lot more unreliable, usually relying on the port operating beyond it's specs.

The B80C800 is just a bridge rectifier, if you are using a DC supply you could leave it out and apply DC directly to C3 - but DC will pass through the bridge anyway, and prevents it been connected the wrong way.
Nigel Goodwin is offline  
Reply With Quote
Old 10th December 2003, 05:40 AM   (permalink)
Default usart and pwm in pic16f628

i think the usart and the pwm hardwares are the most difficult part of the pic16f628...... anyone pls explain. :cry: :cry: :cry: ...
optionblue is offline  
Reply With Quote
Old 10th December 2003, 12:39 PM   (permalink)
Default

Have you tried the 16f628 datasheet from microchip? Also try the microchip midrange reference manual and I believe they have a appnote titled "Using the CCP module". These are available from www.microchip.com
Eclipsed is offline  
Reply With Quote
Old 24th December 2003, 03:21 AM   (permalink)
Default

hi, im new to PIC programming, just doing some reasearch ATM,
why do you need special software to program pic's?

and at your website:
http://www.winpicprog.co.uk

you are programming, im assuming you use the rs232/serial board for that?

thanks
supagu is offline  
Reply With Quote
Old 24th December 2003, 08:42 AM   (permalink)
Default

Quote:
Originally Posted by supagu
hi, im new to PIC programming, just doing some reasearch ATM,
why do you need special software to program pic's?

and at your website:
http://www.winpicprog.co.uk

you are programming, im assuming you use the rs232/serial board for that?

thanks
No, you need a PIC programmer to get the program into the chip - for some PIC's (16F87x etc.) you can load a 'boot loader' which lets you program them via an RS232 link - but you still need a PIC programmer to install the 'boot loader' in the first place.

A new PIC is a totally blank device - just like buying a new hard drive for your computer, you have to do various things to it to make it work.
Nigel Goodwin is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 10:19 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.