Remote control by location (PIC in Oshonsoft)

Thread Starter

camerart

Joined Feb 25, 2013
3,840
Hi,
The compass has been a bit of a puzzle. Sometimes the AK8963C popped, so the SPI SO failed or went to a lower voltage, and I tried a level shifter as a buffer. This has worked for some modules, but on farther investigation, I found, what should be a PIC input, is actually outputting. I presume this has been what popped the AK8963C module outputs.

I cut the AK8963C SPI SO track and checked with a scope. Here are 2x pics, showing the output from the AK8963C and the signal from the PIC input.

Can anyone shed light on how to stop the PIC from outputting, please?

Camerart
 

Attachments

jjw

Joined Dec 24, 2013
823
Hi,
The compass has been a bit of a puzzle. Sometimes the AK8963C popped, so the SPI SO failed or went to a lower voltage, and I tried a level shifter as a buffer. This has worked for some modules, but on farther investigation, I found, what should be a PIC input, is actually outputting. I presume this has been what popped the AK8963C module outputs.

I cut the AK8963C SPI SO track and checked with a scope. Here are 2x pics, showing the output from the AK8963C and the signal from the PIC input.

Can anyone shed light on how to stop the PIC from outputting, please?

Camerart
I don't think PIC is outputting, if the data direction is not changed in the middle of the program, but the other peripherals connected to MISO are.
Check the chip selects.They may be on at the same.
 

Thread Starter

camerart

Joined Feb 25, 2013
3,840
I don't think PIC is outputting, if the data direction is not changed in the middle of the program, but the other peripherals connected to MISO are.
Check the chip selects.They may be on at the same.
Hi J,
I checked the chip selects, and think they're ok. I've added the latest program version, in case anyone wants to check.

Here are two Scope shots. (I added a buffer between the AK8963C output, and the board output MISO)
'MISO connected' one shows:
Top AK8963C output into the buffer.
Bottom MISO after buffer, connected to the PIC.

When MISO is disconnected between the board and the PIC the board MISO shows 3.3V

'MISO Disconnected' shows:
Top, the Board MISO output
Bottom The disconnected PIC MISO.

Camerart
 

Attachments

Thread Starter

camerart

Joined Feb 25, 2013
3,840
Hi,
Looking at MISO disconnected in #545, is it possible to tell how far down the program the bottom DATA pulse would be?
C
 

Thread Starter

camerart

Joined Feb 25, 2013
3,840
Hi,
I commented out [ ALTMTR = 0 and ALTMTR = 1 ] from both sections under 'READ BMP280'

(MISO Disconnected) The bottom signal from the MISO disappeared

(MISO Connected) The bottom MISO signal from the board is still being suppressed to a lower voltage.

I've written to Vladimir!
C
 

jjw

Joined Dec 24, 2013
823
Cut everything connected to MISO and look the pin with the scope.

Edit: deleted an erranous sentence.
 
Last edited:

Thread Starter

camerart

Joined Feb 25, 2013
3,840
Cut everything connected to MISO and look the pin with the scope.

Edit: deleted an erranous sentence.
Hi J,
Regarding the deleted sentence. I shortened the
Define STRING_MAX_LENGTH = 50 '70XXXXX
while testing, but later I think I can shorten the length.

With the MISO disconnected from all peripherals, there is no Scope signal. It seems that the BMP280 is generating the ( MISO Disconnected BOTTOM signal).

I tried a resistance check between the disconnected MISO wire and GND = 12MOhm.

Connecting the MISO to only the compass, suppresses the Compass output to the lower voltage as before.
C
 

Thread Starter

camerart

Joined Feb 25, 2013
3,840
Hi,
Here is a PDF, which may be of interest.

It's a bit advanced for me, but looking through it, especially 9.4, I can see a possible answer to the MISO outputting problem.
C
 

Attachments

Thread Starter

camerart

Joined Feb 25, 2013
3,840
Hi,
I'm not a programmer, but thought I'd try adding the ASM from the #550 Data sheet, to see if it does anything, but I got errors.
Here's a screen shot.
C
 

Attachments

Top