16F819 Help


Closed Thread
Results 1 to 6 of 6

Thread: 16F819 Help

Hybrid View

  1. #1
    Join Date
    May 2004
    Posts
    81


    Did you find this post helpful? Yes | No

    Angry

    Ive tried pasting that into my code:

    @ DEVICE PIC16F819, INTRC_OSC_NOCLKOUT, WDT_OFF, LVP_OFF, PWRT_ON, PROTECT_OFF

    DEFINE OSC 8
    OSCCON = $70


    And I get an Illeagle Opcode error from MPASM:

  2. #2
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Take a look in the 16F819.INC file in your PBP folder. The “Device” statement is for PM – you need to use the format for MPASM if you are using MPASM. You can either comment out the version in .inc file and include your own there or comment it out in the .inc file and include them in your file. See this link for lots more on this ...

    http://www.picbasic.co.uk/forum/showthread.php?t=543

    EDIT:
    Hey, I just noticed that you have contributed to this link as post #2 - it has grown!
    Last edited by paul borgmeier; - 29th December 2006 at 05:52.
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  3. #3
    Join Date
    Jun 2005
    Location
    Up the bush, Western Plains, NSW Au
    Posts
    216


    Did you find this post helpful? Yes | No

    Default

    Hello all,
    Sorry to eavesdrop on this thread, but as I am also using an 'F819 in a project, I thought I might learn something.
    Having NEVER tried to operate any chip with internal osc. this seemed to answer my unasked question...
    So I put that bit of code in, but with defineosc 4 for 4MHz. (the ones I've got)
    Pulled the crystal out of my development board and tried it. LCDOUT works beautifully.
    All seemed ok until I got to the part where I was debugin-ing some stuff and the section did not work at all. Re-prog'd with XT osc. and all went well again with the crystal in.
    There is obviously some other stuff to be added?????

    BTW, am debugin-ing at 9600.



    Regards,
    Peter Moritz,
    Up the bush, By the Sea, South Australia.
    Last edited by muddy0409; - 29th December 2006 at 12:23. Reason: More info added

Similar Threads

  1. 16F819 syntax ERROR
    By k-hirayama in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th February 2008, 00:40
  2. Lcd With 16f819
    By EliteGM in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 3rd October 2007, 20:51
  3. Pulsin 16F819 problem
    By rekcahlaer in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th April 2007, 13:52
  4. 16F819 - Pullup on MCLR required?
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 22nd December 2005, 17:52
  5. Use of Timer1 with 16F819
    By Barry Johnson in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th January 2005, 16:25

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