using picc on a pic1f627



First, I am retired and doing all this just for fun ;-) and it's a looong time since I used C language

I need to write 4 bits to PORTB without disturbing the others bit
RB1, RB2 are ( will be ) used by the UART.
If I Mask 4 bits like CC = CC & 0x0F the upper bits are set to 0 but still there?

I think I could create a structure ( or a type ) with 4 bits such as
BCD { RB3
RB4
RB5
RB6
}

But I keep trying, no luck ( so far )
Can someone give a hand??
Many thanks in advances
André
.



Relevant Pages

  • Re: "Sheila J" & Wine
    ... That's the fun. ... Der Kammerdiener ist aufgrund seines beschränkten Wissens nicht in der ... Huygens' contemporaries had mo means of establishing that Huygens was on the right track. ... they cling to the language instead of mastering it, like a clown at a rodeo. ...
    (soc.history.medieval)
  • Re: new
    ... I know about reading books but what is ... little about every language (I think that includes Fortran, ... and it's fun to test once you're ... If the language or the terminal can't handle Tetris, ...
    (comp.lang.cpp)
  • Re: Paul Grahams Arc is released today... what is the long term impact?
    ... Arc has a couple of neat ideas (the building of the language from ... the language/library up using set+annotate is kind of fun. ... (define (ac-mac-call m args env) ...
    (comp.lang.lisp)
  • Re: teaching again
    ... Have fun... ... I say.....in English?" ... It is such great fun to see them progress with the language and it is so ... France, for jobs it is much better to be able to speak English well, than ...
    (rec.crafts.textiles.quilting)
  • Re: Programming language for children
    ... language, available in ubuntu, ... You want to make it fun, ... Folk here have suggested python, and I think that's a great choice. ...
    (Ubuntu)