Powered by Invision Power Board


Forum Rules Forum Rules (Please read before posting)
Pages:12 ( Go to first unread post ) Reply to this topicStart new topicStart Poll

> Intro To Pic Programming Video, - *newbs only!
gramo
Posted: December 19, 2007 08:15 am
Reply to this postQuote Post


Forum Addict
******

Group: Trusted Members
Posts: 625
Member No.: 8,536
Joined: March 06, 2007




Just made my first real life video tutorial, delves into;
  • Electronic hardware requirements
  • Development tools
  • Using Swordfish
  • Using PICKit 2 Software & Hardware
  • Constructing and using circuits on breadboards
  • How to find basic information in datasheets
  • and heaps of other little things along the way ohmy.gif
I do assume a little bit of electronics knowledge - eg, reading circuit diagrams - because I'm guessing if someone has the knowledge to Google "Intro To PIC's" then they know something about basic electronics...

Your feedback is welcome!

Watch it here


Any referrals to the tutorial site are actually there - its all on the new site that will go live in a couple of weeks


--------------------
digital-diy.com - Hobby microcontroller projects and tutorials. Assembly, PICBasic and C examples.
PMEmail PosterUsers Website
Top
gramo
Posted: December 20, 2007 06:16 am
Reply to this postQuote Post


Forum Addict
******

Group: Trusted Members
Posts: 625
Member No.: 8,536
Joined: March 06, 2007




265 downloads in 24 hours... now thats why I'm glad to pay for a reliable host heh...


37.1MB * 265 = 9831.5MB!! Nearly 10GB of bandwidth...


--------------------
digital-diy.com - Hobby microcontroller projects and tutorials. Assembly, PICBasic and C examples.
PMEmail PosterUsers Website
Top
mankku
Posted: December 20, 2007 06:21 am
Reply to this postQuote Post


Forum Addict ++
*******

Group: Spamminator Taskforce
Posts: 3,615
Member No.: 9,683
Joined: June 05, 2007




Congrats! thumbsup.gif Keep it coming! biggrin.gif

Mankku
PMEmail PosterUsers Website
Top
phoebus16
Posted: December 20, 2007 10:05 am
Reply to this postQuote Post


Forum Addict ++
*******

Group: Trusted Members
Posts: 1,638
Member No.: 7,723
Joined: January 08, 2007




nice video thanks thumbsup.gif

I took a look at your tutorials and made my first blinking led with a 16F628A yesterday biggrin.gif

I played with a 7segment display too.

I use proton program for compiler and it is quite nice but the 50line restriction is a bit annoying. (I like big programs biggrin.gif )
Any other FREE compilers for 16F628A with unlimited lines or at least more than 50?
Will swordfish (that has 200lines) be able to compile for 16F628A pic?


--------------------
Those who dream by day are cognizant of many things which escape those who dream only by night. ~Edgar Allan Poe
PM
Top
mankku
Posted: December 20, 2007 10:11 am
Reply to this postQuote Post


Forum Addict ++
*******

Group: Spamminator Taskforce
Posts: 3,615
Member No.: 9,683
Joined: June 05, 2007




QUOTE (phoebus16 @ December 20, 2007 11:05 am)
Any other FREE compilers for 16F628A with unlimited lines or at least more than 50?

Microchip's Assembler tongue.gif

Seriously: BKND's CC5X: link

I think the free version goes to 1024 lines or something like that. There is possibly some way to get around it I think, perhaps by splitting the code into several files that are compiled separately. Dunno for sure.

Mankku
PMEmail PosterUsers Website
Top
phoebus16
Posted: December 20, 2007 10:23 am
Reply to this postQuote Post


Forum Addict ++
*******

Group: Trusted Members
Posts: 1,638
Member No.: 7,723
Joined: January 08, 2007




thanks thumbsup.gif I am gonna try that smile.gif


--------------------
Those who dream by day are cognizant of many things which escape those who dream only by night. ~Edgar Allan Poe
PM
Top
Colt45
Posted: December 20, 2007 11:40 am
Reply to this postQuote Post


Forum Addict ++
*******

Group: Trusted Members
Posts: 4,399
Member No.: 1,333
Joined: October 02, 2004




my favourite.. free up to 2k hex output

http://www.mikroe.com/en/compilers/mikroc/pic/


--------------------
>]:::|-
PMEmail PosterICQ
Top
gramo
Posted: December 20, 2007 01:56 pm
Reply to this postQuote Post


Forum Addict
******

Group: Trusted Members
Posts: 625
Member No.: 8,536
Joined: March 06, 2007




QUOTE (phoebus16 @ December 20, 2007 10:05 am)
Will swordfish (that has 200lines) be able to compile for 16F628A pic?

