PIC16F887, turn off..


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    sinoteq's Avatar
    sinoteq Guest


    Did you find this post helpful? Yes | No

    Default Table 2.1

    Does not only show the name and address of each register,it does that ALSO. Look at Figure 2-4,2-5 and 2-6 they ONLY name and addresss information. The key with Table 2.1 is under the text "Value on POR,BOR" at the top of each table. Table 2-2,2-3,2-4 are similar but addresses different functions. It is only here we can figure out what settings the PIC has after a BOR or POR event. The safe way is to set all registers to a known value the first thing you do in your program or let the POR or BOR event make it for you. Or a combination of these......

    If you do not know what functions are activated how can you turn them off?


    Most people stick to one or two different PICs and use these for many different applications, because of this they learn what and what not to to..... Many times the hard way

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by sinoteq View Post
    Does not only show the name and address of each register,it does that ALSO. Look at Figure 2-4,2-5 and 2-6 they ONLY name and addresss information. The key with Table 2.1 is under the text "Value on POR,BOR" at the top of each table. Table 2-2,2-3,2-4 are similar but addresses different functions. It is only here we can figure out what settings the PIC has after a BOR or POR event. The safe way is to set all registers to a known value the first thing you do in your program or let the POR or BOR event make it for you. Or a combination of these......

    If you do not know what functions are activated how can you turn them off?


    Most people stick to one or two different PICs and use these for many different applications, because of this they learn what and what not to to..... Many times the hard way
    Hi sinoteq,
    look in your Microchip mpasm suite folder for the PIC Chip number of your choice .inc file and open it. You will see the register names and syntax for using them, at least in as much as the correct names, I . E. things like . . . Configuration Bits, OSCON , PCON etc . . . Definately worth a look.
    JS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. new and need help
    By smeghead in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd November 2008, 20:19
  2. Serial Question + General Review
    By Freman in forum General
    Replies: 2
    Last Post: - 20th June 2008, 22:27
  3. Help with PIC project
    By davekav in forum General
    Replies: 3
    Last Post: - 17th April 2008, 23:15
  4. Interface for 16f818
    By davekav in forum Serial
    Replies: 4
    Last Post: - 17th April 2008, 11:33
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts