Can anyone help at getting OWIn & OWOut to work @ 16MHz?


Results 1 to 10 of 10

Threaded View

  1. #5
    jessey's Avatar
    jessey Guest


    Did you find this post helpful? Yes | No

    Default Could it be my beta upgrade for my EPIC programmer?

    Thanks Bruce,

    Shows you what I know LOL, I didn't realize that. I'm just a hobbyist here and have a lot to learn. I checked the archives before attempting to use the PLL and didn't find any info about the pause statements being handled in PBP. I did find discussions on the configuration settings which varies (from what I could tell) on whatever version of MPASM is used. I didn't see any discussions on the specific one I have which is v03.60. Maybe I don't have the configuration fuses set up properly but I thought I could just set them with my EPIC programmer?

    Most of the discussions I read stated to either edit the inc file for the chip or comment out the ones you want to set in code in the inc file and then use @ to set them. My inc file included a section that could be copied and pasted into your code to set-up the fuses and it didn't say anything about commenting out any sections to use them. This is what it had to say in the inc file for the 18f452:

    ; To use the Configuration Bits, place the following lines in your source code
    ; in the following format, and change the configuration value to the desired
    ; setting (such as CP_OFF to CP_ON). These are currently commented out here
    ; and each __CONFIG line should have the preceding semicolon removed when
    ; pasted into your source code.

    I tried cutting and pasting them into my program (11 in all) and they all worked except for these two:

    @ __CONFIG _CONFIG1H, _OSCS_OFF_1H & _RCIO_OSC_1H
    @ __CONFIG _CONFIG4L, _STVR_ON_4L & _LVP_OFF_4L & _DEBUG_OFF_4L

    And according to what I read in the archives, I should be using this one:

    @ __CONFIG _CONFIG1H, _OSCS_ON_1H & _HSPLL_OSC_1H

    But I should be able to use the EPIC to select the fuse settings as well although it would be great if I could set them all in code, of which I can do for 9 of them but not for the one I really need. When I tried to compile the one below I got two errors:

    @ __CONFIG _CONFIG1H, _OSCS_OFF_1H & _HS_OSC_1H

    Error[118]c:\ds1820 9.asm 276 Overwriting previous address contents (0000)
    Error[118]c:\ds1820 9.asm 276 Overwriting previous address contents (0001)

    I tried commenting out lines in the inc file that were related to the above CONFIG1H but no success. I did make a backup copy of the inc file before I started playing with it and have it in an attachment below if you'd like to have a look.

    Another thing, when I upgraded my EPIC to be able to programme the 18F's I opted to use the free beta version. It stated that it had some limitations imposed but didn't elaborate as to what those limitations were. Maybe? The upgrade was only $10.00 USD but it was easier to just download and install the free beta version and not have to wait for the postman or courier. Do you think that could be part of my problem?

    Thanks
    jessey
    Attached Files Attached Files

Similar Threads

  1. High Resolution Timer & Speed Calculator
    By WOZZY-2010 in forum Code Examples
    Replies: 4
    Last Post: - 7th February 2010, 16:45
  2. STATUS re-curtain W
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 13th February 2005, 15:21
  3. help
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th February 2005, 20:42
  4. Need once your help one please
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 9th February 2005, 20:33
  5. can i slowdown owin and owout
    By Eugen in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 29th January 2005, 22:17

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