Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 18th January 2008, 01:36 PM   (permalink)
Lightbulb please kick start me :-)

I've just received my very own PicKit 2 programmer and am dying to see something working. so lets say flashing leds just to be original lol
can somebody post or link me to the program needed and the circuit diagram I intend using the 16F88, does the pic have to be totally isolated from the circuit when programed ?
__________________
I AM the exeption that disproves the rule in many ways but the rules still apply (unfortunately)

my site:www.simons-photography.com
http://rushdenrotaract.org.uk
see also
http://www.bigstockphoto.com/account...fid=m2URATYch5
http://www.redbubble.com/people/simonsphotography
Thunderchild is offline   Reply With Quote
Old 18th January 2008, 03:03 PM   (permalink)
Default

Hi,
I just got mine too 1 month + ago.
Just check the datasheet of PICKit2 from Microchip's website. The connections of ICSP is in it. For the program, as usual
http://winpicprog.co.uk
__________________
Superman returns..
bananasiong is offline   Reply With Quote
Old 18th January 2008, 03:07 PM   (permalink)
Default

yea I saw nigels tutorial and think I might try following it through but I only have 16F88 and 18F1220 and 18F1230 pics so was wondering if the programs will run ok on the 16F88
__________________
I AM the exeption that disproves the rule in many ways but the rules still apply (unfortunately)

my site:www.simons-photography.com
http://rushdenrotaract.org.uk
see also
http://www.bigstockphoto.com/account...fid=m2URATYch5
http://www.redbubble.com/people/simonsphotography
Thunderchild is offline   Reply With Quote
Old 18th January 2008, 03:20 PM   (permalink)
Default

Of course it is working, but you need to do some modification.
Since PIC16F88 is full of features, one configuration setting is not enough, remember to have two configuration for that.
Besides the comparator, it has built in ADC as well. By default, some pins are analog input pins, so you have to make them to be digital I/O first before doing any digital controlling.
__________________
Superman returns..
bananasiong is offline   Reply With Quote
Old 18th January 2008, 03:28 PM   (permalink)
Default

ok perhaps I just make myself a new email address and get some more samples orders off right now as I've already ordered the above pics for the next 35 odd days
__________________
I AM the exeption that disproves the rule in many ways but the rules still apply (unfortunately)

my site:www.simons-photography.com
http://rushdenrotaract.org.uk
see also
http://www.bigstockphoto.com/account...fid=m2URATYch5
http://www.redbubble.com/people/simonsphotography
Thunderchild is offline   Reply With Quote
Old 18th January 2008, 03:28 PM   (permalink)
Default

Quote:
Originally Posted by Thunderchild
I've just received my very own PicKit 2 programmer and am dying to see something working. so lets say flashing leds just to be original lol
can somebody post or link me to the program needed and the circuit diagram I intend using the 16F88, does the pic have to be totally isolated from the circuit when programed ?
Go to Wouter's "Blink an LED" site. Quick and easy hex files for many PICs, with circuit diagrams. The source code is in JAL language though. It's a decent language (a little like Pascal), but not officially supported by MPLAB. Hmm... I wonder if I could integrate it... Aha! There's tonight's project.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================

Last edited by futz; 18th January 2008 at 03:32 PM.
futz is online now   Reply With Quote
Old 18th January 2008, 03:48 PM   (permalink)
Default

Quote:
Originally Posted by Thunderchild
ok perhaps I just make myself a new email address and get some more samples orders off right now as I've already ordered the above pics for the next 35 odd days
No, you shouldn't do that.
PIC16F88 is the most powerful 18 pins PIC among the 16F (for me). Just stick with what you have.
__________________
Superman returns..
bananasiong is offline   Reply With Quote
Old 18th January 2008, 03:50 PM   (permalink)
Default

erm yes but I know nothing about programing and need tgo start simple then move on
suppose nigel used what he did for a good reason
__________________
I AM the exeption that disproves the rule in many ways but the rules still apply (unfortunately)

