Skip to main content
Ken Inoue
Associate III
December 1, 2017
Solved

What is address offset?

  • December 1, 2017
  • 1 reply
  • 2704 views
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.

    This topic has been closed for replies.
    Best answer by AvaTar
    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).

    1 reply

    AvaTar
    AvaTarBest answer
    Senior III
    December 1, 2017
    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).

    Ken Inoue
    Ken InoueAuthor
    Associate III
    December 1, 2017
    Posted on December 01, 2017 at 13:24

    Thank you for your quick reply.

    Thanks a lot.

    Best Regards,

    Ken Inoue