I am looking for how to read the unique hardware id on the atmega328pb chips. I found in the datasheet in section 32.8.10 some stuff that suggests it can be done, however what they describe seems to require inline assembler. I am used to using C and I have come a bit stuck as to how to use this. From what I found searching, the Z-pointer is registers R30 and R31, but I am not sure of the order of the word. I am also not certain how to perform the LPM from within C.
Can anyone guide or help me please ?