Timer1 & 2 16F15xxx

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

Moderator: Benj

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8332
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2381 times
Been thanked: 3393 times
Contact:

Timer1 & 2 16F15xxx

Postby medelec35 » Mon Apr 15, 2019 1:01 pm

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

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

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

Re: Timer1 & 2 16F15xxx

Postby Benj » Tue Apr 16, 2019 11:57 am

Hi Martin,

Thanks for letting me know. Hopefully now fixed in the latest v7 update archive.
These users thanked the author Benj for the post:
medelec35 (Tue Apr 16, 2019 12:01 pm)
Rating: 5.56%
 

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8332
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2381 times
Been thanked: 3393 times
Contact:

Re: Timer1 & 2 16F15xxx

Postby medelec35 » Wed Apr 17, 2019 7:13 am

Thanks, Ben
No compile errors now, with Timer1 or Timer2.
These users thanked the author medelec35 for the post:
Benj (Wed Apr 17, 2019 9:49 am)
Rating: 5.56%
 
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.