Timer1 & 2 16F15xxx

A forums to allow bugs and problems with Flowcode v7 to be reported and resolved.

Moderator: Benj

Post Reply
medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Timer1 & 2 16F15xxx

Post by medelec35 »

Just adding enable for both timer1 and timer2:

Code: Select all

    89:	T1CONbits.T1OSCEN = 0;
	                  ^ (255) not a member of the struct/union ""
	                     ^ (182) illegal conversion between types
int -> volatile union S148
    91:	T1CONbits.TMR1CS1 = 1;
	                  ^ (255) not a member of the struct/union ""
	                     ^ (182) illegal conversion between types
int -> volatile union S148
    94:	PIE1bits.TMR1IE = 1;
	                ^ (255) not a member of the struct/union ""
	                   ^ (182) illegal conversion between types
int -> volatile union S391
   105:	PIE1bits.TMR2IE = 1;
	                ^ (255) not a member of the struct/union ""
	                   ^ (182) illegal conversion between types
int -> volatile union S391
Timer int 16F15324.c: myisr()
   121:	if ((PIR1bits.TMR1IF) && (PIE1bits.TMR1IE))
	                    ^ (255) not a member of the struct/union ""
	                                         ^ (255) not a member of the struct/union ""
	              (199) logical type required ^
	              (199) logical type required ^
   124:	PIR1bits.TMR1IF = 0;
	                ^ (255) not a member of the struct/union ""
	                   ^ (182) illegal conversion between types
int -> volatile union S374
   134:	if ((PIR1bits.TMR2IF) && (PIE1bits.TMR2IE))
	                    ^ (255) not a member of the struct/union ""
	                                         ^ (255) not a member of the struct/union ""
	              (199) logical type required ^
	              (199) logical type required ^
   137:	PIR1bits.TMR2IF = 0;
	                ^ (255) not a member of the struct/union ""
	                   ^ (182) illegal conversion between types
int -> volatile union S374
(908) exit status = 1
(908) exit status = 1

C:\Program Files (x86)\Microchip\xc8\v2.00\bin\xc8.exe reported error code 1
Martin

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Timer1 & 2 16F15xxx

Post by Benj »

Hi Martin,

Thanks for letting me know. Hopefully now fixed in the latest v7 update archive.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Timer1 & 2 16F15xxx

Post by medelec35 »

Thanks, Ben
No compile errors now, with Timer1 or Timer2.
Martin

Post Reply