PIC to PIC TX RX and PIC to PC COM RX ..a little help please


Closed Thread
Results 1 to 40 of 68

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default fading memory is better than no memory !

    Dave ..

    Thanks again, but fading memory is better than no memory ( lol or is it ?)

    So even if it's wrong it will send me hurtling off in the HSER direction on a voyage of discovery and when I'm truly stumped I will ask for assistance then and only then !

    Kind regards

    Dennis

  2. #2


    Did you find this post helpful? Yes | No

    Default Awesome

    What an awesome calculator proggie ;-)

    A true GEM !

    Thanks a million

    Dennis

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


    Did you find this post helpful? Yes | No

    Default

    Thank mister e for the MultiCalc, I use it often.

    http://melabs.com/resources/samples/pbp/usart.bas
    Play with the above to get started with the USART. Notice they did not use DEFINES.

    The program will echo your keyboard with one PIC connected to a PC. The terminal program that is part of MCS is good for this setup. I think the above sample is for 4Mhz. So check the values with MultiCalc.

    Keep us posted...
    Dave
    Always wear safety glasses while programming.

  4. #4


    Did you find this post helpful? Yes | No

    Default oscillator setting

    Hi dave

    Thanks again :-)

    For my 16f887 i have the following set for using the internal clock
    Code:
    OSCCON = %01110001          'Int CLK 8MHz
    ANSEL = %00000000           'All digital
    OPTION_REG.7 = 0            'Weak pull-ups enabled
    
    DEFINE OSC 8                '8MHz
    So I use 8 MHZ not so ?

    For the 184520 the following is set
    Code:
    'Ocsillator selections here
            OSCCON = $70            'Int CLK 8MHz
            OSCTUNE.6 = 1           'PLL 4x
            ADCON1= %00001111       '$0F = disable A/D converter
            cmcon   =   7 
            INTCON2.7 = 0     'switch pull-ups ON
    'END of oscillator selections
      'timer/oscillator defines 
            DEFINE OSC 32            '4x 8MHz
    'END of timer/oscillator defines
    So do I choose 4MHz or 32 MHz ?

    thanks a million

    Kind regards
    Dennis

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


    Did you find this post helpful? Yes | No

    Default

    For the 887 use 8Mhz for the calcs.

    I am not sure about the 4520, I have not used USART with PLL enabled.
    But...
    I think the USART uses the primary OSC so try 4Mhz. 50 50 chance of it working
    Dave
    Always wear safety glasses while programming.

  6. #6


    Did you find this post helpful? Yes | No

    Default osciallator..

    Hi Dave

    Could I set both PICS to 4 MHz internal OSC ?
    And once it's working try variations ?

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


    Did you find this post helpful? Yes | No

    Default

    That would be the way to trouble shoot.
    Just make sure they are running at the expected speed with a blinky and a stop watch or meter if you have one..
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Direct PIC to PC without MAX232
    By acjacques in forum Serial
    Replies: 14
    Last Post: - 23rd October 2014, 22:32
  2. Serial VB 2005 pic 16f877a problems
    By Snap in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 8th July 2013, 01:52
  3. PIC or xbee times out after Tx 504 bytes
    By archendekta in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 23rd November 2009, 09:45
  4. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 15:46
  5. RX TX modules - intermitent communication
    By ruijc in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 11th June 2009, 01:13

Members who have read this thread : 2

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