Anyone else notice wrong OSCCON settings for 16f15xx devices? Tried with latest hot release and no go there either. I have opened a ticket on this. The assembler uses an AND/IOR procedure in INITSYS instead of setting the IRCF bits directly as is done on some other enhanced midrange devices.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I reported a similar problem in the following thread for the 16F1508.
But it seems to be solved in the latest 0.94 version.
Which GCB version are you using ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Strange. I am using the same GCB version as you do and I get for a 1509:
OSCCON=104 at 4MHz, 112 at 8Mz and 120 at 16Mz which are the good values.
Which specific chip are you using ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Device is a 16f1503. Well darnit, I didn't rename my new hot release folder "GCB Syn Write". Now everything works and compiles O.K. Thanks Jacques for the encouragement, and making me examine the problem in a new light.
Edit: Also, closed the ticket I made.
Last edit: kent_twt4 2015-05-28
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anyone else notice wrong OSCCON settings for 16f15xx devices? Tried with latest hot release and no go there either. I have opened a ticket on this. The assembler uses an AND/IOR procedure in INITSYS instead of setting the IRCF bits directly as is done on some other enhanced midrange devices.
I reported a similar problem in the following thread for the 16F1508.
But it seems to be solved in the latest 0.94 version.
Which GCB version are you using ?
Missed that post, thanks. Same problem as you experienced, the INITSYS OSCCON setting only works for 16MHz. The IRCF<0> bit is always 1!
I used this hot release here https://sourceforge.net/projects/gcbasic/files/Hot%20Releases/31_03_2015/ which is called 0.94 for that date. Do I need to drop all the folders in from trunk to make for the latest update?
EDIT: beg pardon, since I just downloaded the hot release today into it's own folder, the update is the 02/04/2015 version.
Last edit: kent_twt4 2015-05-28
Strange. I am using the same GCB version as you do and I get for a 1509:
OSCCON=104 at 4MHz, 112 at 8Mz and 120 at 16Mz which are the good values.
Which specific chip are you using ?
Device is a 16f1503. Well darnit, I didn't rename my new hot release folder "GCB Syn Write". Now everything works and compiles O.K. Thanks Jacques for the encouragement, and making me examine the problem in a new light.
Edit: Also, closed the ticket I made.
Last edit: kent_twt4 2015-05-28