3Nigma's utility site
Home · Articles · News CategoriesSeptember 07 2010 00:32:20
Navigation
Home
Articles
Forum
myBlog[Romanian]
FAQ
News Categories
Contact Me
Links
Search
eniMath - Challlenges
eni - SkyCams
eni - Stamps
Users Online
Guests Online: 1
No Members Online

Registered Members: 27
Newest Member: selba
Friendly links
SkullBox - IT Knowledge Realm
My PIC, my Choice!
eniElectro

eniElectro is officially enrolled soo…on with the show :)

In this related article I am going to talk to you about my PIC and why I chose my PIC to program on. First of all let me begin by saying that, maybe you read my last article, my current PIC is model 16F628A.

What are the main characteristics of it? You might ask…

articles: 104.gif

Let’s wait on a second and try to think what do we point out when talking about a PIC’s characteristics?

Well…first of all, it is an electronic component so, unlike software thingy, it exists in the real world and you can touch it. A PIC is an integrated circuit. That means that it has to have some pins to which other electronic components can connect. The PIC16F628A comes in a 18DIP package which means that it has 18 pins for various purposes.


[PIC PIN layout]

Another thing for which a microcontroller is “famous” for is its internal memory. The internal memory consists of 3types: FLASH memory, in which you write your code to, RAM and EEPROM. RAM memory is, in short memory kept alive by current while EEPROM is a memory where you do not need current to host it. In fact, data written to EEPROM has a lifespan of 40 years, which means that you can write to EEPROM and let your children find out what you have written.

The space available on a 16F628 is as follows:

Flash Program

RAM Data

EEPROM data

2048x14

224x8

128x8

You may be wondering what does the x14 and the x8 represent? Well…a word [instruction] in a pic is held in its specifically number of bits as its specification states. 16F628 is part of the 16F family, which means that an instruction takes 14bits of memory…so you can ad 2048 instructions to 16F628. X8 represents the same, stating that the data held in RAM and EEPROM are 8bits in length.

We’ve seen the package, its memory, now on with some other interesting capabilities of this PIC:

  • It has a total of 35 instructions to be learned [comes from the characteristics of its class]
  • Operating speed is at 20 MHz – 200ns/instructions [there are some two-cycle instructions]
  • It contains a 8 level hardware stack
  • It has the capability of accessing memory directly/indirectly or by relative
  • It supports interrupts
  • It has 16 I/O ports , most of them bidirectional
  • Contains an analog comparator module [thing that I haven’t explored yet]
  • It has 3 timers to work with
  • It contains an USART [Universal Synchronous/Asynchronous Receiver/Transmitter] very well for radio communication

Ø Has some specific microcontroller features that I will talk about when there will be the case

An interesting thing [or so I thought so] is memory access. Normally, the memory is laid out linear in a computer. In PIC this is not the case. Memory is laid on banks [or memory banks] and in working with memory locations; this must be taken into account before doing anything. 16F628 has its memory scattered along 4 banks, the way you access these banks I will show you in future news.

articles: 103.gif

The reason I said that this PIC is for beginners is because its characteristics… it has only 35 instructions to be learned, it has a good memory and the applications you can do with it are many…well suited for a beginner like myself to enjoy.

I am developing on this PIC for a relative short amount of time and let me say that it is a pleasure working with it… It gives you so many ideas of development that you think that there is no need for a powerful counterpart, all that a beginner – medium developer wants, it can be found on this PIC, this is for sure.

I will continue on working with this microcontroller for I have some plans to develop and it will be at its core…thinking and deciding as I say it to do.

articles: 101.gif

Of course…I will post my developments on the site, so stay tuned ;)

Probably my next news on this category will consist of a short tutorial on how to program these little gadgets, nothing fancy…just to show how easy it is to program them.

Well, that’s enough to be said about MY PIC for now…sure, each and every characteristic can be detailed and will be detailed as soon as the need to be explored will be obvious, till then, take care ;).


3Nigma on July 18 2008 20:18:06 0 Comments · 2608 Reads · Print
Comments
No Comments have been Posted.
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Shoutbox
You must login to post a message.

No messages have been posted.
Copyright "3Nigma's brain"© 2008