hemnath
Advanced Member level 3
i've looked in this forum about how to access registers directly in ccs c compiler. But couldn't find the good solution. for example, if i want to access individual bits of T0CON register, how to do that?
im using PIC 18f2520.
#byte T0CON = 0xD5 // timer0 address
how to access individual bits of that register?
i found by defining #bit can do this. but i want to send data as like
(example : 0b11011000) . Is there any command to send data like this to register.
can anybody help me.
thanks in advance
im using PIC 18f2520.
#byte T0CON = 0xD5 // timer0 address
how to access individual bits of that register?
i found by defining #bit can do this. but i want to send data as like
(example : 0b11011000) . Is there any command to send data like this to register.
can anybody help me.
thanks in advance