Do i have to use max232??


Closed Thread
Results 1 to 10 of 10

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    quick test, remove all your timeout label, delay and such and redo the test.
    if it's working, increase them.

    case not... i'll prefer to use the internal USART.
    Steve

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

  2. #2
    MaurI's Avatar
    MaurI Guest


    Did you find this post helpful? Yes | No

    Default

    The problem might be much simpler than you think!
    1)Are those PICs on separate PCBs?
    2)Do they have separate power supplies?

    My Idea is if the answers are yes and no then you should join the grounds together. You must join the pics with the signal wire and a ground wire.

    When I was younger and just started with electronics that was my problem, I connected the ground and everything started to work!!

  3. #3
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello SubZero,

    I would start as Steve says...Remove all.

    I would do the following... In somewhat this order.

    1. The slave (receiving chip).

    (WITHOUT USING SERIN)

    1. Blink a light on each of the pins that will control your LCD. (Portb).

    You can do this by the following psuedo code:

    TRISB=%00000000 ' assigning all Portb as output.
    Loop:
    port b=255
    pause 100
    portb=0
    pause 200
    goto Loop

    this verifies that your Slave chip is working correctly on the output, and it gives you confidence that your LCD will be driven by all pins of Port B. It is not a GUARANTEE, but a big vote of confidence.

    2. Attach LCD and (WITHOUT USING SERIN) Print "Hello Word" on the LCD.

    This gives you the confidence that the Slave IS working, and that the LCD IS working...


    If either of the above 2 things I have said cannot be done... you had better drop everything and MAKE the above two things happen!...Either that, you are wasting your time.


    Master Chip.

    Same as above.. You had better BLINK the LED's on the pins you are using to send... If you use PortA.0, you had better be able to BLINK a LED on PORTA.0!!!! If you can't blink a LED on PortA.0, then don't go ANY FURTHER!!!! Why is it not blinking??? Is it because you didn't turn off the comparitors? Assign it to Digital? Use the proper TRISA of %00000001 ?

    IF the pin you are going to use, blinks a LED, lets go to the next step

    Use the simplist of ALL SEROUT commands.... instead of going though the next steps, that link I gave you will take you through using the SEROUT and scoping it.

    ==================

    Now, with master chip working... lets reprogram the Slave with a SERIN command... no thrills.... just like the link....

    =====================

    You should be able to get communication between the chips...from here on, you add LITTLE by LITTLE, and fall back upon something that WORKS.

    Try adding a timeout label and loop it back...make sure it works...

    ============================

    Remember, you are experiementing, and sometimes its better to take a small nibble off that loaf of bread, than biting off more than you can chew or swallow.

    Many times I have reverted to the Nibble technic...In programming, I sometimes look through 200,000 lines of code...Much if it I can ignore...But when that paticular "error" or "failure" occures, I must sometimes look through each line of code, and sometimes each variable of each line!

    Dwayne

    print hello to the LCD.
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

Similar Threads

  1. PIC18F4680 to PC via MAX232 (RS232 serial) no output
    By opticsteam1 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th April 2008, 21:39
  2. PIC and MAX232 in/out
    By The Master in forum Serial
    Replies: 10
    Last Post: - 29th March 2008, 21:41
  3. RS232, max232
    By kutsi in forum General
    Replies: 12
    Last Post: - 30th May 2007, 07:39
  4. MAX232 and DB9 connecter
    By Tomas in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 25th March 2006, 17:02
  5. MAX232 Level Converter
    By HarryK in forum General
    Replies: 2
    Last Post: - 8th March 2005, 09:25

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