Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Anyone currently working with 18f2550

  1. #11
    MySQL Error jcdillin's Avatar
    Join Date
    May 2003
    Location
    Miami, FL
    Posts
    4,043
    Quote Originally Posted by lez View Post
    inbuilt 8mhz you say...........

    Yup comes in quite handy in keeping the parts count low.

    Let me know if I can help further.
    肚子笑痛了
    S60 Install

  2. #12
    lez
    lez is offline
    FLAC lez's Avatar
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,334
    have you done any coms with it, I ported the f88 code to it, only needed port register changes.

    Anyhow, powered it up, all looked fine, plugged it onto the mobile phone, nothing from phone.

    Plugged it into a serial/usb dongle, garbage.........

    I dont have much of an answer for this as I'm using picbasic, its hard to get the commands wrong.........

    Noticed it seems to run a little fast, got a 16mhz on it and a 'def osc 16' in the code so I'm puzzled.

    I have noticed some programmer allows you set a divider in the fuses, makes me wonder if thats a clue.
    Lez, more widely known as flez1966

  3. #13
    lez
    lez is offline
    FLAC lez's Avatar
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,334
    Fixed it, I have to set the fuses/config in the programmer software, it defaults to stupid pll /3 and osc/5

    setting them to none and /4 works and I get good serial data again.

    I suppose if I go with the internal clock then I'll have to set it to /2, but I dont know how stable that will be, early pics when on internal would drift a bit
    Lez, more widely known as flez1966

  4. #14
    lez
    lez is offline
    FLAC lez's Avatar
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,334
    I mistyped this in a program ( I quickly wanted to blink an LED on portA)

    high porta.1
    pause 500
    high porta.0
    pause 500
    high porta.1
    pause 500
    high porta.0
    pause 500
    high porta.1
    pause 500
    high porta.0
    pause 500

    See the problem, they all should be portA.0, so in theory the LED on PortA.1 should light, slight pause, then the LED on PortA.0 should light.

    Ha, no it doesnt, well OK it does BUT the first led (on PortA.1) goes out, and instead of 2 leds being on, I get alternating leds ????

    Ie

    01
    10
    01
    10

    I expected

    01
    11
    11
    11

    ?? eh ??
    Lez, more widely known as flez1966

  5. #15
    MySQL Error jcdillin's Avatar
    Join Date
    May 2003
    Location
    Miami, FL
    Posts
    4,043
    thats really strange. I dont see how it's flashing back and forth with that code. Unless they are too high of a MA LED and it's overloading the port and shutting down.
    肚子笑痛了
    S60 Install

  6. #16
    lez
    lez is offline
    FLAC lez's Avatar
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,334
    (mA)

    No if I 'for n=0 to 64' I can have them all as normal.

    I just downlaoded a simulator and cut and pasted the code into it and get 2 leds on, as sanity says you should.

    I actually use porta.0 as door lock signal, and porta.1 as unlock so I dont want errors like this !

    I have posted on the picbasic forum, hell its their software, but it works fine on the f88.

    I may have an analog setting wrong or something, that adcon, cmcon and other 'con' keywords always seem to cause me bother.
    Lez, more widely known as flez1966

  7. #17
    lez
    lez is offline
    FLAC lez's Avatar
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,334
    fixed it for now with 'alldigital'

    so it must have been a 'con' keyword wrong.
    Lez, more widely known as flez1966

  8. #18
    MySQL Error jcdillin's Avatar
    Join Date
    May 2003
    Location
    Miami, FL
    Posts
    4,043
    ah yeah, always seems i'm having to tweak adcon or cmcon to get things working right.

    good to hear you figured it out
    肚子笑痛了
    S60 Install

Page 2 of 2 FirstFirst 12

Similar Threads

  1. OBDII / Elm MPG meter. Almost working but not quite!
    By stevieg in forum Engine Management, OBD-II, Engine Diagnostics, etc.
    Replies: 105
    Last Post: 08-19-2008, 04:24 AM
  2. TS working... not working... work... not...
    By bulgogi777 in forum General Hardware Discussion
    Replies: 28
    Last Post: 01-11-2005, 10:25 AM
  3. AT&T Sierra Aircard 775 working on Mac OS X
    By rsanchez28 in forum Wireless Communications
    Replies: 0
    Last Post: 11-21-2004, 02:18 PM
  4. All built and working, just one last problem......
    By Matthew230 in forum Power Supplies
    Replies: 2
    Last Post: 10-18-2004, 05:02 PM
  5. Got GPS 16 working
    By tekknikal in forum General Hardware Discussion
    Replies: 9
    Last Post: 06-16-2002, 07:55 PM

Bookmarks

Posting Permissions

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