LOW PORTA cause serin2 not working.


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    I think this might help ...

    AllDigital.pbp
    http://www.picbasic.co.uk/forum/showthread.php?t=11100

    Or you could just ...
    Code:
    CMCON0 = 7
    But AllDigital would have told you that too.

    hth,
    DT

  2. #2
    Join Date
    Aug 2009
    Posts
    3

    Default

    Tried CMCON0 = 7 , still the same.

    Thank you for your help, it would useful if I decide to use other chips.

    Quote Originally Posted by Darrel Taylor View Post
    I think this might help ...

    AllDigital.pbp
    http://www.picbasic.co.uk/forum/showthread.php?t=11100

    Or you could just ...
    Code:
    CMCON0 = 7
    But AllDigital would have told you that too.

    hth,

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    Woops,

    Also change ...

    TRISA = %11111110

    to

    TRISA = %11111100

    RS232_out is on PORTA.1



    No that won't matter, never mind. Duh!
    Last edited by Darrel Taylor; - 23rd August 2009 at 22:23. Reason: Not!
    DT

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    What is "PORTA.4" connected to?
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818

    Default

    No I have not looked at the data sheet . . .
    Code:
    TRISA = %11111110
    PORTA = GPIO
    I see you aliased GPIO as portA, shouldn't you also alias the TRISIO as TRISA, for this to work ?
    Code:
    TRISIO = TRISA
    GPIO  =  PortA
    PortA = %00101100
    TrisA = %11111100
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 15:23
  2. confused problem with interrupt in a working program
    By illuminator4 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 14th November 2008, 17:01
  3. Pic16f84 and RC5 kode
    By terminator in forum Bluetooth
    Replies: 5
    Last Post: - 18th June 2007, 21:40
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  5. Problems with RC2 and RC3
    By Christopher4187 in forum General
    Replies: 11
    Last Post: - 29th May 2006, 17:19

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