Swordfish has no code length restrictions, only a 200 variable limit... More then enough for almost any application (If you stay away from memory hungry Floats)

It is designed exclusively for 18F PIC's - and is the only truly modular programming language I have found to date... (If you use VB you'll know what that means)

Oh, and as for mikroBasic... its bad juju from my experience - buggy and unreliable. Has a 'rushed' feel to it. That and it produces incredibly slower code compared to SF



--------------------
digital-diy.com - Hobby microcontroller projects and tutorials. Assembly, PICBasic and C examples.
PMEmail PosterUsers Website
Top
Roccivic
Posted: December 20, 2007 04:31 pm
Reply to this postQuote Post


Moderator
Group Icon

Group: Moderators
Posts: 7,503
Member No.: 7,882
Joined: January 19, 2007




QUOTE (gramo @ December 19, 2007 07:15 am)
Your feedback is welcome!

Nice video.
But a tantalum cap for power supply bypassing? Why? blink.gif The ceramic caps will perform much better in that spot.

By the way tantalums are nothing else but electrolytic caps with considerably lower ESR compared to their brothers alluminium electrolytics. In my opinion there is no point using a tantalum unless the application calls for a 10uF+ value. Correct me if I'm wrong.

And the tantalums have all sorts of nasty habits such as smoking and exploding with even a small negative spike or a small spike above their rated voltage.

Peace thumbsup.gif

[EDIT] Ceramics are also waaaay cheaper wink.gif
PM
Top
phoebus16
Posted: December 20, 2007 05:47 pm
Reply to this postQuote Post


Forum Addict ++
*******

Group: Trusted Members
Posts: 1,638
Member No.: 7,723
Joined: January 08, 2007




I installed microC but I am searching for hours on an issue:

How do I independently change the outputs ?

lets say at port B bit 2 must be output with 0 value (without messing with the rest of the bits values)

I tried that:
-----
PORTB2 = 0;
TRISB2 = 0;
-----

it gives error:
"undeclared identifier [PORTB2] in expression"
"undeclared identifier [TRISB2] in expression"

(if it is PORTB instead of PORTB2 it works for all B ports)

in basic it was:
PORTB.2 = 0
TRISB.2 = 0

but this doesn't work in C sad.gif


--------------------
Those who dream by day are cognizant of many things which escape those who dream only by night. ~Edgar Allan Poe
PM
Top
jimbobjones
Posted: December 20, 2007 07:15 pm
Reply to this postQuote Post


Member
****

Group: Trusted Members
Posts: 114
Member No.: 11,308
Joined: October 02, 2007




very nice

any chance of the same examples but in C wink.gif
PMEmail Poster
Top
Abdullah M.A.
Posted: December 20, 2007 08:05 pm
Reply to this postQuote Post


Forum Addict ++
*******

Group: Spamminator Taskforce
Posts: 4,289
Member No.: 10,604
Joined: August 16, 2007




Thank you so much about your pretty exquisite video tongue.gif

Abdulla


--------------------
"A scientist can discover a new star, but he cannot make one. He would have to ask an engineer to do that."
"For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."
PMEmail PosterUsers Website
Top
Colt45
Posted: December 20, 2007 08:07 pm
Reply to this postQuote Post


Forum Addict ++
*******

Group: Trusted Members
Posts: 4,399
Member No.: 1,333
Joined: October 02, 2004




read the helpfile and examples.. wink.gif

PORTA.F2, PORTB.F0, like that.


--------------------
>]:::|-
PMEmail PosterICQ
Top
phoebus16
Posted: December 20, 2007 08:45 pm
Reply to this postQuote Post


Forum Addict ++
*******

Group: Trusted Members
Posts: 1,638
Member No.: 7,723
Joined: January 08, 2007




thanks colt45 smile.gif


--------------------
Those who dream by day are cognizant of many things which escape those who dream only by night. ~Edgar Allan Poe
PM
Top
gramo
Posted: December 21, 2007 02:25 am
Reply to this postQuote Post


Forum Addict
******

Group: Trusted Members
Posts: 625
Member No.: 8,536
Joined: March 06, 2007




QUOTE (Roccivic @ December 20, 2007 04:31 pm)
But a tantalum cap for power supply bypassing? Why? blink.gif The ceramic caps will perform much better in that spot.

Heh, that one slipped through the cracks... I've always used Tantalums for filtering etc.. Its one of those 'read once - monkey see monkey do' things. Tants are hold better esr and temperature stability, and I adopted them as my bypass cap of choice about year ago. And in return, I didn't roll back a step and think of putting forward the ceramic disc option...


Your completely right though, being a lower cost and 'doing the same job', neither esr or temp stability are crucial aspects here


