Problem with A port on 18F2550


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    This is for a other project, it's a normal 5V operation system.
    The line where you talk about is not needed.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    make sure that there's no possible Brown-out reset @20MHz and @3 V. Usually the datasheet show the minimum voltage for a given crystal speed.

    EDIT: nevermind.. misread your post.

    well you'll need to post your Config Fuses line OR send your compiled .HEX files.

    Make sure your ADCON setting is good as well.
    Last edited by mister_e; - 7th May 2007 at 19:21.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3


    Did you find this post helpful? Yes | No

    Default

    I Use the following A ports:

    Input1 VAR PORTA.0 'input
    Relais1 VAR PORTA.5 'output
    Data_In VAR PORTA.4 'serial data
    LEDRood VAR PORTA.2 'output

    I use the following adcon settings:

    LATA = 0
    ADCON1 = 7 'poort set as digital

    ADCON0 = 0
    ADCON2 = 0
    TRISA.1 = 1 'Input

    TRISA = 255

    Fuses are set:

    http://www.ttalens.com/images/picbasic/fuses1.JPG

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Does the ">Start<" go out the serial port about every 2 seconds or so?

  5. #5


    Did you find this post helpful? Yes | No

    Default

    This is a one time operation.

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by NL2TTL View Post
    This is a one time operation.
    I know it's a one time operation. That's the way you've written it in the program.
    I'm asking if, while the program is in operation, do you get the ">Start<" out of the serial port about every 2 seconds or so?

  7. #7


    Did you find this post helpful? Yes | No

    Default

    Yes every 2 seconds

Similar Threads

  1. Array problem (18F2550)
    By Ronald123 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 8th January 2008, 18:47
  2. Setting up Port b for I2C on 18f2550
    By rjones2102 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 2nd October 2007, 20:22
  3. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  4. PWM problem CCP2 port
    By NL2TTL in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 19th September 2006, 23:34
  5. COM port problem
    By andys280176 in forum Serial
    Replies: 0
    Last Post: - 19th January 2006, 16:42

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