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.

Problems with PORTE in the PIC16F877A

Status
Not open for further replies.

boncker

Member level 2
Joined
Dec 9, 2006
Messages
51
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,288
Location
Brazil
Activity points
1,610
I intend to use the PORTE of the PIC16F877A as digital outputs. I did the C code (using CCS compiler) but it was not possible to put the byte I want in the PORTE using the following code:


var=2;
output_E(var);


So, I would have in the PORTE the byte 0x02 (or any other byte), but it is always showing 0x00. I already did the setups in the TRIS registers, no analogs ports, etc.

Anyone can help me on this problem?

Thanks!
 

have you set adcon1??


movlw b'10000110' ; Set all digital
movwf ADCON1 ;
 

koky,

thanks for your help.
I already implemented this output using the output_pin(e0) (using CCS compiler) and it is running good.

Thanks!
 

Hi,
set ADCON1, koky allready write...
regards
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top