my site:www.simons-photography.com
http://rushdenrotaract.org.uk
see also
http://www.bigstockphoto.com/account...fid=m2URATYch5
http://www.redbubble.com/people/simonsphotography
Thunderchild is offline   Reply With Quote
Old 18th January 2008, 03:59 PM   (permalink)
Default

Quote:
Originally Posted by Thunderchild
erm yes but I know nothing about programing and need tgo start simple then move on
suppose nigel used what he did for a good reason
The other PICs are no more "simple" than the F88. Every model has its own differences you'll need to learn.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================
futz is online now   Reply With Quote
Old 18th January 2008, 04:01 PM   (permalink)
Default

Ok, here you go:
Instead of
Code:
	__config	0xxxxx

	movlw	0x07
	movwf	CMCON
Use
Code:
	__config	_CONFIG1,	0xxxxx
	__config	_CONFIG2,	0xxxxx


	bsf	STATUS,	RP0	;to select bank1
	clrf	ANSEL		;disable the analog inputs
	movlw	0x07
	movwf	CMCON


	bcf	STATUS,	RP0	;select bank0
The xxxx you have to find out yourself from the datasheet.
The rest of them should be the same.
__________________
Superman returns..
bananasiong is offline   Reply With Quote
Old 18th January 2008, 04:28 PM   (permalink)
Default

Quote:
Originally Posted by Thunderchild
erm yes but I know nothing about programing and need tgo start simple then move on
suppose nigel used what he did for a good reason
It was to avoid confusion, and the complications of extra facilities - the 16F88 is fine to use, and only very small changes are required.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 18th January 2008, 04:57 PM   (permalink)
Default

ok so are the edits bananasiong posted suitable the xxxxx what is that that I am looking for ?
__________________
I AM the exeption that disproves the rule in many ways but the rules still apply (unfortunately)

my site:www.simons-photography.com
http://rushdenrotaract.org.uk
see also
http://www.bigstockphoto.com/account...fid=m2URATYch5
http://www.redbubble.com/people/simonsphotography
Thunderchild is offline   Reply With Quote
Old 18th January 2008, 05:50 PM   (permalink)
Default

Quote:
Originally Posted by Thunderchild
ok so are the edits bananasiong posted suitable the xxxxx what is that that I am looking for ?
Looks like it (on a quick glance), obviously you need to fill the x's with the config settings you want.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 18th January 2008, 06:10 PM   (permalink)
Default

ok by xxxxx that I want what is actually meant ? does this set the pic functions so what functions do I want ? (obviously not ADC)
__________________
I AM the exeption that disproves the rule in many ways but the rules still apply (unfortunately)

my site:www.simons-photography.com
http://rushdenrotaract.org.uk
see also
http://www.bigstockphoto.com/account...fid=m2URATYch5
http://www.redbubble.com/people/simonsphotography
Thunderchild is offline   Reply With Quote
Old 18th January 2008, 07:24 PM   (permalink)
Default

so I'm making a sample order of 16F628A what else could I get while I'm ordering ?
__________________
I AM the exeption that disproves the rule in many ways but the rules still apply (unfortunately)

my site:www.simons-photography.com
http://rushdenrotaract.org.uk
see also
http://www.bigstockphoto.com/account...fid=m2URATYch5
http://www.redbubble.com/people/simonsphotography
Thunderchild is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Connecting Servo to 68HC11 using Assembly Language arfin Micro Controllers 11 3rd January 2008 05:58 AM
Help needed ASM to HEX with MPLAB Virus Micro Controllers 39 26th December 2007 03:30 PM
Remote Proximity Start mindctrl Electronic Projects Design/Ideas/Reviews 6 2nd October 2006 06:51 PM
Finding serial START bit by bit banging Oznog Micro Controllers 24 6th December 2005 09:20 PM
hardware or software fault? gastonanthony Micro Controllers 6 6th June 2005 01:13 PM



All times are GMT. The time now is 04:42 AM.


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