"hello world" with 18f6680


Closed Thread
Results 1 to 40 of 92

Hybrid View

  1. #1
    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 dragons_fire View Post
    so i want it like this???


    CONFIG OSC = HS

    CONFIG LVP = OFF

    CONFIG BOR = OFF

    CONFIG MCLRE = ON


    and not like this??

    __CONFIG _CONFIG1H, _OSC_HS_1H
    __CONFIG _CONFIG2H, _WDT_OFF_2H & _WDTPS_128_2H
    __CONFIG _CONFIG4L, _LVP_OFF_4L

    i tired changing it, and i switched to a 10Mhz resonator that i know works, and im still having this problem.. do you think it could be the chip? or if there was a problem with it, would i still be able to program it and read the code back??

    thanks for the help guys
    See this
    http://www.picbasic.co.uk/forum/show...87&postcount=6
    But I guess it was fixed in 2.47?

    Get the bread board stuff or a ZIF socket for developing. Will save a few headaches, may add a few too, but they will be different
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    ok.... i think i saw that before, but it didnt make any sense... i think i get it now...

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


    Did you find this post helpful? Yes | No

    Default

    Somethings confusing me here.

    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2301&stc=1&d=120156330 8" />

    The schematic shows GND on pin 1 of the ICSP connector.
    But Pin2 (+5V) goes to the center pin of the resonator.

    Is the schematic wrong? Or am I looking at the pins wrong?
    <br>
    Attached Images Attached Images  
    DT

  4. #4
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    just going through the datasheet for the 6680 again, it says i may need a resistor between OSC2 and the resonator if its an AT strip cut crystal... how do i know if i need that resistor???

  5. #5
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    Darrel, i just looked at it, and i thought you had found it.. i stuck my meter on it and it says its correct. so i went back to the schematic and looked. its the otehr 5-pin header on the schematic that is for ISCP, the one you highlighted goes to the other board, and comes from the power supply. its the straight header on the board.

    i wish you were right... then i would actually know what i did wrong...

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


    Did you find this post helpful? Yes | No

    Default

    Yup, should have, should have seen that.

    Can you show the board layout's?
    It's hard to follow past the via's.
    <br>
    DT

  7. #7
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    ill see what i can do about the layout.. ive looked over it and it seems ok, but what do i know!!! i used eaglecads autoroute function so everything "should" be connected properly...

  8. #8
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default



    theres the image of the board, and i will attach the eagle file here too.

    i labelled all the "important" pins. the rest go to I/Os.... and MCLR2 resistor, is a 1Mohm resistor, and its for PGM. i just didnt relabel it when i put it in there... and there was an issue with the gnd side of the caps, so i ran a jumper wire from there to the ground pin..
    Attached Files Attached Files
    Last edited by dragons_fire; - 29th January 2008 at 02:02.

Similar Threads

  1. 18f6680 N/C
    By mackrackit in forum Off Topic
    Replies: 2
    Last Post: - 29th April 2008, 20:21
  2. need help with "hello world" in hyperterm
    By ericmiles in forum Serial
    Replies: 3
    Last Post: - 31st October 2007, 15:08
  3. 18F6680 and portd problems.
    By jkbh in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 6th June 2005, 10:54

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