Information Center for ARM

Example description

  
RNG_MultiRNG Multiple Random Number Generator Example

Example Description 

This example provides a short description of how to use the RNG peripheral to
generate Random 32bit numbers.

For this example, an interactive human interface is developed to allow user to
display 8 (arbitrary value, which can be updated by user) random 32bit numbers
using the eval board LCD and/or USART (CN16) with PC HyperTerminal, using 
PRINT_ON_LCD and PRINT_ON_USART defines in main.c

After startup, user is asked to press key button.
The 8 Random 32bit numbers are displayed as soon as the key is pressed.

The USARTx is configured as follow:
    - BaudRate = 115200 baud  
    - Word Length = 8 Bits
    - One Stop Bit
    - No parity
    - Hardware flow control disabled (RTS and CTS signals)
    - Receive and transmit enabled

Directory contents 

  - RNG/RNG_MultiRNG/system_stm32f2xx.c   STM32F2xx system clock configuration file
  - RNG/RNG_MultiRNG/stm32f2xx_conf.h     Library Configuration file
  - RNG/RNG_MultiRNG/stm32f2xx_it.h       Interrupt handlers header file
  - RNG/RNG_MultiRNG/stm32f2xx_it.c       Interrupt handlers
  - RNG/RNG_MultiRNG/main.c               Main program

	  The "system_stm32f2xx.c" is generated by an automatic clock configuration 
      tool and can be easily customized to your own configuration. 
      To select different clock setup, use the "STM32F2xx_Clock_Configuration_V1.0.0.xls" tool. 

Hardware and Software environment 

  - This example runs on STM32F2xx Devices.

  - This example has been tested with STM322xG-EVAL RevB and can be easily tailored
    to any other development board.

  - STM322xG-EVAL Set-up 
    - Connect a null-modem female/female RS232 cable between the DB9 connector 
      CN16 (USART3) and PC serial port if you want to display data on the HyperTerminal.
      @note Make sure that jumper JP22 is in position 1-2
 
  - Hyperterminal configuration:
    - Word Length = 8 Bits
    - One Stop Bit
    - No parity
    - BaudRate = 115200 baud
    - flow control: None