ChronoFish 0 Posted February 11, 2004 Report Share Posted February 11, 2004 Hi there, I receieve this error in version 5.2 so I upgraded. It didn't solve the problem. Target is a 16f84a Trying to use a single pin for output (porta). Two timers are setup. Timing code won't compiler The code in question is this: // timer 1 setup timer1_clone = 65486; t1con = 0x01; set_bit( pie1, TMR1IE ); The error report is here: C2C-plus 5.3e C-compiler Copyright(C) 1998-99,2000-2004 by Pavel Baranov http://www.picant.com/c2c/c.html [email=support@picant.com]support@picant.com[/email] (Extended version) Licensed to: ME 16CTX.c 16CTX.c(79): Error: Undefined identifier 't1con' 16CTX.c(80): Error: Variable expected 16CTX.c(80): Error: Undefined identifier 'TMR1IE' .... Finished. C:\PROGRA~1\SOURCE~2\c2c.exe -PPIC16F84A -SRC -ols -md -O2 -Ip16F84A.inc -o16CTX.asm 16CTX.c piccode.c C:\PROGRA~1\MPLABI~1\MCHIP_~1\MPASMWIN.EXE /aINHX8M /pPIC16F84A /rHEX /w2 /q 16CTX.asm Done Failed Please advise, CF Quote Link to post Share on other sites
Guest Pavel Posted February 11, 2004 Report Share Posted February 11, 2004 Please provide steps to reproduce the problem. Regards, Pavel Quote Link to post Share on other sites
ChronoFish 0 Posted February 11, 2004 Author Report Share Posted February 11, 2004 Thanks for the quick response. Here are the steps: 1. Create a blank project 2. Open PICC Wizard General Settings 2.1 Select Project Name (that you just created) 3. Select 16f84a 4. Unslect "EEPROM" Features 5. Select XT for Oscillator I/O Ports 6. Select PortA 7. Remove check from pin 1 (111110) 8. Verify output values (010000) 9. Select PortB 10. Verify I/O settings (11111111) 11. Verity output values (00000000) Timers 12. Select Timer0 13. Enable Timer 14. Run timer function every 0.5ms 15. Select Timer1 16. Select Internal/Timer at 0.001 resolution 17. Enable Timer 18. Run timer function every 0.05ms 19. Click Okay 20. Click Okay 21. Build Full Output from compiler C2C-plus 5.3e C-compiler Copyright(C) 1998-99,2000-2004 by Pavel Baranov http://www.picant.com/c2c/c.html [email=support@picant.com]support@picant.com[/email] (Extended version) Licensed to: Your Name Error.c Error.c(71): Error: Undefined identifier 't1con' Error.c(72): Error: Variable expected Error.c(72): Error: Undefined identifier 'TMR1IE' Error.c(72): Error: Undefined identifier 'TMR1IE' Error.c(72): Error: Undefined identifier 'TMR1IE' Error.c(135): Error: General error Error.c(139): Error: General error Error.c(142): Error: General error Error.c(145): Error: General error Error.c(147): Error: General error Error.c(147): Error: General error Error.c(147): Error: '(' expected piccode.c Finished. C:\PROGRA~1\SOURCE~2\c2c.exe -PPIC16F84A -SRC -ols -md -O2 -Ip16F84A.inc -oError.asm Error.c piccode.c C:\PROGRA~1\MPLABI~1\MCHIP_~1\MPASMWIN.EXE /aINHX8M /pPIC16F84A /rHEX /w2 /q Error.asm Done Failed Quote Link to post Share on other sites
Guest Pavel Posted February 11, 2004 Report Share Posted February 11, 2004 2. Open PICC Wizard What do you mean under "PICC Wizard"? The project wizard can't even be started if the Picc Lite toolsuit is current. Regards, Pavel Quote Link to post Share on other sites
ChronoFish 0 Posted February 11, 2004 Author Report Share Posted February 11, 2004 2. Open PICC Wizard What do you mean under "PICC Wizard"? The project wizard can't even be started if the Picc Lite toolsuit is current. Regards, Pavel Are you stalling? :: I have no idea what you just said. All I know is that I start with a newly created (essentially blank) project. Then from the menu bar I click on Project->Wizard and a dialog box comes up that labeled "PICC Wizard". I think the steps I outlined are pretty explicit. It should give you enough to re-produce the problem. Thanks! CF Quote Link to post Share on other sites
Guest Pavel Posted February 11, 2004 Report Share Posted February 11, 2004 Then from the menu bar I click on Project->Wizard and a dialog box comes up that labeled "PICC Wizard". Sorry about the confusion (speaking to myself: hmmm need to change the name of the wizard dialog). Regards, Pavel Quote Link to post Share on other sites
ChronoFish 0 Posted February 12, 2004 Author Report Share Posted February 12, 2004 Have you been able to reproduce the error? If so what do you recommend? Thanks, CF Quote Link to post Share on other sites
ChronoFish 0 Posted February 12, 2004 Author Report Share Posted February 12, 2004 Yeah, Okay. I discovered the problem. There is no "timer1" for the 16f84a. The wizard unfortunately not only offered the option but went ahead and generated the code. Thanks anyway -CF Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.