I am rather new to uC programming and have hit a wall trying to find the base register address of comparator peripherals for the stm32f303k8. I couldn't find the info in either the reference manual, datasheet, or programming manual, as well as many other hits on various searches. I've seen that if a clock is enabled for the comparators it runs on the AHB clock, but a separate diagram shows the AHB feeding into both APB1 and APB2 and the comparators were specifically placed under the APB2. I am quite confused and would welcome any help (short of using libraries!), even a search string pointing me in the right direction.
Stm32f303k8 Comparator register address?
81 Views Asked by Justin Kennedy At
1
There are 1 best solutions below
Related Questions in MICROCONTROLLER
- HOW to connect my UPS with my android device
- What is the difference between USB host VS USB OTG support when it comes to Microcontrollers?
- STM32F4 Handling peripheral error while making a DMA Transfer (RX)
- USB Full Speed polling interval
- Which is better? int8_t vs int32_t in 32 bits MCU
- Detecting EEPROM data and address bus short circuit
- Incrementing an int in a C code for microcontroller only moves the LSB
- Using SD card as external storage for Beaglebone Black
- arm-none-eabi-ld: section .ARM.exidx overlaps section .data
- FT801 chip id error on Arduino
- lpc17xx frequency detection of square wave using polling
- How to debug C program on microcontroller
- Char array of array values to pointer array
- Embedded software program block, I2C?
- Reset vector not working though RCHW is loaded with start address in MPC5777M?
Related Questions in CPU-REGISTERS
- How do compilers store hundreds of variables in only a few registers?
- Inline assembly in kernel module
- Reserve bytes in stack: x86 Assembly (64 bit)
- Inconsistent register values after setting up them in a Jprobes module
- x86 assembly registers addresses
- (Lower level of C++) When using "cout" on a piece of data, were does it go to before being displayed on screen?
- C++ Error Reading Register Value, can't debug
- GDB info registers command - Second column of output
- Why is the register length static in any CPU
- What is the difference between "mov (%rax),%eax" and "mov %rax,%eax"?
- Trouble understanding registers x86
- atmega: register data gets corrupted by division operation
- How are registers and other information preserved during function calls in C?
- How to use Hi(r8-r12) register in Cortex-m0?
- Storing variables in CPU registers
Related Questions in STM32F3
- How to do a adc conversion every 1us with Nucleo-F303K8?
- Simultaneous Data Transmission Issue Between Two STM Boards
- Controlling STM32F3 GPIOs without the Cube MX libraries
- GDB don't stop on breakpoints and continue
- Why is my led(stm32f3-discovery board) is not glowing after applying delay?
- Problem sending data to SPI1->DR as master
- Why is a memory location only written to once in an interrupt callback when using ADC and DMA transfers with a STM32F3?
- Can STM32F303 on-chip I2C be used, to connect to STM32F3DISCOVERY on-board gyroscope (I3G4250D or L3GD20)?
- STM32 UART multiprocessor mode with address mark detection. Intended data bytes are interpreted as address bytes
- Why we use FLASH.constrain() and RCC.constrain() in embedded RUST using STM32F30x?
- What RTC backup register should I use in STM32?
- XGZP6859D Pressure Sensor with Stm32f302R8
- stm32f3 discovery usart is not sending
- why am I getting a communication failure when trying to connect with stlink-v2 using openocd
- Stm32f303k8 Comparator register address?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You find the answer in the reference manual of your STM32F303k8 rather than in its datasheet.
In section 3.2.2 of the reference manual, you find both the relation between the peripherals and the buses through which you can reach them, and the boundary/base addresses of the peripheral registers. On Table 4 on pages 57/58 is for your controller subfamily. Here, I find a line on SYSCFG + COMP + OPAMP, which may be what you are looking for. Base address for all is 0x4001 0000, connection is through APB2.
Edit: If you want to check the documentation which buses/clocks are needed along the way to drive the peripheral, I recommend starting at Fig. 1 in Ch. 2 (p. 13) of the datasheet. Here, you find that APB2 is driven through AHB2, and that COMPs are configured through SYSCFG CTL. The clock tree depicted in Fig. 2 in Sec. 3.6 (p. 19) shows that APB2 clock is driven (with another prescaler) by the AHB clock (HCLK). The details are described in Ch. 2 of the reference manual.
I personally prefer to start with the clock tree editor tool embedded to STM32CubeMX because I feel too lazy to look up all the information at the beginning of development. This gives one the chance to start from a reasonable guess and verify if the clock settings are the needed ones afterwards.