OpenNuvoton / M031BSP

BSP for M031 Series MCU
Apache License 2.0
15 stars 16 forks source link

PDID bits description #10

Open jeromeDms opened 2 years ago

jeromeDms commented 2 years ago

Hi Where can I find SYS->PDID bits description ? I searched in all .h without success. Thanks Jerome

kchuang1 commented 2 years ago

Hi, You can find it in sys_reg.h. It is described as below.

 * @var SYS_T::PDID
 * Offset: 0x00  Part Device Identification Number Register
 * ---------------------------------------------------------------------------------------------------
 * |Bits    |Field    |Descriptions
 * | :----: | :----:   | :---- |
 * |[31:0]|PDID    |Part Device Identification Number (Read Only)
 * |         |            |This register reflects device part number code. Software can read this register to identify which device is used.
jeromeDms commented 2 years ago

There are no bits description here, only [31:0] = PDID. It does not show how to identify memory size etc.

kchuang1 commented 2 years ago

Yes, the PDID is only for distinguish different chip part number. It doesn't contain the information for memory size.