PDA

View Full Version : USB U2 Not programming ?



MERLIM
- 15th June 2015, 19:25
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 toprogram PIC16F88.


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


My program is blink3x2 from meLABsample library for the LAB-X2
When I go [program compile inMicro CodeStudio] it appears every thing is fine however
the red programming LED on the U2Programmer is not flashing !
And I don’t get the desired resultson the LAB-X2


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


' Name : BLINK3X2.pbp
' Compiler : PICBASIC PRO Compiler 2.6
' Assembler : PM or MPASM
' Target PIC : 28/40-pin PIC types compatible with LAB-X2 board
' Hardware : LAB-X2 Experimenter Board
' Oscillator : 4MHz external crystal
' Keywords : FOR NEXT
' Description : PICBASIC PRO program to blink 3 LEDS in sequence.
' 16F877
' Define LOADER_USED to allow use of the boot loader.
' This will not affect normal program operation.
'Define LOADER_USED 1

i Var Byte ' Define loop variable
LEDS Var PORTB ' Alias PORTB to LEDS
TRISB = %00000000 ' Set PORTB to all output
mainloop:
LEDS = 1 ' First LED on
Pause 500 ' Delay for .5 seconds
For i = 1 To 2 ' Go through For..Next loop 2 times
LEDS = LEDS << 1 ' Shift on LED one to left
Pause 500 ' Delay for .5 seconds
Next i
Goto mainloop ' Go back to mainloop and blink LED forever
End

Demon
- 15th June 2015, 21:11
Are the oscillator jumpers set properly on the Lab X2?

Is the PIC installed properly?

Robert

MERLIM
- 16th June 2015, 00:58
Are the oscillator jumpers set properly on the Lab X2?

[No Oscillator jumpers 4 MH Crystal only]

Is the PIC installed properly?
[Notch in the wright direction]
[I hope so, I puled it up and pressed it down]
I hope so, I puled it up and pressed it down
it reads the chip and erases.
Only one jumper for 5k Pot

I hope so, I puled it up and pressed it down
it reads the chip and erases.

Demon
- 16th June 2015, 01:45
Maybe voltmeter on Lab X2 transformer jack to make sure it's working?

Are there other chips installed on Lab X2 that might interfere?

MERLIM
- 17th June 2015, 01:04
Maybe voltmeter on Lab X2 transformer jack to make sure it's working?
My power supply is from a regulated filtered 3A 12v Omron
LAB_x hase a 7805 regulator
chip has 5 v power
Jack is working, led is on !
Are there other chips installed on Lab X2 that might interfere?
No no other chips are installed.


The only reason I switch to the 16F877 was because I have one
and I installed it in the meLab LAB-x2 board

I want to make sure everything is from meLab and hopefully works
together including there program samples.

U2 programer, cable, LAB-X2 board , recommended PIC chip,
and there sample software (blink3x2) .

MERLIM
- 19th June 2015, 00:01
Are the oscillator jumpers set properly on the Lab X2?

[No Oscillator jumpers 4 MH Crystal only]

Is the PIC installed properly?
[Notch in the wright direction]
[I hope so, I puled it up and pressed it down]
I hope so, I puled it up and pressed it down
it reads the chip and erases.
Only one jumper for 5k Pot