MK22FN512 register layout typedefs

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

MK22FN512 register layout typedefs

Jump to solution
602 Views
errorek123
Contributor III

Hi,

Recently i started digging more into files provided by NXP and i found out something i can't really explain. My question is how exactly uint8_t array of 252 elements gives 100 offset? Could u please clear that out? Thanks :smileyhappy:

zdj1.PNG

zdj2.PNG

0 Kudos
1 Solution
517 Views
mjbcswitzerland
Specialist V

Hi Brian

PIT_MCR is at address 0x40037000 and is 32 bits in size (and thus occupies 4 bytes)
Add 252 bytes to that and you get to the offset 256.

In the struct PIT_LDVAL will therefore be a 0x40037100 (0x40037000 + 4 + 252)

Regards

Mark


Complete Kinetis solutions, training and support: http://www.utasker.com/kinetis.html
Kinetis K22:
- http://www.utasker.com/kinetis/FRDM-K22F.html
- http://www.utasker.com/kinetis/TWR-K22F120M.html
- http://www.utasker.com/kinetis/BLAZE_K22.html
- http://www.utasker.com/kinetis/tinyK22.html

View solution in original post

0 Kudos
2 Replies
517 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Brian Smith,

   Mark's reply is correct, please refer to it.


Have a great day,
Kerry

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
518 Views
mjbcswitzerland
Specialist V

Hi Brian

PIT_MCR is at address 0x40037000 and is 32 bits in size (and thus occupies 4 bytes)
Add 252 bytes to that and you get to the offset 256.

In the struct PIT_LDVAL will therefore be a 0x40037100 (0x40037000 + 4 + 252)

Regards

Mark


Complete Kinetis solutions, training and support: http://www.utasker.com/kinetis.html
Kinetis K22:
- http://www.utasker.com/kinetis/FRDM-K22F.html
- http://www.utasker.com/kinetis/TWR-K22F120M.html
- http://www.utasker.com/kinetis/BLAZE_K22.html
- http://www.utasker.com/kinetis/tinyK22.html

0 Kudos