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.

are port pins memory mapped ?

Status
Not open for further replies.

jit_singh_tara

Full Member level 6
Joined
Dec 22, 2006
Messages
325
Helped
9
Reputation
18
Reaction score
4
Trophy points
1,298
Location
Delhi , India
Activity points
4,293
hi friends , please tell me wether the port pins of pic16f877a are memory mapped ,i want to use individual bits of port for defining a name to it and using it in main .dont want to use #define cs portc.f5 (in mikroc compiler) .

ned something like

init(&portc , 5) // defines portc pin5 as cs.
or
init(&portb , 3) // defines portb pin3 as cs.

using function. both port and pin of the port should be configurable.
 

Yes, you can do that.
 

read the datasheet... is that so hard? there you have the addresses of registers that control I/O - that is all you need...

0x41 0x56 0x45!!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top