Help with pic16f690 -max232cpe


Closed Thread
Results 1 to 37 of 37

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Is the ground (pin #5) of the serial connector really connected to +5 volts like the schematic?

  2. #2
    Join Date
    Apr 2010
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scalerobotics View Post
    Is the ground (pin #5) of the serial connector really connected to +5 volts like the schematic?
    No just i did not lay to much work in the schematics. but no it's connected to ground

  3. #3
    Join Date
    Apr 2010
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    here is the updated right one.

    And i found a probleme wich seems od. when using any freq other than 4mhz the buad rating is all wrong.
    check out this forum discussion about it

    http://www.mikroe.com/forum/viewtopic.php?f=13&t=11114
    Attached Images Attached Images  

  4. #4
    Join Date
    Apr 2010
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    I found another forum thred about turning the MCLRE_OFF

    how do i do that?

  5. #5
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by krise86 View Post
    I found another forum thred about turning the MCLRE_OFF

    how do i do that?
    Check the configuration word register. Page 201 of the data sheet.

  6. #6
    Join Date
    Apr 2010
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scalerobotics View Post
    Check the configuration word register. Page 201 of the data sheet.
    that okey, but how do i do it in picbasic?

  7. #7
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    You can put them in your program, or you can edit them in PBP files. Either way, you will have to go to your PBP files, and find the one specific to your chip. Look for the 16f690.inc file, and either edit, or comment out the line

    Code:
    ;        __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _CP_OFF
            __config _HS_OSC & _WDT_ON & _MCLRE_OFF & _CP_OFF
    It is easiest to just to comment it out, then copy and paste it back into the same file with your changes. That way you will be able to go back to the default. Many people prefer to comment it out in this file, then put it into their PBP code. To to this, you would add a line at the top of your program, like this:

    Code:
    @        __CONFIG _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _CP_OFF
    See http://www.picbasic.co.uk/forum/showthread.php?t=543 for a more in depth look

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