Microchip-MPLAB-Harmony / csp_apps_pic32mz_ef

Harmony 3 peripheral library application examples for PIC32MZ EF family
https://microchip-mplab-harmony.github.io/csp_apps_pic32mz_ef/
Other
4 stars 7 forks source link

RNGPOLY1 Polynomial #2

Open sferguson-ISI opened 2 months ago

sferguson-ISI commented 2 months ago

In the PRNG example there is a register (RNGPOLY1) getting set for the polynomial to be used with the LFSR. The example states the bitmask to be used is: 0x00C00003 however the example says this if for a 64-bit random number. If that's the case shouldn't the RNGPOLY1 be set to 0x00000001 and RNGPOLY2 be 0xD8000000? This would be for the maximum length polynomial x^64+x^63+x^61+x^60+1