Spark Logic

Microcontrollers and processors

AVR

Discussions and practical resources mentioning AVR.

Discussions 81

  1. Very lean Serial.printf()

    Slammer

    And for those that saying that STM32 wastes more memory than AVR, the same function in Uno needs 0x40C+0x2A = 1078 bytes
  2. WS2812B (Neopixel) library for Libmaple using SPI DMA

    RogerClark

    … so if SPI2’s clock is half of SPI1, then it would need to be DIV16 Re: References to AVR Somehow the original file header got back in. (arrggh) I’d not spotted that. I’ll remove all that junk. So I’ll go through and remove references to AVR A few more things……
  3. WWVB timecode from blue pill

    Riva

    Slightly off topic as the sketch was for an AVR but I made a similar thing for MSF timecode used in the UK. For the antenna I just used a length or wire attached to the output pin and draping it over the clock is enough to do the job.
  4. [SOLVED] AVR SREG emulation

    mrburnette

    STM32F103 has status registers. Just not AVR style registers: http://infocenter.arm.com/help/index.js … BIBGJ.html More here: http://docs.leaflabs.com/static.leaflab … ister-maps I strongly suggest you download & read the official reference before you go o…
  5. [SOLVED] Adafruit_ILI9341_STM – hardware scrolling broken

    mrburnette

    …term) during the old days of Arduino when 5.0 Volts was the defacto standard. The old AVR chips could sink and source significantly more current so the series resistors and stray capacitance did not significantly screw with the waveforms. That is not true of u…
  6. [SOLVED] Error with i2cdev library

    RogerClark

    …AM architecture https://github.com/arduino/ArduinoCore- … NGTH&type= and also for AVR But not for SAMD I can see its referenced in http://playground.arduino.cc/Main/WireL … dReference But its not really part of the public API for Wire. https://www.arduino.…
  7. [SOLVED] Sloeber and float sprintf: doesn’t work

    Rick Kimball

    … it isn’t cstring it is actually String .. which is an arduino specific class. In the avr versions they have their own float conversion code which doesn’t use sprintf .. it uses a function in avr libc http://www.atmel.com/webdoc/avrlibcrefe … 71d42.html … whic…
  8. [SOLVED] Trying to use simple MBI5030 library

    RogerClark

    …portable, and speed would not be an issue , as the STM32 runs at least 5x faster than AVR Actually I doubt speed was ever an issue on AVR, as that function looks like a constructor
  9. [SOLVED] generic blue pill clone as USB keyboard

    … to install the libraries properly. Can anyone help? I’ve done a little bit of 8-bit AVR programming in Arduino before, and some python and other interpreted languages, but I’m lost when i…
  10. [SOLVED] pulsein (unimplemented)

    zoomx

    * AVR+SAM: reworked pulseIn() function to become GCC agnostic * AVR+SAM: added pulseInLong() (based on micros()) to help getting good results in interrupt-prone environments
  11. [Solved] PN532 library from Adafruit not working

    RogerClark

    …You also need to confirm that you application code would work even when running on an AVR (e.g Uno), as its not necessarily a fault in the library which is causing your problem
  12. [libmaple] SDIO

    victor_pv

    …you have different libraries with the same name for different cores, like one for the AVR arduinos, and one for the STM32. A while back I stopped using the Arduino IDE and started using Eclipse, and I don’t plan to go back. Unless Steve can duplicate the same …
  13. [solved] MFRC522 library and STM32

    RogerClark

    …nd perhaps having a buffer overflow remember the data types are different in ARM than AVR e.g. int is 32 bit, double really is double, “word” may be a different size to what the AVR code thinks it is. Look carefully at the data types you are reading from the p…
  14. by-passing the arduino-e-ness?

    RogerClark

    … the library is not for external hardware, but its not uncommon to have a library e.g AVR TimerOne , which purely provides access to hardware functions that the core Arduino API doesnt. (EEPROM library is the same) But… I think in reality it would be impractic…
  15. eBay digital voltmeter modification

    stevech

    … mentioned Adafruit USB power gauge… range is 0 to 500mA as scaled for the ADC in the AVR. https://www.adafruit.com/products/1549 I have one and use it often. Analog signal is handy. UART text comes out too, showing V and mA. Which could be hacked. It has a sh…
  16. from stm32 to stm8s

    dannyf

    … availability and low low prices. There resources are on par with your typical pic or avr. But at a fraction of the cost. A few downside. 1. Compiler choices are limited. Cosmic isn’t that great to use so I’m exclusively on iar. 2. Slow chip. Limited number of…
  17. library and its examples not being seen

    zmemw16

    …ybe that if you’re using or wanting to use an updated LiquidCrystal library, then for avr platforms it’ll conflict with the Arduino supplied LiquidCrystal. So then you need to either delete or move the originally supplied library. I hate deleting ‘supplied’ an…
  18. maple mini under eclipse + Nightly arduino eclipse plugin / linux

    victor_pv

    …gave this a shot last weekend, and could not get it working properly. It did work for AVR, but not for stm32. Some times I would get errors saying there is no project to compile, other times an error with make. Has anyone used it successfully in Windows for th…
  19. u8glib with STM32f103c8t6 board

    searcher

    …ts/Java/tools-builder” -tools “/Applications/Arduino.app/Contents/Java/hardware/tools/avr” -tools “/Users/admin/Library/Arduino15/packages” -built-in-libraries “/Applications/Arduino.app/Contents/Java/libraries” -libraries “/Users/admin/Documents/Arduino/libra…
  20. what if we make a custom programmer for STM32 using an AVR arduino?

    mrburnette

    stevech wrote:Since there exists a $20 ST-Link, what’s the benefit of a DIY AVR microprocessor-as-programmer? Must be something I can learn from such a goal!