Difference between revisions of "MSP430Adapt3"

From DIDEAS Wiki
Jump to: navigation, search
m
 
m
Line 46: Line 46:
  
  
 +
==expected output when a card is inserted==
  
  
 +
SD_INSERT_ACTION
 +
MMC/SD_WAKEUP_ACTION
 +
SD_COMM_INIT
 +
SD_COMMM/SPI_INIT
 +
  [SPI_CLOCK_SLOW] SD_ENABLE_POWER
  
SD_INSERT_ACTION
+
**** MMC/SD_INIT
MMC/SD_WAKEUP_ACTION
+
* cmd=0 rcd=1 : 1 0 0 0 0
SD_COMM_INIT
+
IDLE * cmd=0 rcd=1 : 1 0 0 0 0
SD_COMMM/SPI_INIT
+
* cmd=37 rcd=1 : 1 0 0 0 0
  [SPI_CLOCK_SLOW] SD_ENABLE_POWER
+
* cmd=29 rcd=1 : 1 0 0 0 0
 +
* cmd=37 rcd=1 : 1 0 0 0 0
 +
* cmd=29 rcd=1 : 1 0 0 0 0
 +
* cmd=37 rcd=1 : 1 0 0 0 0
 +
* cmd=29 rcd=1 : 1 0 0 0 0
 +
* cmd=37 rcd=1 : 1 0 0 0 0
 +
* cmd=29 rcd=1 : 0 0 0 0 0
 +
* cmd=3a rcd=1 : 0 80 ff 80 0
 +
* cmd=10 rcd=1 : 0 0 0 0 0
 +
SD_INIT RCD [1]
 +
K 0
 +
  WAKEUP COMPLETED : CARD TYPE = 40
 +
  [SPI_CLOCK_FAST] SDIA : 1
 +
FAT16_GETINFO
 +
READ_PARTITION_TABLE(0): 00 01 08 00 06 07 60 de 27 00 00 00 d9 de 01 00 : VALID
 +
READ_PARTITION_TABLE(1): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 +
READ_PARTITION_TABLE(2): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 +
READ_PARTITION_TABLE(3): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 +
PTYPE FAT16 (LARGE)
  
**** MMC/SD_INIT
+
  READ_BOOT_RECORD AT : $27 (1)
* cmd=0 rcd=1 : 1 0 0 0 0
+
OEM : MSDOS5.0
IDLE * cmd=0 rcd=1 : 1 0 0 0 0
+
bytes per sector = 200
* cmd=37 rcd=1 : 1 0 0 0 0
+
sec per cluster = 10
* cmd=29 rcd=1 : 1 0 0 0 0
+
num_reserved_sectors = 4
* cmd=37 rcd=1 : 1 0 0 0 0
+
fat_copies = 2
* cmd=29 rcd=1 : 1 0 0 0 0
+
max root entries = 200
* cmd=37 rcd=1 : 1 0 0 0 0
+
num sec < 32 = 0
* cmd=29 rcd=1 : 1 0 0 0 0
+
media_descriptor = 248
* cmd=37 rcd=1 : 1 0 0 0 0
+
sectors_per_fat = 1e
* cmd=29 rcd=1 : 0 0 0 0 0
+
sectors_per_track = 3f
* cmd=3a rcd=1 : 0 80 ff 80 0
+
num head = ff
* cmd=10 rcd=1 : 0 0 0 0 0
+
num hidden sectors = 27
SD_INIT RCD [1]
+
num_sectors in partition = 1ded9
K 0
+
logical drive num = 0
WAKEUP COMPLETED : CARD TYPE = 40
+
ext segnature (29) = 29
  [SPI_CLOCK_FAST] SDIA : 1
+
serial num = f0d5fdb5
FAT16_GETINFO
+
VOL : NO NAME     
READ_PARTITION_TABLE(0): 00 01 08 00 06 07 60 de 27 00 00 00 d9 de 01 00 : VALID
+
FAT : FAT16   
READ_PARTITION_TABLE(1): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+
marker = aa55
READ_PARTITION_TABLE(2): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+
Sectors per cluster : 10 10
READ_PARTITION_TABLE(3): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+
FAT16_GET_LBA_BY_FILE : looking for :TIMING00BIN @ 67
PTYPE FAT16 (LARGE)
+
TIMING00.BIN A:20 D:3335 T:4591 C:2 S:3bce000
 
+
FOUND! start cluster = 2
READ_BOOT_RECORD AT : $27 (1)
 
OEM : MSDOS5.0
 
bytes per sector = 200
 
sec per cluster = 10
 
num_reserved_sectors = 4
 
fat_copies = 2
 
max root entries = 200
 
num sec < 32 = 0
 
media_descriptor = 248
 
sectors_per_fat = 1e
 
sectors_per_track = 3f
 
num head = ff
 
num hidden sectors = 27
 
num_sectors in partition = 1ded9
 
logical drive num = 0
 
ext segnature (29) = 29
 
serial num = f0d5fdb5
 
VOL : NO NAME     
 
FAT : FAT16   
 
