How to set the 'Configuration Bits' in the PIC16F84

I am using the PIC16F84 in a circuit and I'm programming the assembly for the PIC.  However I can't figure out how to set the configuration bits.  For example I want to select the LP Oscillator, turn the WDT off, turn the PUT on, and turn the CP off.  Normally if I was using the IDE from Microchip I would add the line:
_CONFIG H'3FF0'
However Multsim does not recognize this as a valid code.  In addition the P16F84.inc file contains the following definitions:
_CP_ON                       EQU     H'000F'
_CP_OFF                      EQU     H'3FFF'
_PWRTE_ON                 EQU     H'3FF7'
_PWRTE_OFF                   EQU     H'3FFF'
_WDT_ON                      EQU     H'3FFF'
_WDT_OFF                     EQU     H'3FFB'
_LP_OSC                      EQU     H'3FFC'
_XT_OSC                      EQU     H'3FFD'
_HS_OSC                      EQU     H'3FFE'
_RC_OSC                      EQU     H'3FFF'
What is the code though to select which options you want to use?

Try this code:
_CONFIG _CP_OFF & _PWRITE_ON & _WDT_OFF & _LP_OSC
I tried this in the assembler and it didn't return any error messages when compiling. I found this in a PIC Book that I downloaded off the internet.
I hope it works for you. I am new to the MCU Module and learning about it so don't consider me an expert on it by a long shot.
Have A Nice Day
Kittmaster's Component Database
http://ni.kittmaster.com
Have a Nice Day

