My chip is ignoring my PC


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    better than nothing i guess.. post it and also post your code and .HEX file
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    Ok. The PCB looks a bit crowded so it might be hard to look at. Some components are under the PCB thats why they seem to overlap.

    The code isnt the final version but it worked perfect on the breadboard tests
    Attached Files Attached Files

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Your .HEX says that you're using a XT osc... but your code says... DEFINE OSC 16... it has to be HS

    MCLR is enable.. not sure you handle it on your PCB or if you're using it as i/o in your program.. not seen in your program 'till now...

    Now you see some advantage to set the fuses in your code?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    I have to set the fuses in my programmer. I do set them to what you said.

    Anywho. I found the problem. I tried linking the serial output directly into the serial input (NO circuits at all) and it didnt work. Aparently ive blown my USB<>Serial adapter up earlier when my circuit started smoking. Ive tested it in a standard serial port and its working

    Sorry to have bothered you but thanx for the output>input idea. Cant believe i didnt think of that before

  5. #5
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    Ive just done some checks and yesterday i successfully blew up:-

    1 X MAX232 chip
    2 X 1K Resistors (violently)
    2 X PIC chips
    1 X Tri-color LED
    2 X Diodes
    1 X USB<>Serial adapter

    Not a bad day!

    Im making 2 circuits and the other one is now working perfectly. Nothing has blown up yet. I did happen to order spare PIC chips, LEDs etc and i got boxes of 1000 resistors so that all ok but the Maplin store near me only stocks 2 of the MAX232 chips at a time and wont get anymore in till Jan

    Does anyone have any interesting ways of removing a chip from a PCB? Unfortunately i didnt have any DIL sockets that fit the MAX232 so now i have to remove it. Anyone have a good way of getting chips out?

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    There's almost nothing a good hammer couldn't remove

    Is this a 2 layer typ (cop. on both side) or single?

    Usually, a mix of desoldering pump and clean solder wick do the job.

    EDIT: nice google... http://www.epemag.wimborne.co.uk/desolderpix.htm
    Last edited by mister_e; - 8th December 2007 at 12:53.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Does anyone have any interesting ways of removing a chip from a PCB? Unfortunately i didnt have any DIL sockets that fit the MAX232 so now i have to remove it. Anyone have a good way of getting chips out?
    Solder Wick.
    Heat the connection and use compressed air to blow the solder away.
    Hot air gun.

    Wire cutters
    Dave
    Always wear safety glasses while programming.

  8. #8
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Heat the connection and use compressed air to blow the solder away.
    That sounds very dangerous.

  9. #9
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Heat the connection and use compressed air to blow the solder away.
    Sounds like fun

    I dont have a desoldering tool. Ill have a look for one when i go to the Maplin in Nottingham. Not sure where i would get compressed air from but i think i could put something together. Other than that i look like cutting the pins off the chip with a stanley knife and desoldering them 1 at a time.

    Im gonna see if Maplin have some DIL sockets too and hopefully when i turn it on again it wont start smoking.

    Thanx for the suggestions

  10. #10
    Join Date
    Dec 2007
    Location
    Cd. Juarez, Mexico
    Posts
    8


    Did you find this post helpful? Yes | No

    Default

    Hi, the easiest way to verify to circuit (at least the max232 part) is to put a jumper between tx and rx pins (ttl section), so everything you write down to the PIC will be send it back to the computer, remember this is just to verify the max232 part. For the PIC section you must write a little code to turn on and off a pin every time the PIC receive a message from PC. At least this is what I do every time I want to be sure my hardware works correctly.

    Regards

Similar Threads

  1. Camera with PIC chip
    By The Master in forum Off Topic
    Replies: 5
    Last Post: - 1st July 2008, 14:28
  2. Sending menu to PC from PIC16F876A
    By joseph Degorio in forum Serial
    Replies: 2
    Last Post: - 12th November 2007, 07:03
  3. Chip to PC problem
    By Zcircuit in forum Serial
    Replies: 1
    Last Post: - 14th August 2007, 21:31
  4. any usb to pc chip interface for pic16f84
    By micro in forum General
    Replies: 1
    Last Post: - 29th December 2005, 19:16
  5. Interrupt and Serial communication to PC.
    By obaskirt in forum mel PIC BASIC
    Replies: 2
    Last Post: - 17th June 2005, 20:01

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