cancel
Showing results for 
Search instead for 
Did you mean: 

What is address offset?

Ken Inoue
Associate III
Posted on December 01, 2017 at 11:17

I am Japanese. Because there is little information on Japanese STM 32, please let me ask a simple question here.

What is address offset? According to RM 0364 Reference manual ''STM 32 F 334 x x advanced ARM®-based 32-bit MCUs'', the address offset of TIM1 prescaler is 0x28.

0690X00000608sQQAQ.png

What is address offset? My question is what is the address of TIM 1?

0690X00000608z3QAA.png0690X00000608wmQAA.png

Boundary address of TIM1 is 0x40012C00-0x40012FFF. So address of TIM1 prescaler is 0x40012C00+0x28=0x40012C28?

I want hints.

Best Regards,

Ken Inoue.

1 ACCEPTED SOLUTION

Accepted Solutions
AvaTar
Lead
Posted on December 01, 2017 at 11:39

Boundary address of TIM1 is 0x40012C00-0x40012FFF. So address of TIM1 prescaler is 0x40012C00+0x28=0x40012C28?

Exactly.

Address offset is in this case referenced to the base address of the peripheral.

The reference manual for STM32 MCUs usually contain a section 'Memory map and register boundary addresses', which lists the base addresses of all peripherals in a MCU.

For example, it is section 3.2, page 51 in the F303/F328/F358/F398 manual (doc. number RM0316, ID 022558).

View solution in original post

2 REPLIES 2
AvaTar
Lead
Posted on December 01, 2017 at 11:39

Boundary address of TIM1 is 0x40012C00-0x40012FFF. So address of TIM1 prescaler is 0x40012C00+0x28=0x40012C28?

Exactly.

Address offset is in this case referenced to the base address of the peripheral.

The reference manual for STM32 MCUs usually contain a section 'Memory map and register boundary addresses', which lists the base addresses of all peripherals in a MCU.

For example, it is section 3.2, page 51 in the F303/F328/F358/F398 manual (doc. number RM0316, ID 022558).

Posted on December 01, 2017 at 13:24

Thank you for your quick reply.

Thanks a lot.

Best Regards,

Ken Inoue