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.

Reading I/O port problem in CCS, im begginer

Status
Not open for further replies.

proyex

Newbie level 4
Joined
Nov 2, 2007
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,323
ccs read port

--------------------------------------------------------------------------------

Reading the compiler manual I can't find any instruction for reading the
entire port (for example reading the 8 bits of portb from b0 to b7)) at
same time. In PicBasic I made that with peek command to read the
entire byte, but in C I only find input pin command. So if i want to read 8
bits I must repeat 8 times this command, any suggestion? Thanks
thanks for any help
 

read port ccs

You just read the port.

unsigned char port_value;

port_value = PORTB;
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top