12f675_fuse_about_to_blow!


Closed Thread
Results 1 to 40 of 929

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    The worlds most 'Obsessive' but slow programmer has now got a ' ListBox' that is receiving data from the PIC. Ok, it's mainly gibberish interspersed with the odd number but it's progress (I know, evolution happens faster then my programs)

    Probably not something for a business card
    I agree. How about a perfume....? Maybe not thinking about it

    Dave

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


    Did you find this post helpful? Yes | No

    Default

    COOL!!!!
    But why are you sending gibberish to the PC?

    yea, a par fume. Love that new chip smell

    Just wondering if the VB program has the port set different than the chip?
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Hi mackrackit,

    The VB Port is set at:

    Code:
    SerialPort1.PortName = "COM1"
            SerialPort1.Parity = IO.Ports.Parity.None
            SerialPort1.BaudRate = 2400
            SerialPort1.DataBits = 8
            SerialPort1.StopBits = 1
    The PIC is:

    Code:
    SEROUT2 PORTC.3, 16780, [DEC z, 10, 13]
    Does that look ok?

    Dave

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


    Did you find this post helpful? Yes | No

    Default

    That looks correct to me.
    Is this using the USB converter?
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Is this using the USB converter?
    Yes it is. The PIC to serial Communicator via the USB converter worked 100%, which was a good bench test for the VB program.

    I've modified the PIC program to transmit a RANDOM BYTE rather than a RANDOM WORD code below:

    Code:
    A VAR WORD
    X VAR WORD
    Y VAR WORD
    Z VAR BYTE
    
    main:
    Random A
    Y = A * 100
    X = DIV32 25700
    LET Z = X
    
    SEROUT2 PORTC.3, 16780, [DEC z, 10, 13]
    pause 4000
    GOTO MAIN
    PYTHON might still be the answer yet.

    Dave
    Last edited by LEDave; - 6th September 2010 at 12:44.

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


    Did you find this post helpful? Yes | No

    Default

    Have you tried setting the port parameters in device manager? Maybe VB relies on those settings?
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Have you tried setting the port parameters in device manager?
    A good idea that mackrackit, the baud rate was set differently but when adjusted still the same sort of input.

    I think my program needs adjusting / more work, Ill have another look tonight.

    Dave
    Last edited by LEDave; - 6th September 2010 at 16:03.

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