Home  |  Contents 
Microcontroller and PC projects
  Forum Index : Microcontroller and PC projects         Section
Subject Topic: Help with MPLAB X please Post ReplyPost New Topic
<< Prev Page of 2
Author
Message << Prev Topic | Next Topic >>
Azure
Regular Member
Regular Member
Avatar

Joined: 09 November 2017
Location: Australia
Online Status: Offline
Posts: 71
Posted: 06 December 2017 at 8:04am | IP Logged Quote Azure

larny wrote:
Thanks Azure & vegipete,
... What you both think?


I honestly don't use MPLABX enough to give you a good recommendation. My default response would be go with the latest version if you are not locked into a particular version for a reason (known bugs that affect your environment, etc).

I am on MPLABX V4.05 and having problems with the IDE and IPE since I moved to my new PC Notebook. Issue lies with netbeans not handling screen resolution (4K). I was not having the problems I am now if I use my MacBook Pro (which has a normal res screen) with the same version.



Back to Top View Azure's Profile Search for other posts by Azure
 
larny
Senior Member
Senior Member


Joined: 31 October 2011
Location: Australia
Online Status: Offline
Posts: 290
Posted: 06 December 2017 at 2:29pm | IP Logged Quote larny

Thanks vegipete & Azure,
I have 4.05 also. It does what I want, but I prefer 8.92 since it automatically opens all of the project files when I open the workspace file.

Whereas,with 4.05, I have to fool around each time I open the Project in order to get it back to where I want it.

Vegipete, is 3.61 the same or is it more like 8.92 in this respect?

Len
Back to Top View larny's Profile Search for other posts by larny
 
Azure
Regular Member
Regular Member
Avatar

Joined: 09 November 2017
Location: Australia
Online Status: Offline
Posts: 71
Posted: 06 December 2017 at 3:44pm | IP Logged Quote Azure

That's interesting.

I went through all the settings (I could see with the screen formatting problem I am having). Could not see anything that refers to restore previous projects/files.

When I exit and restart it opens all the projects I previously had open and all the files within those projects are opened in the edit window (with tabs) as well.
Back to Top View Azure's Profile Search for other posts by Azure
 
vegipete
Senior Member
Senior Member
Avatar

Joined: 29 January 2013
Location: Canada
Online Status: Offline
Posts: 117
Posted: 07 December 2017 at 7:32am | IP Logged Quote vegipete

V3.61 is _nothing_ like the old MPLAB (up to v8.92.)
I expect it is indistinguishable from v4.xx except for whatever bugs are manifesting themselves.

For me, MPLABX restarts the same as when I last shut it down. I don't have to play around to get files back to how they were. Although for all I know, maybe I can't remember what I had last time so what I see is a good enough starting point.
Back to Top View vegipete's Profile Search for other posts by vegipete
 
larny
Senior Member
Senior Member


Joined: 31 October 2011
Location: Australia
Online Status: Offline
Posts: 290
Posted: 10 December 2017 at 11:10am | IP Logged Quote larny

I find I have to re-open the project & load the Stimulus file each time I start MPLAB X. But I can live with that.

I can now use MPLAB X (as much as I need for the current programme) but the IOC is not working as I would expect.

I'm using IOC to wake the PIC from sleep. (I'm not using an interrupt)
But it does not work properly & I don't know why.

The attachment Cases.pdf. shows the situation after it has (incorrectly) passed through sleep even though the change was processed before reaching sleep.

Note that IOCAF is still = 0x20 (it should be 0) & INTCON is still = 0x0D (it should be 0x0C).

Attachment also shows the situation after a negative edge. Again, it passed through sleep.

I don't think there is anything wrong with my programme, so I assume it is a bug in v4.05.

Any comments will be appreciated.
Len

2017-12-10_110914_Cases.pdf
Back to Top View larny's Profile Search for other posts by larny
 
vegipete
Senior Member
Senior Member
Avatar

Joined: 29 January 2013
Location: Canada
Online Status: Offline
Posts: 117
Posted: 10 December 2017 at 11:50am | IP Logged Quote vegipete

I haven't played with SLEEP so I can't really help. The interrupt on change flag is usually cleared by reading the port register looking for the change. So read PORTA or PORTC just before SLEEP instead of "bcf INTCON,IOCIF"
Back to Top View vegipete's Profile Search for other posts by vegipete
 
larny
Senior Member
Senior Member


Joined: 31 October 2011
Location: Australia
Online Status: Offline
Posts: 290
Posted: 11 December 2017 at 8:46am | IP Logged Quote larny

Thanks for that.
I knew that but had forgotten.
I had to use that technique in the past with other PICS.

So that solved my issue. Thanks again,
Len
Back to Top View larny's Profile Search for other posts by larny
 
Azure
Regular Member
Regular Member
Avatar

Joined: 09 November 2017
Location: Australia
Online Status: Offline
Posts: 71
Posted: 11 December 2017 at 8:56am | IP Logged Quote Azure

There is not enough code included to understand what you are actually doing with the associated registers. I assume it is the 16F1708 you are using as mentioned in your first post.

The problem you are describing is that it is being woken up immediately not that it is not functioning (stuck in sleep).

To test the IOC function is working or not, I would first eliminate it and do a debug session without it. If everything else is working as it should then it should be stuck in sleep, if not then something else is waking it up.

Also for IOC fuction to work Have you set the IOCAP and IOCAN registers for the pin(s) you are expecting to see the change(s) on.

Back to Top View Azure's Profile Search for other posts by Azure
 


If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Search the forums using Google.
<< Prev Page of 2
In the news...
 
Post ReplyPost New Topic
Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.8
Copyright ©2001-2004 Web Wiz Guide

This page was generated in 0.0940 seconds.
Privacy Policy     Process times : 0, 0, 0, 0.09