EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / avr macros

avr macros

|

Microcontroller › AVR › avr macros

  • This topic has 1 reply, 2 voices, and was last updated 15 years ago by Amit Joshi.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 2, 2011 at 8:28 am #622
    KIMBERLY WHITE
    Participant

     I started with avr recently. i am searching the some basic code of avr i found some macros

    for example-

    DDRB = _BV(PB0) | _BV(PB1);

     

    what is the means of ”BV” macro here. 

    February 4, 2011 at 6:49 am #5407
    Amit Joshi
    Participant

     this macros are under the “inttypes.h” header file. this macro are used when u need to deal with single i/o pin of avr microcontrollers.

     

    this macro shows PB0 and PB1 are output and rest pins are input pins

     

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • analog logic of shmidt trigger bjt circuit February 15, 2026
  • Convenient audio FFT module? February 15, 2026
  • CR2/CR123A Batteries In Projects February 15, 2026
  • Harman Kardon radio module BMW noise February 15, 2026
  • RC Electronic Speed Control Capacitors February 15, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise