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.

Proteus and the 16F628 RA6 and RA7

Status
Not open for further replies.

pjmelect

Advanced Member level 2
Joined
May 13, 2012
Messages
568
Helped
127
Reputation
254
Reaction score
127
Trophy points
1,323
Activity points
5,609
Is it possible to set RA6 and RA7 to inputs and outputs in Proteus? I have changed the configuration byte in Proteus but it makes no difference, is it me or is this a limitation in the Proteus model.
 

Hi,
I have tried to set RA7, RA6 as output ports in ISIS(without defining the "__CONFIG()" in the code) in the "Edit Properties" of the Micon(PIC16f628a).
Try to set the value of "Program Configuration Word" as 0x2150, with this the pins can be set as output. The version on which I have tried was ISIS Release 7.7 SP2.
The details of above configuration is given in the attached image.
Can you try with these settings.
 

Attachments

  • Config_settings.jpg
    Config_settings.jpg
    38.9 KB · Views: 106
I have tried 0x2150 as the configuration word and it does not work, I am unable to set RA6 and RA7 to outputs. I am using Isis 7.10 sp0. did you get it working with 7.7 sp2?
 

Yes, it worked on 7.7 sp2 for PIC16f628a micon. Can you check the voltage across LEDs (if LEDs are really getting the driving volages) .
I have attached image with LEDs in ON state on both the pins.
Also attached image for settings window.
 

Attachments

  • AllPortsetasOutput.jpg
    AllPortsetasOutput.jpg
    274 KB · Views: 116
  • ConfigurationWordValue.jpg
    ConfigurationWordValue.jpg
    271.1 KB · Views: 152
Thank you AdityaRajnayak for helping me with my problem, you confirmed to me that setting RA6 and RA7 to outputs in Proteus should work and I have found out the cause of my problems.
What I did not realize was that the configuration settings in the source file override the configuration settings in the properties of the processor which I was changing, I did not think that these settings in the source file were taken any notice of, but apparently they are. Once again thank you.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top