I do not understand how to distinguish between 0 0 0: 16-MHz to 20-MHz non-lead type ceramic resonator and 1 1 1: 16-MHz to 20-MHz lead type ceramic resonator for the MOFCR.MODRV[2:0] bits in the main clock oscillator forced oscillation control register. What do lead type and non-lead type mean?
It means that the connected resonator is either a "16-MHz to 20-MHz lead type ceramic resonator", or not. For resonators under 16 MHz, non-ceramic resonators (crystal resonators, etc.), resonators that have no lead, and so on, please set 000b.