"hello world" with 18f6680 - Page 2


Closed Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 41 to 80 of 92
  1. #41
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    Looking at some of the holes, they don't seem to be plated thru.
    It could be reflections from the other side or something.
    If I remember right, from the other Treadbot thread, these are homemade PCB's correct? Probably not plated thru holes unless he's got some fancy-shmancy equipment.
    But that's easy enough to work around.
    I'm rooting for that to be the fix..........Big bucks....no whammy's......STOP!

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


    Did you find this post helpful? Yes | No

    Default

    the treadbot board was homemade... this ones not... i can get these made at Alberta Printed Circuits for less than it costs me to make them.. and these ones have thru-plating and better traces..

  3. #43
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dragons_fire View Post
    the treadbot board was homemade... this ones not... i can get these made at Alberta Printed Circuits for less than it costs me to make them.. and these ones have thru-plating and better traces..
    I lost again...
    I forget...aren't you 'just up the street' from me? Calgary or something?

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    I lost again...
    Me too.
    <br>
    DT

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


    Did you find this post helpful? Yes | No

    Default

    yeah... . i just dont know about this board...

    im in Calgary, and its -42C with the windchill and im workin outside...

    Alberta Printed Circuits has a prototyping service that is two boards, double sided with thru-plating... these two boards (the top and bottom were joined together and then i cut it after) were about 3.2" X 2.5", and cost around $36 total... so each board was $13 and there made next day.... its almost not worth it for me to make them....

    so i have another board the same as this one, so i might pick up another PIC and try it all again just in case i shorted something or the PIC is bad...

    I have no affiliation with apcircuits, but they do good work and they have helped me through design problems so if youre looking for somewhere to make some boards, take a look at them...

    eagle cad takes the schematic (which is easy to make and troubleshoot) and makes it into a board, then i email that to apc and then solder it together... there isnt a lot i can do wrong if the design is right, and the soldering is right...

  6. #46
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dragons_fire View Post
    yeah...i just dont know about this board...
    Desoldering a TQFP without a desoldering tool...heat the pins up, bend them up with something. If it's not the chip, you can probably resurrect the chip by laying it flat on a suitable spacer and flattening the pins back down with a toothpick...works for me anyways.

    im in Calgary, and its -42C with the windchill and im workin outside...
    Yep, in Minot. You guys sent us this Alberta Clipper! And it rocks!!! Radio is saying -15F with -52F windchill (whipping up out there about 25-45MPH).

    Alberta Printed Circuits has a prototyping service that is two boards....
    Personally, I use www.pcbexpress.com, but that's only because I've got an older version of Protel 2.7.5 and they support it. If I only had Gerber files to work with, I'd probably go with APCircuits.

    so i might pick up another PIC and try it all again just in case i shorted something or the PIC is bad...
    Get one with an internal OSC option, like the 18F6723 or something...unless you need the CAN option. Incidentally, it's really easy to overlay an 80pin TQFP over the top of a 64pin TQFP and give you both options. When I made those 80pin TQFP -> dual 40 pin/IDC adapters awhile back, I did exactly that...made the center of the PCB able to take either an 18F6720 (64 pin) or an 18F8720 (80 pin)...same layout, just added 2 pins at each end on each side, spacing still the same, etc.etc.etc.

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


    Did you find this post helpful? Yes | No

    Default

    the only reason i went with this PIC, is cause of microchips little PIC selector charts. it had the right number of I/Os, and a lot of memory... i think the next time, i will go with an 80-tqfp and something that will support external program memory.. then i should be able to start with the basic flashing led on internal memory, and slowly move up to more advanced...

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


    Did you find this post helpful? Yes | No

    Default

    Well I've only got one more possibility.

    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2314&stc=1&d=120163702 7" />

    Some of the via's under the PIC are Really close to the pins.
    And there's no way to tell from the picture.
    It would take an ohm meter to know if they're shorted or not.

    But, since you're going to try the second PCB ...

    If you send me the first one, I WILL find why it's not working.
    <br>
    Attached Images Attached Images  
    DT

  9. #49
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    well, if i get the second one going, i may send it to you if ya want... i really only need one, but its still easier and cheaper to get 2 made...

    i have never tried microchips "free" trials before. i may have to do that and try a few of the different PICs.

    i can program it, and it draws very little current, so i dont think the power pins are shorted. and if the I/O pins were shorted, i should still have voltage on my pin since im making every pin high.

    the only problems i could see from shorting, is if i shorted an i/o to ground, and its pulled too much current. or if mclr is connected to ground or something else it shouldnt be...

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dragons_fire View Post
    well, if i get the second one going, i may send it to you if ya want... i really only need one, but its still easier and cheaper to get 2 made...
    I'll send it back when I'm done. And you might want to know what's wrong before you do the second one.

    i can program it, and it draws very little current, so i dont think the power pins are shorted. and if the I/O pins were shorted, i should still have voltage on my pin since im making every pin high.

    the only problems i could see from shorting, is if i shorted an i/o to ground, and its pulled too much current. or if mclr is connected to ground or something else it shouldnt be...
    On the right side of the last picture I posted, there are 2 lines.
    The bottom one is pointing to a via that is between GND and one of the oscillator pins.
    If that ones shorted, it probably won't draw much current, but the oscillator won't work.
    And if there's no OSC, then shorts on the other pins won't draw current either, cause they never get turned on.

    But again, no way to know without an ohmmeter.
    <br>
    DT

  11. #51
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    i checked both osc pins to ground with my meter when i soldered the osc... since it was so small, i checked it to make sure i didnt have any solder bridges on the OSC.

    you guys are great though... if it wasnt for your suggestions, i would have given up on it long ago...

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


    Did you find this post helpful? Yes | No

    Default

    Ok, well it's up to you.

    It's just that I've been looking at it long enough that I'd really like to know what the problem is.

    I have a hot air re-work station, oscilliscope DVM's etc.
    <br>
    DT

  13. #53
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    Ok, well it's up to you.
    It's just that I've been looking at it long enough that I'd really like to know what the problem is.
    I have a hot air re-work station, oscilliscope DVM's etc.
    <br>
    Tin-whisker anyone?

  14. #54
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    i have an oscilliscope (sorta)!!! i dont know how to use it or if it will even work... but it was fun to play around with... i want to know what the problem is so i can move on with this project...

    thats my oscilliscope in the bottom right corner... its an RCA and meant for back in the tube days....



    and if you look close on the shelf, you can see treadbot sitting there!!!

  15. #55
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    i have juast gone over the board quickly, i will do it again tomorrow when i have more time, but i get:

    0 ohms between all +5v traces
    0 ohms between all gnd traces
    30M ohms between all I/O pins and +5V
    1M ohm between power and ground
    4-12M ohms between all I/O pins and gnd
    17M ohm between OSC2 and gnd
    12M ohm between OSC1 and gnd
    29M ohms between OSC2 and +5v
    23M ohms between OSC1 and +5v

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


    Did you find this post helpful? Yes | No

    Default

    I'm jealous!

    I want a mill and a lathe and a drill press and a belt sander and a jig saw and a bench grinder and a ... better scope.
    <br>
    DT

  17. #57
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    I'm jealous!
    I want a mill and a lathe and a drill press and a belt sander and a jig saw and a bench grinder and a ... better scope.
    <br>
    Don't forget the Get-Away car!

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    Don't forget the Get-Away car!
    Yeah, OK.
    I want one of those too.

    <a href="http://s163.photobucket.com/albums/t305/dragons_fire_photo/?action=view&current=IMG_1917.jpg" target="_blank"><img src="http://i163.photobucket.com/albums/t305/dragons_fire_photo/IMG_1917.jpg" border="0" alt="Photobucket"></a>
    DT

  19. #59
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    i take it you looked at some of the other pics on my photobucket!!! what can i say... i can NEVER have too many tools!!!

  20. #60
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    Yeah, OK.
    I want one of those too.
    Which PIC runs that?

    It's probably just a matter of time...

  21. #61
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    there isnt any PICs in it... but i took apart a sunroof motor yesterday that im using for another robot, and it has a 16F72 in it...

  22. #62
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    im still working on this board, i have checked the design twice more, and still dont see anything wrong with it.. when i connect the battery, i get just under 5V (and the PIC is good down too 2v). if i go across any I/O pin and gnd i get 0V and i get the same going from I/O to 5V.....

    if the pins were low, i should see voltage between I/O and 5V
    and if it was high i should see voltage between I/O and gnd....right??

    while i have the programmer hooked up, it goes down to about 2.5V on mclr to gnd, and then when i program, it goes up to 13V. without the programmer, its at 5V

    i have tried 3 different OSCs at 2 different speeds, and thats not helping, i know the power supply is good, so it has to be the PIC or the board..

  23. #63
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dragons_fire View Post

    and the fuses are set as:

    OSC "HS"
    <font color=red>System clock "disabled"
    </font color>power up timer "disabled"
    brown out reset "enabled"
    brown out voltage "2.0V"
    watchdog timer " enabled"
    watchdog postscaler "1:128"
    ccp2 multiplexed with "RC1"
    mclr pin function "reset"
    overflow reset "enabled"
    LVP "disabled"
    boot block "not protected"

    i'm using microcode studio, mpasm and an epic programmer.
    What does it mean system clock disabled? Does this mean no oscillator?
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  24. #64
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    What does it mean system clock disabled? Does this mean no oscillator?
    im not sure... i have tried it on both enabled and disabled. those were taken from the config settings of my programmer.

  25. #65
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dragons_fire View Post
    im not sure... i have tried it on both enabled and disabled. those were taken from the config settings of my programmer.
    System clock is actually OSCSEN.
    While a program is running, you can switch the clock source from the main clock source (crystal, R/C, whatever) over to the Timer1 clock source, and back again.

  26. #66
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    GOOD TO KNOW... i learn so much from all of you on here.... i know these PICs say they are static sensitive, but how bad is it?? should i be wearing a strap every time i think about looking at it?? or do i really need to worry about it. i know with the 16f devices i have used, they say they are static sensitive, but i have never worried about it and never had any problems...

  27. #67
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dragons_fire View Post
    GOOD TO KNOW... i learn so much from all of you on here.... i know these PICs say they are static sensitive, but how bad is it?? should i be wearing a strap every time i think about looking at it?? or do i really need to worry about it. i know with the 16f devices i have used, they say they are static sensitive, but i have never worried about it and never had any problems...
    I haven't COMPLETELY blown a PIC up with static...YET! I know how dry it gets where you're at (remember, I'm just a bit south-east of you). My 'shop' is in the basement, usually about 20% humidity in the winter, carpet on the floor, and so on and so on.
    I think, that is, THINK, the worst I've done to a PIC is blow out an output driver or two on a few PICs...and I'm not even 100% sure it was static that did it. Probably from putting them in the socket backwards, etc.
    However, I've heard that the 18F's are quite a bit more static sensitive than the 16F's were, probably due to the smaller gate size on the die...not sure...don't care. As long as I don't smoke anymore, I'm all good...

  28. #68
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    ok, i was just kind of curious... i get them from Digi-key and they come in a vacuum sealed static bag with one of those little dessicant bags in it and a humidity tester... the 16f ones, come in a little static bag thats just folded over on its self so it doesnt fall out!!

  29. #69
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    i de-soldered the pic from the board, everything looks good under there... no solder bridges or shorts of any kind.. everything looks good... i ordered another PIC so it should be here on monday and i will try that...

    i wish there was a pin compatible 16f PIC that i could throw in there and see if i could get it to work... then i would know the board is ok...

  30. #70
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask;49770[code
    DEFINE OSC 20
    pause 500
    trisa = 0 : trisb = 0 : trisc = 0 : trisd = 0
    trise = 0 : trisf = 0 : trisg = 0 : trish = 0
    start:
    porta = $ff : portb = $ff : portc = $ff
    portd = $ff : porte = $ff : portf = $ff
    portg = $ff
    pause 300
    porta = 0 : portb = 0 : portc = 0 : portd = 0
    porte = 0 : portf = 0 : portg = 0
    pause 300
    goto start
    end
    [/code]
    just wondering if doing it this way decreases code size too, or if it just makes for less typing??? im working on writing some code for this project (if i can ever get the board to work) and i know it would make the code smaller to look at if i did it as above, but i think it would be harder to write since i have labeled all my ports for what they do, so when i write it, i use those "labels"....

  31. #71
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dragons_fire View Post
    just wondering if doing it this way decreases code size too, or if it just makes for less typing??? im working on writing some code for this project (if i can ever get the board to work) and i know it would make the code smaller to look at if i did it as above, but i think it would be harder to write since i have labeled all my ports for what they do, so when i write it, i use those "labels"....
    The hex file comes out the same, this works for very organised people, who know the subject material very well, I suggest you do it the other way with loads of comments so a year from now, when your are even better than you are now . . you can make sense of what you did as you rewrite your code . . . and you will.
    JS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  32. #72
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dragons_fire View Post
    just wondering if doing it this way decreases code size too, or if it just makes for less typing??? im working on writing some code for this project (if i can ever get the board to work) and i know it would make the code smaller to look at if i did it as above, but i think it would be harder to write since i have labeled all my ports for what they do, so when i write it, i use those "labels"....
    Nope, it's just a 'me-ism' thing.
    I like to get as much code on a screen as I can. I hate scrolling up and down and if I've got a longer routine, I can bunch it all up in one page. It's my STYLE, if you can call it that.
    Some people hate it, I mean really HATE it...too bad, so sad, don't care. If a guy has half a brain, they'd know how to use the 'replace' shortcut in WORD to put a single command on each line, and if not that, they'd at least know how to split it up. For instance, my latest project is about 1700 lines of the bunched up code, fills an 18F4620...no extra line breaks, no extra spaces, no nothing, etc. If I was to spread that out, make it "right", I estimate it would take up about 8500 lines. Forget that noise. Most of the time, my 2nd monitor is turned 90 right and Windows adjusted accordingly, like it's in 'Portrait' mode instead of the normal landscape...oh and it's 1600x1200, so that really packs it in there.
    What's a guy expect for FREE help?

    But like Joe said, it's all personal preference. Get your own method, stick with it, it's all good...

  33. #73
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Talking posting your “problem code”

    skimask’s method is perfect for his style of programming.

    as Joe said: “people, who know the subject material very well”

    But if anyone wants the forum to help with their code (skimask never needs help), I wouldn’t advise posting your “problem code” in this style.

    -Adam-
    Ohm it's not just a good idea... it's the LAW !

  34. #74
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Pic_User View Post
    (skimask never needs help)
    -Adam-
    'taint so!
    I think the main difference is in the use of the 'Search' function here and at Google, or wherever...I'd be willing to bet I spend more time researching HOW to do stuff vs. actually doing it.
    And this weekend, I could sure use some help doing some sanding, and in fact, I might even need help cleaning out all of those left over full cans of preferred beverages from the 'fridge in the basement...

  35. #75
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    And this weekend, I could sure use some help doing some sanding
    i would come give you a hand, but "unfortunately" i dont have a passport!!! and i have to wait for Puralator to deliver more parts!!!

  36. #76
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dragons_fire View Post
    i would come give you a hand, but "unfortunately" i dont have a passport!!! and i have to wait for Puralator to deliver more parts!!!
    Passports? I thought all we needed was photo Gov't ID. I'd better do some checking. I've got a trip planned for this summer...here, thru the Black Hills/Rapid City, over to Yellowstone/Grand Tetons, up to Glacier (both U.S. and Canada versions), thru Banff and Jasper, up to Denali in Alaska, and back, sidestepping thru Yellowknife and back down.

  37. #77
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    sounds like a good trip... i think to fly we need a passport now, but to drive you just need two pieces of government id..

    so i noticed a while ago that i had shorted one OSC pin to 5v, would that have blown the OSC part of the chip???

  38. #78
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dragons_fire View Post
    sounds like a good trip... i think to fly we need a passport now, but to drive you just need two pieces of government id..
    It's all a bit confusing... To get into Canada, I need one thing, to get back into the U.S., I need other things. Gotta do more looking.

    so i noticed a while ago that i had shorted one OSC pin to 5v, would that have blown the OSC part of the chip???
    I wouldn't think so, but...you know how far that goes...
    In external modes with crystals, the crystal/resonator is driving a differential amp inside the PIC (variable gain set by the CONFIG registers). I suppose if you had OSC1 driven to +5v and OSC2 driven to ground, you might blow it out (maximum differential = maximum output). Not really sure about that theory though, and surely not about to try it out.

  39. #79
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    my stuff just got here a couple minutes ago, and so i soldered a new PIC to the board, and it WORKED!!!!

    thanks to all the guys that had suggestions about why it didnt work, but it seems good now.. i just need to solder the top board back on (i was using jumper wires while testing)....

  40. #80
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dragons_fire View Post
    i would come give you a hand, but "unfortunately" i dont have a passport!!! and i have to wait for Puralator to deliver more parts!!!
    That only matters if you come from the north!
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

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 : 1

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