please dont rip this site

Nicolaas Gerhardus Scheepers of ElectronCraft Says:

OK,

First tip to myself and to you all out there that has problems porting code from the 16F84a to the 16F877 or for that matter to any other MCU.

1. RTFDS - This means "Read The ^#$@%^@#$% Data Sheet"

One big difference between the 16F84 and the 16F877 is the peripherals the 16F877 has extra on board. Some of these peripherals like the A/D needs to have some of the ports setup as analog ports. Microchip in their wisdom decided to make some of the ports analog by default and it took me two weeks to actually find this out.

Use the ADCON1 register to setup the D and E ports as analog or digital. You still have to do all the other setup, do not go and throw your other code out the window.

Let me know how this helped you!!!

P.S. I know we are usually lazy to read the datasheet but I think it is worth your while to take a day or two and thoroughly scan the datasheet before digging in.
+

HOME


file: /techref/member/NGS-EC-KA7/TipsAndTricks.htm, 2KB, , updated: 2002/10/23 11:27, local time: 2009/1/8 15:04, owner: NGS-EC-KA7,
TOP NEW HELP FIND: 
38.103.63.59:LOG IN
©2009 PLEASE DON'T RIP! DO: LINK / DIGG! / MAKE!

 ©2009 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it!
<A HREF="http://piclist.org/techref/member/NGS-EC-KA7/TipsAndTricks.htm"> member NGS-EC-KA7 TipsAndTricks</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page): A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Did you find what you needed?

  PICList 2009 contributors:
o List host: MIT, Site host massmind.org, Top posters @20090108 olin piclist, Jinx, eagletalontim, Vitaliy, solarwind, JonnyMac, apptech, Sean Breheny, cdb, M.L.,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Shultz Electronics, Timothy Weber, on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
  'What can I do?' - SiCKO

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .