2017-12-01 02:17 AM
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.
What is address offset? My question is what is the address of TIM 1?
Boundary address of TIM1 is 0x40012C00-0x40012FFF. So address of TIM1 prescaler is 0x40012C00+0x28=0x40012C28?
I want hints.
Best Regards,
Ken Inoue.
Solved! Go to Solution.
2017-12-01 02:39 AM
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).
2017-12-01 02:39 AM
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).
2017-12-01 05:24 AM
Thank you for your quick reply.
Thanks a lot.
Best Regards,
Ken Inoue