"hello world" with 18f6680


Closed Thread
Results 1 to 40 of 92

Hybrid View

  1. #1
    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!!!

  2. #2
    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.

  3. #3
    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???

  4. #4
    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.

  5. #5
    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)....

  6. #6
    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.

  7. #7
    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 Joe S. View Post
    That only matters if you come from the north!
    Sad but true
    Dave
    Always wear safety glasses while programming.

  8. #8
    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
    That only matters if you come from the north!
    Really?? so when we are told that the USA is changing it to the same regulations canada has when you guys try to come up here, its not really true???


    so i got the board working, and it all seems ok, except for my LCD. the LCd im using is a 24-pin DIP. one pin is common, and the rest are linked directly to one segment. i can get it to work somewhat, but sometimes certain segments dont dissapear when they are supposed to, and others dont always appear when they should.. i think maybe its cause the traces are so close together, and i cant clean all the flux off...

  9. #9
    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
    Really?? so when we are told that the USA is changing it to the same regulations canada has when you guys try to come up here, its not really true???
    I took it that Joe meant coming into the US from the south. Regulations do not seem to matter here for that. Illegal boarder crossing seems to be encouraged.
    Dave
    Always wear safety glasses while programming.

  10. #10
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dragons_fire View Post
    Really?? so when we are told that the USA is changing it to the same regulations canada has when you guys try to come up here, its not really true???
    I got a friend who works the border just north of Antler, ND. (southwest of Regina by quite a bit). I'm going to ask him this weekend.

    so i got the board working, and it all seems ok, except for my LCD. the LCd im using is a 24-pin DIP. one pin is common, and the rest are linked directly to one segment. i can get it to work somewhat, but sometimes certain segments dont dissapear when they are supposed to, and others dont always appear when they should.. i think maybe its cause the traces are so close together, and i cant clean all the flux off...
    Flux - rubbing alcohol (standard grocery store stuff) and cotten swabs and/or those acid brushes (or just a small stiff paint brush) work wonders. Overnight soaking doesn't help, re-heating the flux with an iron doesn't work. Just good ol' elbow grease.

    What kind of LCD do you have that has 24 pins? Is this one of those 7-segment types?
    You should look into the whole Nokia-knock-off LCDs (check www.sparkfun.com). Easy to control, 6 lines from the PIC, 130x130 pixels, and in color. I'm having a blast with mine.

  11. #11
    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

    Flux - rubbing alcohol (standard grocery store stuff) and cotten swabs and/or those acid brushes (or just a small stiff paint brush) work wonders. Overnight soaking doesn't help, re-heating the flux with an iron doesn't work. Just good ol' elbow grease.

    What kind of LCD do you have that has 24 pins? Is this one of those 7-segment types?
    You should look into the whole Nokia-knock-off LCDs (check www.sparkfun.com). Easy to control, 6 lines from the PIC, 130x130 pixels, and in color. I'm having a blast with mine.
    the LCD im using is the seven segment type. it had 3 digits and two decimal points. there is 24-pins (one common, 3digits*7segments is 21 pins, and then the two decimal points. im using a 4x20 serial LCD for debugging and showing lots of info, but i would like to have this on top just to show small amounts of info. these things were pretty cheap, so i thought i would try it. and the datasheet shows the pinout but thats about it. they dont have current of voltage ratings, so i tried it on the breadboard and it seems to work at 5V and my meter doesnt show any current. it also seems as though it will "light" up all the way down to .5V (maybe lower but thats as far as i tried). so im thinking i might be getting inductance or a little leakage off of the flux on the traces that are beside each other.

    i was thinking about the nokia lcd, and i would like it, but i wanted to keep this really small and simple. i havent looked at what it takes for code space either.. is it the same as a parallel LCD?? my little 3 digit one takes lots just because i need to tell it to turn on different ports.

    im working on a flight data recorder for my rc airplanes, and i know there are some out there that i could buy for cheaper than i can make (i already have one too), but i would like to make my own. i will try to post a pic when i get home tonight..

  12. #12
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dragons_fire View Post
    these things were pretty cheap, so i thought i would try it.
    Keep your eyes on eBay. You can 8x1 LCDs, parallel types compatible with the LCDOUT statement for dirt cheap. I've got about a dozen extra's laying around just for that purpose.

    so im thinking i might be getting inductance or a little leakage off of the flux on the traces that are beside each other.
    I'd doubt it, but anything is possible. More likely you're getting a leak from a 'hidden ground' thru some other pins or thru a couple of extra diodes somewhere.

    i was thinking about the nokia lcd, and i would like it, but i wanted to keep this really small and simple. i havent looked at what it takes for code space either.. is it the same as a parallel LCD?? my little 3 digit one takes lots just because i need to tell it to turn on different ports.
    Not even close to a parallel LCD...
    The font takes up about 500 bytes of EEPROM, the code itself and subroutines to run the thing, I'd guess about 8K at the most, including the graphics subroutines.
    But think about it...once you get the routines written and they work, it's just a matter of 'INCLUDE'-ing them in your latest project.

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


    Did you find this post helpful? Yes | No

    Default

    i made the code for this LCD as a seperate file, and just "include"d it into the main program. its actually the first time i have used the include command. now that i think about it, i should make sure i labelled all my ports properly for the display.

    i know there is cheap parrallel displays around that are 2x8 or 2x10, so i might think about one of them...

    ive been thinking about redesigning it and including some other stuff that i would like too. there is going to be a parallax GPS in this project, and i need to do some calculations for directions, so i need to use arctan. i think it might be easier to include a math coprocessor to do the calculations... i would also like to change the voltage regulatorto something that can supply more current, since im using the same supply for multiple things.

    i will probably get this thing going and use it to test all the other "bits" i want to add, then after i have things working, i will make a new design and include more stuff.

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