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 / Replies / i think u know the truth

i think u know the truth

|

Microcontroller › AVR › AVR PORT pins › i think u know the truth

November 16, 2011 at 12:43 pm #6842
srinu
Participant

i think u know the truth table of AND & OR logic

 

the same opperaton is going on here..

 

in first two statements..

PORTD |= (1<<PD0 ) and  PORTD = (1<<PD0) both opperations are same

 

but in second statemnt(PORTD = (1<<PD0)), we r dng PD0 as a ONE and remaing all pins are ZERO.

 

in first statemnt (PORTD |= (1<<PD0)), only PD0 as ONE and we r not touching remng PINS..that mean

 

if  PD1=1,

in first statemnt PDO=1 and PD1 also 1

but in second PD0 =1 and PD1 is ZERO.

 

 

and remaing also same…..

 

 

 

 

i hope u undersd…………

RSS Recent Posts

  • Back to the old BASIC days May 24, 2025
  • Fluke 123 scopemeter not reading ANY voltage, please help May 24, 2025
  • Capacitive Touch On The Profile May 24, 2025
  • Cpu coin acceptor and zero delay arcade board. May 24, 2025
  • Actin group needed for effective PCB software tutorials May 24, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 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