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.

[PIC] PIC12F675 GPIO4 and GPIO5

Status
Not open for further replies.

eTechs

Newbie level 3
Newbie level 3
Joined
Feb 22, 2015
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
23
Dear All,
I am new to the PIC micro-controllers. I am using PIC12F675 and trying to toggle the GPIO5. I am using mikroC pro for PIC compiler and proteus7.4. I have tested my code on different version of mikroC and Proteus. I have tried with configuration register from 0x3FF0 to 0x3FF7. (enabling and disabling the oscillator in different modes) and still found the GPIO4 and GPIO5 in high impedance state. I used internal and external pull ups as well.
I need at least one adc channel and four IOs as output in 12F675 for my project.
Kindly give a hint/ code etc. to solve this problem.
Thanks.
eTechs
 

@eTechs, @hexreader:
Do not forget to set ANSEL (and TRISIO) accordingly (zero if no analog input, or ... look at the datasheet).

@eTechs:
If you want four digital outputs then only one analog input is possible since GP3 is only a digital input (or MRCLR).

Config: INTOSCIO, WDT OFF, others as usual
 
Last edited:

Thanks to all. Actually I could not write to the port because I was not configuring correctly the micro-controller in the compiler (mikroC).
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top