Jump to content
tu_ech

Pic16f877a Configuration

Recommended Posts

Hi,

 

Does anyone know how to set the configuration for the PIC16F877A?

 

In general, how do we know to set the configuration for any specific PIC, let's say PIC18F452?

 

Thanks

Share this post


Link to post
Share on other sites

The boostC manual page 38 shows how it is done for the 16 and 18 series of devices.

 

Which bits are to be set or cleared will of course depend on your application. How do you want to program the device, what is your oscillator source, what features do you want to use etc. Only you can answer these questions.

 

BoostC will set bits to all 1's for the config byte/word that you define a bit for until you set it to 0. Note that the erased config byte/word can default to 0 bits which can catch you out. Extended instruction mode for example.

 

Cheers

 

Reynard

Share this post


Link to post
Share on other sites
Hi,

 

Does anyone know how to set the configuration for the PIC16F877A? .....

 

Thanks

 

the 887 has a wizzard, use it.

 

then use any number of example programs out there.

 

use a guide for assembler, port.bit = xxx or set_bit clear_bit are easy to translate.

 

pragma s are used for some settings rtfm

 

then use the manuals

 

prepared to be amaized at how many mistakes can be made.

 

also see:

 

 

Gotchas http://www.piclist.com/techref/microchip/gotchas.htm

 

 

Tips and pitfalls http://www.voti.nl/swp/index.html

 

 

 

LIST OF Most common errors with PICs http://www.micro-examples.com/public/micro...c/205-faqs.html

 

 

Russ

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...