• bits are not setting
    Can anybody tell me what is wrong in the following coding? I am unable to set P1.5 and P1.6 if I take the set memory from the variable and try to assign it to P1.5 or 6. But I am able to set P1.5 and...
  • Setting a port bit in ASM
    I've tried a variety of methods for storing a bit address in ASM so I can subsequently SET/CLR that bit but have had no luck. Here's the pseudo-code for what I want to do: 1 - Initialize an 8-bit...
  • use of bit as array index fails? (if bit is set)
    Hi, I suspect I have hit upon a bug in C51 V6. When a bit variable is used as an index into array of int or long int, it fails. Actually, it fails only if the bit is 1; otherwise it works ok. I...
  • bit setting, how to
    Hallo! I'm searching for a explanation for the code in Keil's CAN.h (01=set; 10=reset) <-------------code-------------> ... #define NEWDAT_ 0x0200 u #define CPUUPD_ 0x0800 u #define TXRQ_ 0x2000...
  • Setting OTP LOCK bit
    uC: STR912 I am having trouble programmatically setting the OTP lock bit (ie not using JTAG/CAPS to set the lock, but by using firmware running on the STR912 itself). I can read and write the OTP...