PIC18F2320 RA4 output problem


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2007
    Posts
    12

    Default PIC18F2320 RA4 output problem

    Hi!

    I'm using PIC18F2320 chip. It's needed to use PORTA.4 as digital output. Somehow with this program it doesn't give high value into PORTA.4 pin. PORTC.1 output is working. Are there any settings missing? From datasheet can't find any clue. With PIC18F2420 this program is working.

    DEFINE OSC 4

    p var PORTA.4
    k var PORTC.1

    CVRCON = 0
    CMCON = 7

    TRISA = %00000000
    TRISC = %00000000

    p = 1
    k = 1

    end

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Talking Datasheet !!!

    Hi,

    Generally, RA.4 is an open collector as output pin ...

    need to be checked ... but 100% sure !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    May 2007
    Posts
    12


    Did you find this post helpful? Yes | No

    Default

    Yup. There is open drain. So I changed the outputs a bit. Tnx.

Similar Threads

  1. problem with input and output (18F452)
    By turkuaz in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th March 2008, 23:21
  2. Serious Serial Situation Setbacks...
    By Dansdog in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th February 2007, 03:46
  3. problem with output RA2 and RA3
    By savnik in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th December 2006, 13:49
  4. HSEROUT No Output Problem
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 22nd August 2005, 17:19
  5. Interrupt?? problem
    By scorpion in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th July 2005, 04:14

Members who have read this thread : 1

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