Page 1 of 1

HMC6352

PostPosted: Thu Sep 03, 2009 3:43 pm
by tyron_maxx
CAN THE ELECTRONIC COMPASS INTErface WITH IFC?

Re: HMC6352

PostPosted: Fri Sep 04, 2009 12:08 pm
by sich
Currently IFC doesn't have this module. You may use the IFC main board (IFC-MB00) by connecting the PIC's I2C pins to this digital compass. You need to develop the I2C interface program for the main board to communicate with this sensor.

Re: HMC6352

PostPosted: Sat Sep 05, 2009 8:09 am
by tyron_maxx
ooo...if i use SK40B with PIC18F877A..and I interface it with the IFC through DI card...it can communicate or not?.

Re: HMC6352

PostPosted: Sat Dec 26, 2009 10:19 am
by ober
If you need IFC to interface with the digital compass, you have several method to do it. Of course, what you have suggested can be done with an extra PIC, which in your case is PIC16F877A.

From IFC ---- UART ----- PIC16F877A ----- I2C ------ Digital Compass. But you need to develop the program to communicate with all these device.

Re: HMC6352

PostPosted: Sun Apr 04, 2010 11:46 pm
by micheal_kl
I would like to know if I supply 5V to HMC6352, but not 3.3V. Do I need to change any setting in programming, in order to get baud rate=100kHz? I'm using PIC16F877A and connect 4.7kohms at SDA and SCL pin also.
SSPADD = 0x32; //baud rate = 100KHz

Re: HMC6352

PostPosted: Mon Apr 05, 2010 9:16 am
by ober
It should be fine.
micheal_kl WROTE:SSPADD = 0x32; //baud rate = 100KHz


The speed depend on your PIC crystal too, you need to calculate according to the formula given in data sheet of PIC.

Re: HMC6352

PostPosted: Mon Apr 05, 2010 10:04 am
by micheal_kl
I'm using 20Mhz crystal osc. I read through the datasheet, but dint find the formula. Could u pls guide me? Thanks.