November 07, 2024, 06:06:45 PM

Duinomite-mini with Mod-TC over UEXT

Started by Analyst, October 10, 2012, 11:21:00 PM

Previous topic - Next topic

Analyst

Hi all
I test the board Duinomite-mini and the module MOD-TC with the sample program from the manual

10 PIN(1) = 0: PIN(2) = 1
20 SETPIN 1,8    'SCK
30 SETPIN 2,8    'CS
40 SETPIN 3,2    'MISO
50 SETPIN 4,8    'MOSI we do not use this
60 PIN(2) = 0       'enable MOD-TC
70 PAUSE 1       'wait MAX6675 to settle
80 TEMP = SPI(3,4,1)    'read first 8 bit
90 TEMP2 = SPI(3,4,1)    'read next 8 bit
100 TEMP = TEMP *256 + TEMP2
110 TEMP = TEMP \ 8    'remove last 3 bits
120 PRINT "Temperature = ";TEMP*0.25 '12 bit 0-1023.75C
130 PIN(2) = 1    'disable MAX6675
140 PAUSE 300
150 GOTO 60       'read again

It works on the connection with the corresponding ports over the GPIO connector.
If I but try it over the UEXT with the changed Pins

ARDUINO.D10 → PIN(7) → UEXT/SD.CARD.SS
ARDUINO.D11 → PIN(8) → UEXT/SD.CARD.MOSI
ARDUINO.D12 → PIN(9) → UEXT/SD.CARD.MISO
ARDUINO.D13 → PIN(10) → UEXT/SD.CARD.CLK

So for   Pin 1  then   Pin 10   clk
      Pin 3      Pin 9   MISO
      Pin 4      Pin 8   MOSI
      Pin 2      Pin  7   CS
It is no working

LubOlimex

Hello,

I wonder do you have SD card plugged when testing? Try to turn off the SD card from the menu accessed by "config" command.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex