About 13,600,000 results
Open links in new tab
  1. C - AVR - Simple PORTB, DDRB, PINB explanation - Stack Overflow

    I am working on a school project and need to learn the basics of C with an AVR ATmega controller. I don't understand how everything is set up. For example, PORTB, PORTD, DDRB; DDRD, PINB, …

  2. PORTB and INT external interrupts stucks the code

    Dec 28, 2022 · Four of the PORTB pins, RB7:RB4, have an interrupt-on-change feature. Only pins configured as inputs can cause this interrupt to occur (i.e., any RB7:RB4 pin configured as an output …

  3. Why bit shifting is written like this in C? - Stack Overflow

    Oct 23, 2021 · PORTB = PORTB & ((0b11111011)); This means it will take the old value of PORTB and just write bit #2 of it to 0 while keeping the rest of the bits to their original values (whether they are 0 …

  4. Issue with the delay and the toggle on PIC16F84A micro

    May 20, 2024 · xorwf PORTB,F ; Show current 4-bit count on PORTB goto MainLoop ; ; Wait 4 milliseconds Wait4ms: movf T0_Sample,W subwf TMR0,W sublw T0_COUNTS_PER_TICK skpnc …

  5. Explain this code regarding AVR port setup - Stack Overflow

    Feb 19, 2013 · Note, that the PORTB register bits serve different purposes depending on the pin direction configured via the DDRB register. For output pins, it simply controls the pin state.

  6. How to set a port as input or output with PIC? - Stack Overflow

    Oct 12, 2016 · An individual port corresponds to all of its associated pins. For example, on the PIC16F57, you have pins RA0,RA1,RA2 and RA3. These pins correspond to PORTA bits 0, 1, 2 and …

  7. Assembly movf & movwf - Stack Overflow

    May 28, 2013 · This should move the value of PORTA to PORTB: movf PORTA, W movwf PORTB It's a bit unclear from your question whether you want to move the value as-is, or if you want to set bit 0 of …

  8. c - Arduino port relocation (PORTD to PORTB) - Stack Overflow

    Aug 6, 2017 · Arduino port relocation (PORTD to PORTB) Asked 8 years, 4 months ago Modified 8 years, 4 months ago Viewed 1k times

  9. Solved 14. Find the contents of the port after each of the - Chegg

    Science Advanced Physics Advanced Physics questions and answers 14. Find the contents of the port after each of the following operations: (a) PORTB=0x65&0x76; (c) PORTC=0x95^0xAA; (e) …

  10. How to read a digital PIC port into a single variable?

    Dec 22, 2019 · I have a practice exam question that asks me to read PORTB input logic levels into a single char variable called result. (On a PIC18F252). I had some ideas for this but I haven't got …