--------------------
digital-diy.com - Hobby microcontroller projects and tutorials. Assembly, PICBasic and C examples.
PMEmail PosterUsers Website
Top
damien
Posted: December 21, 2007 03:34 am
Reply to this postQuote Post


Forum Addict ++
Group Icon

Group: Moderators
Posts: 5,731
Member No.: 175
Joined: October 02, 2002




I do not have high enough permissions but i feel this Thread should be Stickied at the top.

Damien


--------------------
Wow you look quite normal for a geek.

The statistics on sanity are that one out of every four persons is suffering from some sort of mental illness. Think of your three best friends -- if they're okay, then it's you.
PMEmail PosterUsers Website
Top
Roccivic
Posted: December 21, 2007 02:19 pm
Reply to this postQuote Post


Moderator
Group Icon

Group: Moderators
Posts: 7,503
Member No.: 7,882
Joined: January 19, 2007




QUOTE (damien @ December 21, 2007 02:34 am)
I do not have high enough permissions but i feel this Thread should be Stickied at the top.

Damien

Ok then. Stickied.
PM
Top
MacFromOK
Posted: December 21, 2007 09:39 pm
Reply to this postQuote Post


Forum Addict ++
*******

Group: Spamminator Taskforce
Posts: 15,264
Member No.: 5,314
Joined: June 04, 2006




How about cleaning the junk out of it? We pretty much hijacked Gramo's thread with connection speed stuff. blush.gif

Maybe a mod can move those to a new topic?

Mac


--------------------
Mac *

"Basic research is what I'm doing when I don't know what I'm doing." [Wernher Von Braun]

* is not responsible for errors, consequential damage, or... anything.
PMEmail Poster
Top
Roccivic
Posted: December 28, 2007 04:01 pm
Reply to this postQuote Post


Moderator
Group Icon

Group: Moderators
Posts: 7,503
Member No.: 7,882
Joined: January 19, 2007




Done
PM
Top
boytheo
Posted: January 19, 2008 10:25 pm
Reply to this postQuote Post


Member
****

Group: Trusted Members
Posts: 182
Member No.: 12,584
Joined: January 08, 2008




Great!

Shame I still don't understand circuit diagrams tongue.gif but yeah nice tutorial. I won't actually use a PIC for my first electronics project, but... it's still educational. Many lessons still cross over, like soldering, cutting wires, breadboard, transients, and that smile.gif
PMEmail PosterUsers Website
Top
Topher
Posted: January 30, 2008 03:24 am
Reply to this postQuote Post


Sr. Member
*****

Group: Trusted Members
Posts: 362
Member No.: 4,477
Joined: March 06, 2006




I like it! The only thing I would add is maybe an explanation of what difference is between a high level and machine code compiler and why high level editors are used. That really bothered me when I was new, well I still am new.
PMEmail PosterUsers Website
Top
Quick
Posted: February 26, 2008 02:03 am
Reply to this postQuote Post


Member
****

Group: Trusted Members
Posts: 123
Member No.: 9,342
Joined: May 03, 2007




Excellent video. It helped me a lot.
PMEmail Poster
Top
Private_Walter
Posted: April 03, 2008 06:32 am
Reply to this postQuote Post


Forum Addict
******

Group: Trusted Members
Posts: 671
Member No.: 13,025
Joined: February 05, 2008




cool! still don't understand the whole portb.0 thing. And some of the parts you see on the diagram are a little above me right now, but great vid!


--------------------
The best things in life are earned

"real men use FORTRAN" - Colt45

www.advancingeverything.com is my website and is FINALLY WORKING.
PMEmail PosterUsers Website
Top
OverDRIVE
Posted: August 31, 2008 03:13 am
Reply to this postQuote Post


Newbie
**

Group: Members+
Posts: 10
Member No.: 17,669
Joined: August 25, 2008




Thanks for video. Great site by the way.
PMEmail Poster
Top
srikanthsamaga
  Posted: November 05, 2008 12:36 am
Reply to this postQuote Post


Sr. Member
*****

Group: Trusted Members
Posts: 472
Member No.: 20,004
Joined: November 01, 2008




Thanks. It was a superb tutorial. Can you give more information about Pickit 2 i.e. links etc. Does Pickit 2 support all Pic micros? Also tell me about using eeproms of Pic. I am a 8051 assembly level programmer. 8051 series is cheaper than Pic but it lacks adc and eeproms.

thumbsup.gif thumbsup.gif thumbsup.gif

This post has been edited by MacFromOK on November 09, 2008 04:15 am
PMEmail PosterUsers Website
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic OptionsPages:12 Reply to this topicStart new topicStart Poll

 


:: support us ::




ElectronicsSkin by DutchDork & The-Force