get data from lower nibbles of port b and assign it to upper nibbels of port c

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Hello guys I need a help for the following program.

write program to get data from lower nibble of port b and assign it to the upper nibble of port c.

thanks

Last Edited: Mon. Aug 31, 2020 - 02:38 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
PORTC = (PORTC & 0x0F) | (PINB << 4);

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hope he gets an "A" for that!

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"