Skip to content
This repository was archived by the owner on Jan 24, 2020. It is now read-only.
This repository was archived by the owner on Jan 24, 2020. It is now read-only.

ADC Libraries #11

Closed
Closed

Description

@palmerr23

Frederic,

I've been testing the advanced ADC\DAC modes (beyond single conversion, polling) using the templates from STM32Cube_FW_F4_V1.15.0\Projects\STM324x9I_EVAL\Examples\ADC\ and \DAC\

When using these other analog routines, HAL_ADC_MspInit() etc need to be customised for each configuration.

Now I'm trying out the dual-interleaved mode, it has become clear that the code in analog.c is just an initial test.

As HAL_ADC_MspInit() needs to be customised for each configuration, I'm looking at hiding the MSP_Init functions in analog.c at the system level and moving the code up to a library. The Init functions can then be customised for each mode.

When I tried this, other functions break - like dac_stop() and pwm_stop(). I think I'll be able to leave them in analog.c

Give me a few days and I'll have something workable.

Single-Polling and Single-interrupt are working already, using pretty much standard code from the Cube libraries, next up is dual-interleaved

Richard

Activity

  1. changed the title [-]Analog.c - g_current_pin only initialised by high level functions[/-] [+]ADC Libraries[/+] on May 5, 2017
  2. palmerr23 commented on May 6, 2017

    @palmerr23
    Author

    Frederic,

    I've tested a number of ADC modes - polling, interrupt, DMA.

    Example files are in https://github.com/palmerr23/Black-F407VET6-cube/tree/master/examples

    Currently debugging Dual Mode Interleaved (edit: now working).

  3. fpistm commented on May 24, 2017

    @fpistm
    Owner

    Proposed to move on the new repo Arduino_Core_STM32 as this one is deprecated. (same code).

  4. palmerr23 commented on May 24, 2017

    @palmerr23
    Author

    Frederic, Fine by me. I'm shifting across to the new core also.

  5. fpistm commented on Jun 2, 2017

    @fpistm
    Owner

    This issue was moved to stm32duino/Arduino_Core_STM32#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions