Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to send data to sfr register?

Status
Not open for further replies.

hemnath

Advanced Member level 3
Joined
Jun 24, 2012
Messages
702
Helped
61
Reputation
120
Reaction score
57
Trophy points
1,308
Location
Chennai
Activity points
6,588
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
 

I do not understand - do you want to address a single bit, or a full byte of an SFR? Your post says how to do both (#BIT and #BYTE). Both are clearly explained in CCS's help.

Can you explain more clearly what you are trying to do?
 
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top