Not applicable
Sep 08, 2017
08:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 08, 2017
08:12 AM
I want to use the XMC1400's PRNG in my application but I need to get a unique seed value for every power up.
Has anyone found a good way to seed the PRNG?
I briefly looked at using the VADC. I'm using the xmc1400 boot kit and the example program using p2.5 connected to a pot works fine.
However trying to change it to use an unconnected channel was daunting. I simply wanted to read the ADC connected to a different pin.
It seems like the peripheral can do all kinds of complex operations, but just a simple read ??? I could not find a good example.
I also considered using the on board temperature sensor, but have not attempted it yet/
Has anyone found a good way to seed the PRNG?
I briefly looked at using the VADC. I'm using the xmc1400 boot kit and the example program using p2.5 connected to a pot works fine.
However trying to change it to use an unconnected channel was daunting. I simply wanted to read the ADC connected to a different pin.
It seems like the peripheral can do all kinds of complex operations, but just a simple read ??? I could not find a good example.
I also considered using the on board temperature sensor, but have not attempted it yet/
- Tags:
- IFX
4 Replies
Sep 08, 2017
10:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 08, 2017
10:19 AM
Could not understand your problem.
Can't read VADC from some port, or can't find a good seed for PRNG?
Can't read VADC from some port, or can't find a good seed for PRNG?
Not applicable
Sep 11, 2017
05:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 11, 2017
05:25 AM
Has anyone found a good way to seed the PRNG?
Sep 11, 2017
05:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 11, 2017
05:53 AM
In that case I would suggest you to use the internal temperature sensor as a seed. The problem is that it doesn't mean you will have a unique seed every start up unless you create some routine to check if it was previouslly used.
To do that, you have to store previouslly values in a non volatile memory. I don't like the idea of using a non volatile memory to do this, but if you really need a unique value this is one possiblity.
To do that, you have to store previouslly values in a non volatile memory. I don't like the idea of using a non volatile memory to do this, but if you really need a unique value this is one possiblity.
Sep 11, 2017
09:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 11, 2017
09:23 AM
If you really need a TRNG, XMC1x is not a good choice.