M masoud23 New Member Jun 14, 2011 #1 Hi I see this code in a program (not mine) : Code: INTCON2 =0b0000.0000; I know that INTCON2 stands for “INTERRUPT CONTROL REGISTER 2” and here we are setting the registers 8 bits. But what is the different between INTCON2 =0b0000.0000; and INTCON2 =0b00000000;? Dose INTCON2 =0; means the same but in decimal. Tanks in advance
Hi I see this code in a program (not mine) : Code: INTCON2 =0b0000.0000; I know that INTCON2 stands for “INTERRUPT CONTROL REGISTER 2” and here we are setting the registers 8 bits. But what is the different between INTCON2 =0b0000.0000; and INTCON2 =0b00000000;? Dose INTCON2 =0; means the same but in decimal. Tanks in advance
Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member Jun 14, 2011 #2 I've never seen / used 0b0000.0000 I use hex to initialise reg's... But if its a valid statement!!! 0b00000000 = 0b0000.0000 = 0x00 = 0..
I've never seen / used 0b0000.0000 I use hex to initialise reg's... But if its a valid statement!!! 0b00000000 = 0b0000.0000 = 0x00 = 0..
Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member Jun 14, 2011 #4 3v0! your link to pic 18 tutorials takes me to my google mailbox
Mickster Well-Known Member Most Helpful Member Jun 14, 2011 #5 @Ian, dunno if you are still having problems, but 3v0's link is working for me.
Nigel Goodwin Super Moderator Most Helpful Member Jun 14, 2011 #6 Mickster said: @Ian, dunno if you are still having problems, but 3v0's link is working for me. Click to expand... That's because he's changed it now, it's pointing at a different address.
Mickster said: @Ian, dunno if you are still having problems, but 3v0's link is working for me. Click to expand... That's because he's changed it now, it's pointing at a different address.
be80be Well-Known Member Jun 14, 2011 #7 Jalv2 uses this 0b0000.0000 so does some of the pascal compilers Lower nibble and upper nibble 0b0000.0000 Last edited: Jun 14, 2011
Jalv2 uses this 0b0000.0000 so does some of the pascal compilers Lower nibble and upper nibble 0b0000.0000
3v0 Coop Build Coordinator Forum Supporter Jun 14, 2011 #8 Nigel Goodwin said: That's because he's changed it now, it's pointing at a different address. Click to expand... Yeah sorry about that I should have mentioned it was fixed. Last edited: Jun 14, 2011
Nigel Goodwin said: That's because he's changed it now, it's pointing at a different address. Click to expand... Yeah sorry about that I should have mentioned it was fixed.