Similar Messages

  • How to set Java 64-bit as the default?

    Hey everyone, I need to use Java 64-bit in Mac OS X Lion and I thought it defaulted to using the 64-bit JDK until I ran Minecraft which stated I was running the 32-bit JDK and if I deselect the 32-bit entry in Java Preferences it deselects the 64-bit entry as well. Does anyone know of a way to make OS X default to the 64-bit version, I also make use of the 64-bit JDK on Windows to ensure my Java applications in NetBeans run correctly on either flavour.
    I did try using the OpenJDK 7 and downloaded the 64-bit runtime and installed it correctly and confirmed it was running but when running the Minecraft.app I was greeted with a message saying no compatible JDK 1.5+ was installed and when using the Terminal, it was failing to logon correctly, but was working fine in the standard JDK but like I said, I'm stuck with 32-bit in that case.
    Regards, Wobby.

    Does minecraft support 64-bit Java? 
    There isn't really a default java, but you can set the order for your preferred java.  Go to the Java Preferences (/Applications/Utilities/Java Preferences) and on the General tab just make sure the 64-bit java is first (you can click and drag them to change the order).
    You might also try disabling the 32-bit java by unchecking the "ON" check box next to it and see if Minecraft will run and with which Java (if shouldn't be able to launch the 32-bit one if it is off).
    Good luck!

  • How to set a variable value on the BPC Data Manager

    Hello BPC Experts,
    I'm creating a BPC10 NW version demo environment for our prospect customer.
    I made a data manager to import  BW data into BPC model from BW cube.
    I need to import just one month data into BPC from the BW cube that has more than one month data.
    When I run the data package manually, I can select a member of the time dimension prompt and I can import specific month data I want.
    But, in a case where the program (data manager) runs by JOB monthly,
    I can't select a member of the time dimension prompt manually.
    So I want to know how to set a  variable value to the time dimension prompt from a system date etc. automatically.
    Are there any way to set a variable value to the time dimension prompt on the data manager automatically from a system date?
    Or, do you have any other solution to import just one month data into BPC from the BW cube that has more than one month data  by the data manager running on JOB ?
    (without selecting a member of the time dimension prompt of the data package manually)
    Thanks in advance,
    Keisuke

    Hi Gersh
    Sorry for my late reply and thanks for your helpful information.
    I tried the second way of your information and I could configure it.  
    And I 'll try first way of your information.
    Regards,
    Keisuke

  • How to set up automatic payment for the purchase order

    Hi, All,
    I have one question how to set up automatically payment for the Rent Office purchase Order?
    There is the requirement from the client. They want to create one kind of purchase order for the Office Rent, then pay the fees in the certain time of every month to the vendor for the rent fees without any invoice. Whatu2019s the normal solution for this kind of purchase order? Is it ERS? Or something else?
    Please give me the details and business flow. Also please tell me how to setup in the SAP and T-code.
    Thanks in advance

    Either you can set up ERS or you can pay directly from the FI side.
    Prerequisites
    Evaluated receipt settlement must be flagged in the purchase order item.
    The vendor must be flagged as being subject to ERS in the vendor master record.
    The goods receipt must refer to a purchase order.
    Goods-receipt-based Invoice Verification must be defined for the purchase order item.
    A tax code must have been maintained in the purchase order item.
    The order price of the materials may not be an estimated price.
    If you flag a vendor as being subject to ERS, the system sets the ERS indicator as a default in each item when you create a purchase order for the vendor. You can prevent this happening for certain vendors by flagging the info record for the material and the vendor as not being subject to ERS.
    In Purchasing, you can delete the default ERS indicator in a purchase order item.
    Choose Logistics Invoice Verification ® Automatic Settlement ® Evaluated Receipt Settlement (ERS).
    The selection screen appears.
    You can use the following criteria to narrow down selection of the transactions to be settled:
    Company code
    Plant
    Goods receipt posting date
    Goods receipt document
    Fiscal year of the goods receipt
    Vendor
    Purchase order and order item
    You can define the selection criteria for the invoice documents by:
    Delivery
    Purchase order
    Purchase order item
    Goods receipt document
    Credit memo
    Invoice
    Currency
    Choose  Execute.
    The system issues a log for Evaluated Receipt Settlement, which displays the following:
    Settled
    In line with your selection criteria, the system displays all the order items that were settled (or if you are working in test mode, which would have been settled).
    Could not be settled
    In line with your selection criteria, the system displays all order items for which ERS is defined but could not be settled. It also lists the reasons.
    If the system reports being unable to invoice a transaction, you should exclude the transaction from ERS to avoid it being included in the log the next time ERS is run.
    Select the item and choose Exclude from ERS.
    The system also generates and possibly sends a message to inform the vendor(s) about the transaction settled, depending on the settings in Customizing.
    You can display the following environment information for the order items selected. To do this, choose Goto ®:
    Display purchase order
    Display invoice
    Display material document
    Display long text

  • How to set Multi User Environment in the weblogic 5.1 and 6.1 server..(Urgently)

    Hi all,
    I need to know how to set Multi User Environment in the weblogic 5.1
    properties file..
    Here my question is..:)
    1) I have a database with multiple users and having different privileges
    for the users.. and i need to use all the privileges when user aceess
    the database through weblogic server connectionPool.
    2)According to the user privileges i need access the database tables
    content and gives the frontEnd(jsp).
    3)How to modify dynamically weblogic.properties file in the weblogic
    5.1.
    If anybody having idea reg. this issues pl...help me..
    Thanks in advance
    Chandu([email protected],[email protected])

    Hi. A JDBC connection pool is a set of identical, interchangeable, pre-made
    connections, and the controls to make sure only one user uses a particular
    connection at any one time. If you want to have different DBMS users, you can
    have a separate pool for each DBMS user, which may contain as many or few
    connections as you want. Some applications has a pool for the accounting
    applications, and another for the sales applications etc. Some do have a
    separate pool for john, jane, joe etc, each with one connection. Pools
    can be created and destroyed dynamically using the dynamic pool API.
    Joe
    softstar wrote:
    >
    Hi all,
    I need to know how to set Multi User Environment in the weblogic 5.1
    properties file..
    Here my question is..:)
    1) I have a database with multiple users and having different privileges
    for the users.. and i need to use all the privileges when user aceess
    the database through weblogic server connectionPool.
    2)According to the user privileges i need access the database tables
    content and gives the frontEnd(jsp).
    3)How to modify dynamically weblogic.properties file in the weblogic
    5.1.
    If anybody having idea reg. this issues pl...help me..
    Thanks in advance
    Chandu([email protected],[email protected])

  • I'm new to using iCloud and couldn't find the answer to: how to set my calendar to use the 24 hour clock. Thanks all.

    ?? I'm new to using iCloud and couldn't find the answer to: how to set my calendar to use the 24 hour clock. Thanks all.

    Thanks, David.  i thought i had it set correctly in Preferences in L&R. Being i was wearing my suspenders and belt at the same time i went back to L&R, cleared what was there and re-entered same to include unchecking and rechecking Time Format fgor 24-hour time.   It works now. Thanks again.

  • How to set colors in cells depending the conditions  in alvtree

    Hi All,
    Could you please provide me idea or sample program how to set colors in cells depending the conditions  in alvtree.
    Thanks,
    Suresh

    When running vim in a terminal, it will use whatever colour scheme is defined by the terminal.  You should have a look at this thread:
    http://bbs.archlinux.org/viewtopic.php?id=51818
    Also, check the wiki article on Xdefaults.

  • How to set field to blank if the data is # or unassigned

    hi experts,
    how to set field to blank if the data is # or unassigned?
    thx

    Hi
    add the following macro to your workbook (template workbook):
    Sub SAPBexonrefresh(qstring As String, resultArea As Range)
        For Each c In resultArea
            If LCase(c.Value) = "not assigned" Then c.Value = ""
           Next
    End Sub

  • Report program to find the configuration parameters of the system?

    Hi,
    Is there any standard program in SAP to find out the configuration parameters or the configuration settings of the system and any program to find the configuration settings across systems?
    thanks & regards,
    siddhartha.
    P.S : Points will be rewarded.

    Can you concretize your question ? For what purposes ? The "system" is the front-end or server where sap are installed? Chek the RZ20 and ST06. Regards.

  • Failed to load the configuration file for the workflow

    Hi experts, yesterday I created and publish custom workflow using SPD from client pc using site administrator account but today its shows error message. I tried creating new test workflows, edit and publish to think it will push a fresh SPD settings
    in working condition and it works pretty right.
    But the thing I noticed after closing SPD Im not able to re-open workflows and it gives the same error message Failed to load the configuration file for the workflow. This issue only happen today since day one  I used SPD and all the time
    Im using the same pc.
    Any ideas will be appreciated.
    Cheers, R2C3 ----------------------------------- starting sharepoint :)

    HI
    Maybe you have permission problem or there is invalid xoml murkup.
    To verify this from SharePoint Designer use the following steps.
    In Office SharePoint Designer, in the folder list, select the plus sign next to Workflows library to expand it
    1.Next select the plus sign of the workflow in question to expand it
    2.Double-click the configuration file (Workflow_name.xoml.wfconfig.xml) to open it
    3.Right-click on the page, and then select Verify well-formed XML
    4.Correct any errors and save the file
    5.Reopen the workflow to test
    Also double check that you are using SPD with the same credentials you created workflow
    Hope this will help.
    Regards,
    Marcin

  • Can anyone say me the Configuration material for the ECC 6.0 FI/CO

    Hi everybody
    Can anyone say me the Configuration material for the ECC 6.0 FI/CO
    thanks n regards
    venuprasad

    Hi
    please refer
    http://www.sap-img.com/
    http://www.surya-padhi.net
    hope this helps
    pushkaraj

  • MacOX 10.6.7 / FF 4/ Can't run Netflix which require 32 bits/ checked the 32 bits in the FF info window but no results/ Any news on this problem ?

    MacOX 10.6.7 / FF 4/ Can't run Netflix which require 32 bits/ checked the 32 bits in the FF info window but no results/ Any news on this problem ?

    Hello,
    look at following topic http://bbs.archlinux.org/viewtopic.php?id=71643
    Seems to be a bug

  • How to set a system property via the config tool?

    Hello,
    how can I set a system property via the config tool? Before I chose WAS from SAP I used java with option -D<name>=<value> to set the system properties.
    Very much thanks in advance.
    Regards
    Carsten

    Hi Carsten,
    WAS config tool is located under
    e.g. usr\sap\J2E\JC00\j2ee\configtool
    start configtool.bat
    there will be opened a configuration tool GUI
    Click on the instance_ID.... leaf of the tree in the left pane and then on the server_ID.... leaf.
    Java settings will appear in the right pane after this steps.
    Best Regards,
    Violeta

  • How to set my ipad to show the latest email first in each account when opening mail ?

    In one of my email accounts (@btinternet.com) when I open the mail display, the default setting is to have the oldest email on the account rather than the most recent. This means I have to annoyingly have to scroll up to the most recent. How can I configure so that on opening of the account, I am immediately taken to the newest email.
    Thank You

    Thank you, this has resolved both the iphone and ipad problem immediately.  I am concerned that I may have a problem with apps that I bought under my old  AppleID as they will not be recognised.  Any suggestions for this please?

  • How to set up fb integrated on the new ios6

    i have an iphone 4 and i just did the update to the new ios6 and i do not know how to set up the integrated facebook for it to come  up on the notification center.  is it even compatible with the iphone 4. please help anyone!

    Open up Settings, and scroll down a lot until you see "Twitter" and "Facebook" right next to each other. From there, it's a simple matter of signing in.

Maybe you are looking for