fix adc configuration
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 27 Sep 2011 03:13:29 +0000 (12:13 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 27 Sep 2011 03:13:29 +0000 (12:13 +0900)
ChangeLog
README
src/random.c

index 95e5ee5..08f8fc4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-27  NIIBE Yutaka  <gniibe@fsij.org>
+
+       * src/random.c (adcgrpcfg): Fix configuration value (had old
+       values by old example).
+
 2011-09-22  NIIBE Yutaka  <gniibe@fsij.org>
 
        * src/random.c  (ROTATE): Remove.
 2011-09-22  NIIBE Yutaka  <gniibe@fsij.org>
 
        * src/random.c  (ROTATE): Remove.
diff --git a/README b/README
index 5cdc3c3..e1295f2 100644 (file)
--- a/README
+++ b/README
@@ -52,7 +52,7 @@ A2: Yes, we should.  It's not implemented yet, and I don't have an
 Targets
 =======
 
 Targets
 =======
 
-STBee Mini and Olimex STM32-H103 is supported.
+STBee Mini, Olimex STM32-H103, CQ-STARM, and STBee are supported.
 
 
 Souce code
 
 
 Souce code
@@ -105,8 +105,8 @@ Then, we will have "neug.elf".
 How to install
 ==============
 
 How to install
 ==============
 
-STBee Mini
-----------
+STBee Mini and STBee
+--------------------
 
 Reset the board with "USER" switch pushed.  Type following to write
 to flash:
 
 Reset the board with "USER" switch pushed.  Type following to write
 to flash:
@@ -158,13 +158,19 @@ to generate final output.  Here is a figure of the circuit.
                         Entropy Pool (16-byte)
                        +----------------+
                        |                |
                         Entropy Pool (16-byte)
                        +----------------+
                        |                |
-                   8   | 8 parallel     |   8  ||<-- [ Vref ]
-                 +-/-- |  CRC-16        |<--/--||
+                       | 8 parallel     |   8  ||<-- [ Vref ]
+                 +---- |  CRC-16        |<--/--||
                  |     | shift registers|      ||<-- [ Temperature Sensor ]
                  |     |                |
                  |     |                |<----/------ SysTick
                  |     +----------------+     1
                  |     | shift registers|      ||<-- [ Temperature Sensor ]
                  |     |                |
                  |     |                |<----/------ SysTick
                  |     +----------------+     1
-               =====    Physical-based RNG
+                 |     Physical-based RNG
+                 / 8
+                 |
+                 v
+               ===== Output function
+                 |
+                 / 32
                  |
                  +-------------+
                  |             |
                  |
                  +-------------+
                  |             |
@@ -237,6 +243,14 @@ Information on the Web
 Not yet.
 
 
 Not yet.
 
 
+Known Problem(s)
+================
+
+On STBee (high-density device of STM32), I observed stall of
+generation of random number, after two hours, two hours and half, etc.
+Not yet identified the bug.
+
+
 Your Contributions
 ==================
 
 Your Contributions
 ==================
 
index 0495eb8..3ac5148 100644 (file)
@@ -54,7 +54,7 @@ static const ADCConversionGroup adcgrpcfg = {
   ADC_GRP1_NUM_CHANNELS,
   adccb,
   0,
   ADC_GRP1_NUM_CHANNELS,
   adccb,
   0,
-  ADC_CR2_EXTSEL_SWSTART | ADC_CR2_TSVREFE | ADC_CR2_CONT,
+  ADC_CR2_TSVREFE,
   ADC_SMPR1_SMP_SENSOR(ADC_SAMPLE_1P5) | ADC_SMPR1_SMP_VREF(ADC_SAMPLE_1P5),
   0,
   ADC_SQR1_NUM_CH(ADC_GRP1_NUM_CHANNELS),
   ADC_SMPR1_SMP_SENSOR(ADC_SAMPLE_1P5) | ADC_SMPR1_SMP_VREF(ADC_SAMPLE_1P5),
   0,
   ADC_SQR1_NUM_CH(ADC_GRP1_NUM_CHANNELS),