Help with pic16f690 -max232cpe


Closed Thread
Results 1 to 37 of 37

Hybrid View

  1. #1
    Join Date
    Apr 2010
    Posts
    21


    Did you find this post helpful? Yes | No

    Thumbs up Got it working but not proud

    Okey so finally i got this working, but the story about how i did it is kinda BAD.

    So after a while i was beginning to wonder why it was reading wrong voltages. and i knew the connections where right, until i look really close to the serial cabel, i used a rs232 to rj45 and a cat5 cabel, but i somehow got the colors mixed up. So ground was not connected. heh.... well u think stupid you, and yes stupid me. not going to that mistake again. So then i started to check the connection on my breadboard and pow it splits in the middel where i had put my pic. so basicly i had half of the earth connections not connected. And i connected it this way after it was connected the right way. but then i did not have the pin 5 from rs232.

    Maybe it's a lesson to learn from all of this. ALWAYS check ur cabel and make sure pin5 is connected.

    BTW how many times have i answerd What colour is a ripe tomato?
    lost count

    Sorry to have wasted everybodies time but i really appricihate it.

    And i did learn alot from searching and reading around the net.

    Thx for all the help once again and sorry that im such an idiot

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


    Did you find this post helpful? Yes | No

    Default


    Glad you got it working.
    Do not be sorry for making a mistake, it happens to all of us.
    I spent a just spent a couple days in something and the problem was not turning the ADC off!!! How many times have I told others to check that? More times than a tomato is ripe!!!
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Apr 2010
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    yeah but still.
    One more question tough. why cant i run a for loop?

    for count = 1 to 40
    pulsout PORTC.1,200
    pause 20
    next count

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


    Did you find this post helpful? Yes | No

    Default

    COUNT is a reserved word, a command actually.
    Change it to CNT ot something and it should work.
    Code:
    for CNT = 1 to 40
    pulsout PORTC.1,200
    pause 20
    next CNT
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Apr 2010
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    i ended up with a while loop, but il try the for loop.

    Thx for the help. Il be coming back, waiting for a gps module it should be here in a couple of days
    Code:
        i = 1
        while i<40
            pulsout PORTC.1,pos
            i=i+1
            pause 20
        wend
    the for loop gave me and syntax error

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by krise86 View Post

    the for loop gave me and syntax error
    Did you try CNT? Did you declare CNT as a variable?
    Dave
    Always wear safety glasses while programming.

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts