IFC dual-brush card

Programmer, In-Circuit Debugger, PIC Start-Up Kit, Memory Interface...

IFC dual-brush card

Postby aspopos » Fri Feb 19, 2010 4:13 am

may know that if i want to used 2 ifc-bh02 in one system.how to used 2 card in one system?

I already try change the address,and it cannot work. It just detected 1 card only.
and it cannot detect other brush card.
I also already define both of an address in the program.It still not function.
I also already troubleshot change the address for both card. It still detected 1 card only.
can anyone help me A.S.A.P.tq.
aspopos
Greenhorn
 
Posts: 3
Joined: Fri Feb 19, 2010 4:01 am

Re: IFC dual-brush card

Postby yonghui » Fri Feb 19, 2010 9:21 am

hi,
setting the address of the card to different addresses using the mini jumper.
defining the addresses in your program to match the addresses set by mini jumper.
calling the function, every function include an address when we call it, the address in the function need to be correct, match the address set previously.

if it doesn't work, try to troubleshoot the card one by one. make sure each card are functioning properly with mainboard 1st before use both card together with the mainboard. this is to find out if one of the cards is defective.

goodluck :)

yh
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

Re: IFC dual-brush card

Postby ober » Fri Feb 19, 2010 10:59 am

Yup, yonghui is correct, try to make sure each card is working properly further combine it. Minimize your troubleshooting area first, fix the problem then upgrade it to more complex system. Good luck.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: IFC dual-brush card

Postby aspopos » Fri Feb 19, 2010 4:58 pm

hi all,

setting the address of the card to different addresses using the mini jumper-DONE
defining the addresses in your program to match the addresses set by mini jumper-DONE
calling the function, every function include an address when we call it, the address in the function need to be correct, match the address set previously-DONE

others card also function and working properly. Just the 2nd card of BH card are not function. i also already change a new BH card for trouble shot. but still facing the same problem. Maybe i can email it my program to moderator to help me?. Being troubleshot already a week. :(

this is list of card that i used:

IFC-CP04
IFC-BH02-b000111
IFC-DI08-b000100
IFC-PS01-b010101
IFC-BL02 -b000011
IFC-BH02- b000001
IFC-MB00
IFC-PC00

//=====================================================================================
// include h file for cards
// User has to include h file for all the cards used
//=====================================================================================
#include<p18f2685.h>
#include "iic.h"
#include "iic_bl.h" //include header file for IFC-BL02
#include "iic_cp.h" //include header file for IFC-CP04
#include "iic_ps.h" //include header file for IFC-PS01
#include "iic_bh.h"
#include "iic_di.h"
#include "iic_rs.h"

//=====================================================================================
// card address
// User can define the address of slave card here
//=====================================================================================


#define ps1_add 0b010101 //define address for PS controller card
#define add_bl1 0b000011
#define add_bh1 0b000001 //define address for dual brush card 1
#define add_bh2 0b000111 //define address for dual brush card 2
#define add_di1 0b000100


I already confirmed that address at the card are same.

thank you.
aspopos
Greenhorn
 
Posts: 3
Joined: Fri Feb 19, 2010 4:01 am

Re: IFC dual-brush card

Postby A380 » Fri Feb 19, 2010 9:16 pm

aspopos WROTE:Just the 2nd card of BH card are not function. i also already change a new BH card for trouble shot. but still facing the same problem. Maybe i can email it my program to moderator to help me?. Being troubleshot already a week. :(


If you dont mind, pls send your source code to dmling84@gmail.com thanks

aspopos WROTE:#define add_bh1 0b000001 //define address for dual brush card 1
#define add_bh2 0b000111 //define address for dual brush card 2

which card can't work? bh1 or bh2?
pls swap the address to this:
#define add_bh1 0b000111 //define address for dual brush card 1
#define add_bh2 0b000001 //define address for dual brush card 2
then tell me which card can't work? thanks.
User avatar
A380
Discoverer
 
Posts: 120
Joined: Tue May 19, 2009 2:44 pm
Location: Malaysia

Re: IFC dual-brush card

Postby aspopos » Fri Feb 19, 2010 10:48 pm

hi dmling

i already sent the source code at the mail.
still BH ate b000001 are working. card at adress b000111 are not working.
thanks for helping
aspopos
Greenhorn
 
Posts: 3
Joined: Fri Feb 19, 2010 4:01 am


Return to PIC Development Tool

Who is online

Users browsing this forum: No registered users and 13 guests