using picc on a pic1f627
- From: Andre <pas.mois@xxxxxxxxxx>
- Date: Thu, 17 May 2012 10:32:52 +0200
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é
.
- Follow-Ups:
- Re: using picc on a pic1f627
- From: Andre
- Re: using picc on a pic1f627
- From: Andre
- Re: using picc on a pic1f627
- From: Paul
- Re: using picc on a pic1f627
- From: BartC
- Re: using picc on a pic1f627
- From: Lanarcam
- Re: using picc on a pic1f627
- From: Willem
- Re: using picc on a pic1f627
- From: nick_keighley_nospam
- Re: using picc on a pic1f627
- Prev by Date: Re: working with big numbers
- Next by Date: condition true or false? -> (-1 < sizeof("test"))
- Previous by thread: Will 'free' return the memory Immediately to the OS ?
- Next by thread: Re: using picc on a pic1f627
- Index(es):
Relevant Pages
|