marker = aa55
 
Sectors per cluster : 10 10
 
FAT16_GET_LBA_BY_FILE : looking for :TIMING00BIN @ 67
 
TIMING00.BIN A:20 D:3335 T:4591 C:2 S:3bce000
 
FOUND! start cluster = 2
 
 
         .    A:0 D:0 T:0 C:0 S:0
 
         .    A:0 D:0 T:0 C:0 S:0
 
         .    A:0 D:0 T:0 C:0 S:0
 
         .    A:0 D:0 T:0 C:0 S:0
Line 118: Line 118:
 
         .    A:0 D:0 T:0 C:0 S:0
 
         .    A:0 D:0 T:0 C:0 S:0
 
         .    A:0 D:0 T:0 C:0 S:0
 
         .    A:0 D:0 T:0 C:0 S:0
FILE FOUND AT 87, size:3bce000 (sec:1de70)
+
FILE FOUND AT 87, size:3bce000 (sec:1de70)
* cmd=10 rcd=1 : 0 0 0 0 0  
+
* cmd=10 rcd=1 : 0 0 0 0 0  
nb:1de70  a:3bce0  b:26290  sec:22080  csec:1103f
+
nb:1de70  a:3bce0  b:26290  sec:22080  csec:1103f
sec 1103f ffffffff 8820
+
sec 1103f ffffffff 8820
sec 881f ffffffff 4410
+
sec 881f ffffffff 4410
sec 440f ffffffff 2208
+
sec 440f ffffffff 2208
sec 2207 ffffffff 1104
+
sec 2207 ffffffff 1104
sec 1103 ffffffff 882
+
sec 1103 ffffffff 882
sec 881 ffffffff 441
+
sec 881 ffffffff 441
sec 440 202c3735 220
+
sec 440 202c3735 220
sec 660 ffffffff 110
+
sec 660 ffffffff 110
sec 550 ffffffff 88
+
sec 550 ffffffff 88
sec 4c8 36302a0a 44
+
sec 4c8 36302a0a 44
sec 50c 36302a0a 22
+
sec 50c 36302a0a 22
sec 52e 36302a0a 11
+
sec 52e 36302a0a 11
sec 53f 36302a0a 8
+
sec 53f 36302a0a 8
sec 547 36302a0a 4
+
sec 547 36302a0a 4
sec 54b ffffffff 2
+
sec 54b ffffffff 2
sec 549 36302a0a 1
+
sec 549 36302a0a 1
sec 54a 20230d0a 0
+
sec 54a 20230d0a 0
FIND EOF FINISHED with 54b
+
FIND EOF FINISHED with 54b
sec 54b ffffffff 0
+
sec 54b ffffffff 0
  
INIT_SD_DATA_BLOCK : sd_current_lba = $5d2
+
INIT_SD_DATA_BLOCK : sd_current_lba = $5d2
  
* cmd=10 rcd=1 : 0 0 0 0 0  
+
* cmd=10 rcd=1 : 0 0 0 0 0  
# Insert at : 060223013005
+
# Insert at : 060223013005
# VERSION : DL6_V4
+
# VERSION : DL6_V4
ds1339 get serial : 35 30 39 31 30 31 39  
+
ds1339 get serial : 35 30 39 31 30 31 39  
# Serial Number : 5091019
+
# Serial Number : 5091019
SD SLEEP
+
SD SLEEP
SD_DISABLE_POWER
+
SD_DISABLE_POWER
main/SD_INSERT : 0 0
+
main/SD_INSERT : 0 0
9 [3686944] 9 [3686608] 9 [3686607] 9 [3686607] 9 [3686607] 9 [3686608] 9 [3686607] 9 [3686607]
+
9 [3686944] 9 [3686608] 9 [3686607] 9 [3686607] 9 [3686607] 9 [3686608] 9 [3686607] 9 [3686607] ....

Revision as of 05:55, 23 February 2006

MSP430 Adapt3 serial/USB interface board.

The adapt3 board interfaces the datalogger to the PC via a USB cable and the Olimex JTAG programming cable.

When working with the datalogger in the labatory, generally one should observer the devices operation with a serial port terminal emulation program such as SecureCRT or as a last resourt Hyperterminal

Serial Port Settings

  • Baud rate : 230,000
  • 8 data bits
  • 1 stop bit
  • no parity
  • Virtual COM port typical COM3


output after reset

********
DL6_V4 Aug 30 2005 08:34:56
DL5_INIT
SD_COMM_INIT
SD_COMMM/SPI_INIT
 [SPI_CLOCK_SLOW] 80 INIT_JTAG_TALK
INIT_REAL_TIME_CLOCK
SD_ENABLE_POWER
INIT_DS1339
ack 8, 0
DS1339 STATUS 0
COPY DS1339 TO LOCAL TIME
DS1339_PTIME : 6 2 23 1 27 58 
rtclock/SET_CLOCK : 6 2 23 1 27 58
SD_DISABLE_POWER
INIT_SD_DATA_BLOCK : sd_current_lba = $d
INIT_IR_DEMOD
TIMERB_INIT
UART_INIT : 20 0 
0 [-38290986] 0 [3686608] 0 [3686607] 0 [3686608] 0 [3686608] 0 [3686608] 0 [3686608] 0 [3686607] 0 [3686608] 0 [3686608] 0 [3686608] 0 [3686607] 0 ....




