Damaged EB006- 8 board ?

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
Dr T JONES
Posts: 18
Joined: Mon Oct 21, 2013 3:07 pm
Been thanked: 1 time
Contact:

Damaged EB006- 8 board ?

Post by Dr T JONES »

EB006 - 8 was working well with PIC16F88 then i changed the chip to 18F452 and tried programming this with certain new programmes without any success. I then swapped the chip back to the 16F88 and i can programme the chip (as checked on a breadboard) but PORTA and PORTB not working when connected to EB006-8. Have tried EB083, EB004 and EB005 without any success. Any ideas ?

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Damaged EB006- 8 board ?

Post by medelec35 »

Can you post a flowchart that is not working on Eb006 programmer.
I will see if I can spot any issues.

Martin
Martin

Dr T JONES
Posts: 18
Joined: Mon Oct 21, 2013 3:07 pm
Been thanked: 1 time
Contact:

Re: Damaged EB006- 8 board ?

Post by Dr T JONES »

The programmes work correctly on both as i have a different PIC board and both chips work with the programmes.

My problem is i can't test them anymore using the EB006-8 board and the output boards connected.

Dr T JONES
Posts: 18
Joined: Mon Oct 21, 2013 3:07 pm
Been thanked: 1 time
Contact:

Re: Damaged EB006- 8 board ?

Post by Dr T JONES »

Im using C and assembler programmes not FLOWCODE.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Damaged EB006- 8 board ?

Post by medelec35 »

Oh right I see.
Are you using the internal osc or external osc?
I'm assuming VDD is correct since its allowing you to program, but just to make sure maybe best to measure it.
Then program 16F88 with internal osc adn set all the pins of ports to high,delay 500ms then all pins of all ports to low, delay 500ms then repeat forever.
If you have LED eblock or use meter to check each pin.
If your using external osc, then could switch2 be faulty preventing crystal from being connected to the microcontroller?
Reason for that logic is the most of the pins of target device (there are exceptions) are connected directly to the ports.
So if say portA0 is working on the prototype board, then it should also work on EB006 (using internal osc)
Martin

Dr T JONES
Posts: 18
Joined: Mon Oct 21, 2013 3:07 pm
Been thanked: 1 time
Contact:

Re: Damaged EB006- 8 board ?

Post by Dr T JONES »

Vdd ok

Tried everything suggested without any luck.

Will have to send EB006-8 back to Matrix again!

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: Damaged EB006- 8 board ?

Post by dazz »

Hi
Can you post a c-file if its sensitive you can pm it and i will shred it after ive had a look, another thing is have you tried to program to new chips as well does it work wtc

Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

Dr T JONES
Posts: 18
Joined: Mon Oct 21, 2013 3:07 pm
Been thanked: 1 time
Contact:

Re: Damaged EB006- 8 board ?

Post by Dr T JONES »

Have tried 2 or three other chips without any luck. As I said it programmes the chips ok but when testing on the EB006-8 board no outputs visible on all the output boards I've tried. When i check the chips on my other PIC testing circuits the chip works well after being programmed on the EB006-8 board.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Damaged EB006- 8 board ?

Post by Benj »

Hello,

Can you post the C or Hex file your using? I would expect that it's something either in your code or configuration that is causing the device not to run your program.

Dr T JONES
Posts: 18
Joined: Mon Oct 21, 2013 3:07 pm
Been thanked: 1 time
Contact:

Re: Damaged EB006- 8 board ?

Post by Dr T JONES »

Here's the test programme i'm using. Like i say it programmes the chip ok but no output when using EB006-8 and EB083. When i use my own test circuit the chip works as it should.

;*******************************************************************
; TITLE: New 16F88 project
; AUTHOR:
; DATE:
;*********************************************************************
;*********************************************************************

; This is the system the operator uses to operate the weapon
;*********************************************************************
; DEFINITIONS
;*********************************************************************
LIST P = 16F88 ;tells the assembler which PIC chip to program for


;****** REGISTER USAGE ******

;For PIC16F88, user RAM starts at 20h. The following definitions
;(the names are arbitrary) will be found useful in many programs.


STATUS EQU h'03' ;name program location 3 as STATUS
TRISA EQU h'05' ;
PORTA EQU h'05' ;name program location 5 as PORTA
TRISB EQU h'06' ;
PORTB EQU h'06' ;name program location 6 as PORTB

W EQU h'00' ;Working register
F EQU h'01' ;File
C EQU h'00' ;Carry flag
Z EQU h'02' ;Zero flag

INDF EQU 00
TMR0 EQU 01
PCL EQU 02
FSR EQU 04
EEDATA EQU 08
EEADR EQU 09
PCLATH EQU 0A
INTCON EQU 0B
OPSHUN EQU 81
EECON1 EQU 88
EECON2 EQU 89

temp1 EQU 2C ; delay duration reg1
temp2 EQU 2D ; delay duration reg2
temp3 EQU 2E ; delay duration reg3
temp4 EQU 2F ; delay duration reg4

;CMCON EQU H'1F' ; USED WITH 16F628A
ANSEL EQU H'9B' ; USED WITH 16F88

;*********************************************************************
; VECTORS
;*********************************************************************

;The PIC16F84 vectors live at the bottom of memory (0000h-0007h)
ORG 00 ;Reset vector address
goto start ;Goes to first instruction on reset/power-up
ORG 04 ;Interrupt vector address
ORG 05 ;Start of program memory


;*********************************************************************
; SUBROUTINES
;*********************************************************************

;By convention, subroutines are placed after the vectors so that they
;are at the bottom of memory. This avoids memory bank-switching for
;small programs.

; Delay subroutine 'onems'=1ms,'tenths'=0.1s 'quart'= 1/4s 'half'=1/2s
onems movlw h'FD' ;set up the value of onems
movwf temp1 ;save the value into temp1

again1 nop ;no operation
decfsz temp1,F ;take 1 away from temp1 and check if 0
goto again1 ;if not, continue counting down
nop ;no operation
return ;return to operation

tenth movlw 64 ;set up the value of tenth
movwf temp2 ;save the value to temp2

again2 call onems ;call the value of onems
decfsz temp2,01 ;take 1 away from temp2 and check if 0
goto again2 ;if not, contiune counting down
return ;return to operation

quart movlw h'FF' ;set up the value of quart
movwf temp3 ;save the value into temp3

again3 call onems ;call the value of onems
decfsz temp3,F ;take 1 away from temp3 and check if 0
goto again3 ;if not, continue counting down
return ;return to operation

second movlw 04 ;set up the value of second
movwf temp4 ;save the value to temp4

again4 call quart ;call up the value of onems
decfsz temp4,F ;take 1 away from temp4 and check if 0
goto again4 ;if not, continue counting down
return ;return to operation


;*********************************************************************
; MAIN PROGRAM
;*********************************************************************

start ;CLRF PORTA ; WHEN USING PIC 16F628A MAKE SURE PORTA BITS 0,1,2,3 ARE I/O PINS NOT ANALOGUE INPUT COMPARATOR INPUTS
;MOVLW 07
;MOVWF CMCON
;BCF STATUS,6

BANKSEL PORTA ; WHEN USING PIC16F88 MAKE SURE PORTA BITS 0,1,2,3 ARE I/O PINS NOT ANALOGUE INPUT
CLRF PORTA
BANKSEL ANSEL
MOVLW 0x00
MOVWF ANSEL

ST1 BSF STATUS,05 ;Move to PAGE 1
MOVLW 1F ;Set up Inputs for port A
MOVWF TRISA ;Write WReg to TRISA
MOVLW 00 ;Set up Inputs for port B
MOVWF TRISB ;Write WReg to TRISB
BCF STATUS,05 ;Mover to PAGE 0
CLRF PORTB ;Clear PORTA in its entirety
CLRF PORTA ;Clear PORTB in its entirety

T MOVLW H'FF'
MOVWF PORTB
CALL second
MOVLW H'F0'
MOVWF PORTB
CALL second
GOTO T


;*********************************************************************
; INTERRUPT SERVICE ROUTINE
;*********************************************************************

;The interrupt service routine (if required) goes here

inter

END ;all programs must end with this

Dr T JONES
Posts: 18
Joined: Mon Oct 21, 2013 3:07 pm
Been thanked: 1 time
Contact:

Re: Damaged EB006- 8 board ?

Post by Dr T JONES »

Heres the ASM file.
Attachments
EB006_8 TEST_ 16F88.asm
(4.97 KiB) Downloaded 273 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Damaged EB006- 8 board ?

Post by Benj »

Hello,

There is no configuration in the assembler file.

In the PPP software click the configure PICmicro button and in the config window that appears click the autodetect chip button, this should set the default device to the 16F88.

Next click Ok and then click the open button to load in your compiled hex file, this loads in the hex file formatted for the 16F88 device. If you load the hex file with the default target set to an 18F device then the hex file will not load correctly for the 16F device.

Next click configure again and select the right settings to allow the device to run, something like this will work with the EB006 Oscillator switch set to XTAL.
config.jpg
config.jpg (106.06 KiB) Viewed 9449 times
Then click the Ok button again and now click the Send to PICmicro button.

Fingers crossed your program should run after programming completes.

Dr T JONES
Posts: 18
Joined: Mon Oct 21, 2013 3:07 pm
Been thanked: 1 time
Contact:

Re: Damaged EB006- 8 board ?

Post by Dr T JONES »

Yes i do this every time i programme a PIC chip, tried again now with no success.

As i say the chip is programmed correctly as it works on my own testing breadboard circuit, just won't work with EB006-8 and EB083.

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: Damaged EB006- 8 board ?

Post by DavidA »

Hello,

I will contact you privately about a possible return of the board to check it.

Dr T JONES
Posts: 18
Joined: Mon Oct 21, 2013 3:07 pm
Been thanked: 1 time
Contact:

Re: Damaged EB006- 8 board ?

Post by Dr T JONES »

Ok thanks.

Post Reply