Announcement

Collapse
No announcement yet.

U2 Programmer testing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • U2 Programmer testing

    Any body knows how to check the USB U2 Programmer for problems ?
    It worked whit F12 and 16f688 (have Problems whit 16F88)
    USB U2 Default Com 1.

    I also have a serial programmer unfortunately it appears Pic Basic Pro Gold is not recognizing it !
    It was my intention to trie it whit the serial Programmer
    I am running Win 8.1and yes I have a serial card installed !

    Ps:I also have a EPIC Parallel programmer (parallel port installed)
    I have not tried it at the moment .

  • #2
    In the meProg software, you can select the correct device in the dropdown list, then click Program - Get Target Information. If the resulting dialog reports that the target id matches, the programmer is working.

    Do you receive an error message?
    Charles Leo
    ME Labs, Inc.
    http://melabs.com

    Comment


    • #3
      Originally posted by Charles Leo View Post
      In the meProg software, you can select the correct device in the dropdown list, then click Program - Get Target Information. If the resulting dialog reports that the target id matches, the programmer is working.

      Do you receive an error message?

      MY U2
      Firmware V. 5.9
      Target ID 0768
      This is working

      Please see attached program:


      '****************************************************************
      '* Name : TEST_0_16F88_config_3 *
      '* Author : [WVA] *
      '* Notice : Copyright (WVA) 2014 *
      '* : All Rights Reserved *
      '* Date : May/
      2015 *
      '* Version : 1.0 *
      '* Notes : INITIAL_SETUP_16F88 *
      '* : *
      '****************************************************************
      ;----[16F88 Hardware Configuration]---------------------------------------------

      ;----[16F88 Hardware Configuration]---------------------------------------------

      #IF __PROCESSOR__ = "16F88"
      #DEFINE MCU_FOUND 1

      #CONFIG
      cfg1 = _INTRC_CLKOUT ; INTRC oscillator; CLKO function on RA6/OSC2/CLKO pin and port I/O function on RA7/OSC1/CLKI pin
      cfg1&= _WDT_OFF ; WDT enabled
      cfg1&= _PWRTE_OFF ; PWRT disabled
      cfg1&= _MCLR_ON ; RA5/MCLR/VPP pin function is MCLR
      cfg1&= _BODEN_ON ; BOR enabled
      cfg1&= _LVP_OFF ; RB3 is digital I/O, HV on MCLR must be used for programming
      cfg1&= _CPD_OFF ; Code protection off
      cfg1&= _WRT_PROTECT_OFF ; Write protection off
      cfg1&= _DEBUG_OFF ; In-Circuit Debugger disabled, RB6 and RB7 are general purpose I/O pins
      cfg1&= _CCP1_RB0 ; CCP1 function on RB0
      cfg1&= _CP_OFF ; Code protection off
      __CONFIG _CONFIG1, cfg1

      cfg2 = _FCMEN_ON ; Fail-Safe Clock Monitor enabled
      cfg2&= _IESO_ON ; Internal External Switchover mode enabled

      __CONFIG _CONFIG2, cfg2

      #ENDCONFIG

      #ENDIF

      ;----[Verify Configs have been specified for Selected Processor]----------------
      ; Note: Only include this routine once, after all #CONFIG blocks
      #IFNDEF MCU_FOUND
      #ERROR "No CONFIGs found for [" + __PROCESSOR__ +"]"
      #ENDIF


      'define OSC 4
      OSCCON=%01100000
      cmcon = 7 'comparator off
      ADCON1 = 7 'analog digital of
      ANSEL=0 'set i/o to digital

      TRISA=%11111111 'all A ports inputs
      'PORTB=%00000000 'Initiate all port B pins to 'low
      'TRISB=%00000000 ' all ports outputs

      main:
      PORTB.0=1 'LED of
      'PORTB.1=1
      pause 1000 'Delay 1/2 second
      PORTB.0=0 'LED on
      'PORTB.1=0
      PAUSE 1000 'Delay 1/2 second
      goto main 'Loop back and do it again

      Comment


      • #4
        Your TRISB setting is commented. The PORTB.0 pin is configured as an input.
        Charles Leo
        ME Labs, Inc.
        http://melabs.com

        Comment


        • #5
          Originally posted by Charles Leo View Post
          Your TRISB setting is commented. The PORTB.0 pin is configured as an input.
          Thank you for your help Leo .
          I corrected the Port .

          TRISB=%1100000

          However :
          When I compile and program the U2 has no red light flashing and
          gives me a Hex code LIKE:

          0000 2828 01a3 00a2 30ff 07a2 1c03 07a3 1c03 .

          when I open the hex file in my me PROG and program it appear the red light is flashing
          however my hex file looks different:
          0000 009d 01a3 00a2 30ff 07a2 1c03 07a3 1c03

          and the pic is still not operating

          Comment


          • #6
            USB U2 Not programming ?

            USB U2 Not programming ?

            Any body knows please Help:
            PS: My first languish is German
            typing on a German keyboard

            I have installed :

            PBP #3 Gold
            Micro Code Studio Plus V 5.0.0.5
            Compiler V PBPX 3.0.6.4
            MPLAB IDE V 8.85

            Programmer : USB U2 melabs 4.5. Firmware 5.9
            Chip Target info ID 09A4 (16F877)

            My problem started when I tried to program PIC16F88.

            So I went back to BASICs:
            I use the USB U2 melabs with a LAB-X2 from meLAB
            Chip is 16F877-20/P .
            Yes power is supplied to the LAB-X2
            My programmer gets power from a powered USB Port

            My program is blink3x2 from meLAB sample library for the LAB-X2

            When I go [program compile inMicro Code Studio] it appears every thing is fine however
            the red programming LED on the U2 Programmer is not flashing !
            And I don’t get the desired results on the LAB-X2

            When I program from the meLAB Programmer it appears to program just
            fine [the red led is flashing].unfortunate I don’t get the desired results on the LAB-X2.
            Except now the hex code is changed !

            Comment


            • #7
              If the target device ID reads correctly, then the programmer is working.

              If you wish to return all the settings to default to rule out a problem there, click Options > More Options > Set Options to Default.

              If you're still having problems, it's likely related to your program or configuration. I believe you have multiple open threads on that issue elsewhere on the forum.
              Charles Leo
              ME Labs, Inc.
              http://melabs.com

              Comment

              Working...
              X