expected output when a card is inserted

SD_INSERT_ACTION
MMC/SD_WAKEUP_ACTION
SD_COMM_INIT
SD_COMMM/SPI_INIT
 [SPI_CLOCK_SLOW] SD_ENABLE_POWER
**** MMC/SD_INIT
* cmd=0 rcd=1 : 1 0 0 0 0 
IDLE * cmd=0 rcd=1 : 1 0 0 0 0 
* cmd=37 rcd=1 : 1 0 0 0 0 
* cmd=29 rcd=1 : 1 0 0 0 0 
* cmd=37 rcd=1 : 1 0 0 0 0 
* cmd=29 rcd=1 : 1 0 0 0 0 
* cmd=37 rcd=1 : 1 0 0 0 0 
* cmd=29 rcd=1 : 1 0 0 0 0 
* cmd=37 rcd=1 : 1 0 0 0 0 
* cmd=29 rcd=1 : 0 0 0 0 0 
* cmd=3a rcd=1 : 0 80 ff 80 0 
* cmd=10 rcd=1 : 0 0 0 0 0 
SD_INIT RCD [1]
K 0
WAKEUP COMPLETED : CARD TYPE = 40
 [SPI_CLOCK_FAST] SDIA : 1
FAT16_GETINFO
READ_PARTITION_TABLE(0): 00 01 08 00 06 07 60 de 27 00 00 00 d9 de 01 00 : VALID
READ_PARTITION_TABLE(1): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
READ_PARTITION_TABLE(2): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
READ_PARTITION_TABLE(3): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
PTYPE FAT16 (LARGE)
READ_BOOT_RECORD AT : $27 (1)
OEM : MSDOS5.0
bytes per sector = 200
sec per cluster = 10
num_reserved_sectors = 4
fat_copies = 2
max root entries = 200
num sec < 32 = 0
media_descriptor = 248
sectors_per_fat = 1e
sectors_per_track = 3f
num head = ff
num hidden sectors = 27
num_sectors in partition = 1ded9
logical drive num = 0
ext segnature (29) = 29
serial num = f0d5fdb5
VOL : NO NAME    
FAT : FAT16   
marker = aa55
Sectors per cluster : 10 10
FAT16_GET_LBA_BY_FILE : looking for :TIMING00BIN @ 67
TIMING00.BIN A:20 D:3335 T:4591 C:2 S:3bce000
FOUND! start cluster = 2
       .    A:0 D:0 T:0 C:0 S:0
       .    A:0 D:0 T:0 C:0 S:0
       .    A:0 D:0 T:0 C:0 S:0
       .    A:0 D:0 T:0 C:0 S:0
       .    A:0 D:0 T:0 C:0 S:0
       .    A:0 D:0 T:0 C:0 S:0
       .    A:0 D:0 T:0 C:0 S:0
       .    A:0 D:0 T:0 C:0 S:0
       .    A:0 D:0 T:0 C:0 S:0
       .    A:0 D:0 T:0 C:0 S:0
       .    A:0 D:0 T:0 C:0 S:0
       .    A:0 D:0 T:0 C:0 S:0
       .    A:0 D:0 T:0 C:0 S:0
       .    A:0 D:0 T:0 C:0 S:0
       .    A:0 D:0 T:0 C:0 S:0
FILE FOUND AT 87, size:3bce000 (sec:1de70)
* cmd=10 rcd=1 : 0 0 0 0 0 
nb:1de70  a:3bce0  b:26290  sec:22080  csec:1103f
sec 1103f ffffffff 8820
sec 881f ffffffff 4410
sec 440f ffffffff 2208
sec 2207 ffffffff 1104
sec 1103 ffffffff 882
sec 881 ffffffff 441
sec 440 202c3735 220
sec 660 ffffffff 110
sec 550 ffffffff 88
sec 4c8 36302a0a 44
sec 50c 36302a0a 22
sec 52e 36302a0a 11
sec 53f 36302a0a 8
sec 547 36302a0a 4
sec 54b ffffffff 2
sec 549 36302a0a 1
sec 54a 20230d0a 0
FIND EOF FINISHED with 54b
sec 54b ffffffff 0
INIT_SD_DATA_BLOCK : sd_current_lba = $5d2
* cmd=10 rcd=1 : 0 0 0 0 0 
# Insert at : 060223013005
# VERSION : DL6_V4
ds1339 get serial : 35 30 39 31 30 31 39 
# Serial Number : 5091019
SD SLEEP
SD_DISABLE_POWER
main/SD_INSERT : 0 0
9 [3686944] 9 [3686608] 9 [3686607] 9 [3686607] 9 [3686607] 9 [3686608] 9 [3686607] 9 [3686607] ....