Accessing Global Address in S12G128

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Accessing Global Address in S12G128

511 Views
arthivenkatasub
Contributor III

Hi,

In S12G128, Global addresses are not accessed while reading PFLASH. Why?

Where it is mentioned in the datasheet of S12G128 microcontroller?

Kindly answer my question.

Regards,

Arthi Venkatasubramanian

Labels (1)
0 Kudos
1 Reply

441 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

S12G128 uses global addresses only in the case of flash Erase or write. For reading you have to use PPAGE_OFFSET addressing mode. Please look into attached example which writes and reads the FLASH at G240.

Using global addresses for Flash E/W are described in the Flash module chapters.

Data sheet:

Expansion of the CPU Local Address Map
The program page index register in S12GMMC allows accessing up to 256KB of address space in the
global memory map by using the four index bits (PPAGE[3:0]) to page 16x16 KB blocks into the program
page window located from address 0x8000 to address 0xBFFF in the local CPU memory map.

I know it is "a little bit" hidden.

Please look into SW example I attached. You will see the difference between writing and reading the FLASH.

Best regards,

Ladislav

0 Kudos