Jump to content

Boostfede

EstablishedMember
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Boostfede

  • Rank
    Newbrie
  1. I have <system.h> included. I don´t know why I get the "success" message followed by the "build failed" message. Anyway, the code generated is correct. The uC functions as expected.
  2. You guessed right !!!! It was as simple as that, just adding "ansel = 0" solved the problem. Thanks
  3. Hi Im getting the "build failed" message but It doesn´t show why. main.c success Executing: "C:\Program Files\SourceBoost\boostlink_pic.exe" "C:\Users\16f688\main.obj" "C:\Program Files\SourceBoost\Lib\libc.pic16.lib" -O1 -p "display" -t 16F688 BoostLink Optimizing Linker Version 6.97 http://www.sourceboost.com Copyright© 2004-2010 Pavel Baranov Copyright© 2004-2010 David Hobday Optimisation level:1 Building CASM file Memory Usage Report =================== RAM available:256 bytes, used:11 bytes (4.3%), free:245 bytes (95.7%), Heap size:245 bytes, Heap max single alloc:94 bytes ROM available:4096 words, used:79 words (2.0%), free:4017 words (98.0%) success Loaded C:\Users\16f688\display.COF. BUILD FAILED I´m using mplab 8.76. This is the code: void main() { set_bit( porta, 0 ); set_bit( porta, 1 ); set_bit( portc, 0 ); while(1); } Apparently, if I comment the "set_bit" lines, I don´t get the "build failed" error. I´m having strange problems related boostc and mplab as you can see in another post (pwm). Maybe the integration is not ok? Thanks
  4. Hello I am writting a very simple code to control 2 pwm in 2 different pins on PIC16F688. The tick for both pwm comes from Timer0. Each timer0 interrupt, a counter is incremented. Each pwm has its own setpoint. When the counter reaches the setpoint, the corresponding pin is cleared. Finally, when the counter reaches some maximum value, it is reseted to 0 and both pins are set. This is the code void interrupt() { if( intcon.T0IF ) { tmr0 = 225; if( counter == 5 ) clear_bit( porta, 5 ); //Setpoint_1 = 5 if( counter == 15 ) clear_bit( porta, 4 ); //Setpoint_2 = 15 if( ++counter == 21 ) { counter = 0; set_bit( porta, 5 ); set_bit( porta, 4 ); } clear_bit( intcon, T0IF ); } } void main() { option_reg = 11b; ioca = 0; trisa = 0; tmr0 = 225; set_bit( intcon, T0IE ); set_bit( intcon, GIE ); while(1); } The setpoints are very different but I am getting the same pwm on both pins. What am i missing?? Thanks
×
×
  • Create New...